mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
checkpatch: complex macros need to ignore comments
Ensure we ignore comments in complex macro detection else we incorrectly report this: #define PFM_GROUP_PERM_ANY -1 /* any user/group */ 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>
This commit is contained in:
parent
74048ed811
commit
292f1a9b34
1 changed files with 1 additions and 0 deletions
|
@ -1972,6 +1972,7 @@ sub process {
|
|||
} else {
|
||||
$dstat =~ s/^.\s*\#\s*define\s+$Ident\s*//;
|
||||
}
|
||||
$dstat =~ s/$;//g;
|
||||
$dstat =~ s/\\\n.//g;
|
||||
$dstat =~ s/^\s*//s;
|
||||
$dstat =~ s/\s*$//s;
|
||||
|
|
Loading…
Reference in a new issue