diff options
author | Andy Whitcroft <apw@shadowen.org> | 2008-07-23 21:28:59 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 10:47:25 -0700 |
commit | beae6332493a40116dba24928154621f2e88b9a9 (patch) | |
tree | 08b0c7e339c00be0fc0f4e841a92a00871c9bcba /scripts/checkpatch.pl | |
parent | d3ddcf471ea90d7ff711dbaa371ef379ed625ec0 (diff) | |
download | kernel_goldelico_gta04-beae6332493a40116dba24928154621f2e88b9a9.zip kernel_goldelico_gta04-beae6332493a40116dba24928154621f2e88b9a9.tar.gz kernel_goldelico_gta04-beae6332493a40116dba24928154621f2e88b9a9.tar.bz2 |
checkpatch: comment detection: ignore macro continuation when detecting associated comments
When looking for an associated comment they may be suffixed by a macro
continuation. Ignore this.
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index fd597a4..94250d1 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -631,7 +631,7 @@ sub ctx_locate_comment { my ($first_line, $end_line) = @_; # Catch a comment on the end of the line itself. - my ($current_comment) = ($rawlines[$end_line - 1] =~ m@.*(/\*.*\*/)\s*$@); + my ($current_comment) = ($rawlines[$end_line - 1] =~ m@.*(/\*.*\*/)\s*(?:\\\s*)?$@); return $current_comment if (defined $current_comment); # Look through the context and try and figure out if there is a |