mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +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
@ -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 New Issue
Block a user