diff options
author | Andy Whitcroft <apw@shadowen.org> | 2008-07-24 00:29:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 13:47:26 -0400 |
commit | b8f96a31f38c8e9fc75f0a89c6815e7cbc402858 (patch) | |
tree | d68058c4329c6cb32255f905a2aac02a3bfac273 | |
parent | d2172eb5bd4b7d06577113ec40635083619ca54a (diff) |
checkpatch: macro complexity checks are meaningless in linker scripts
Exclude vmlinux.lds.h from the macro complexity checks. They will never
apply sanely here.
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>
-rwxr-xr-x | scripts/checkpatch.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 53ec3946670d..775f2b146aa1 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -1860,7 +1860,8 @@ sub process { | |||
1860 | # multi-statement macros should be enclosed in a do while loop, grab the | 1860 | # multi-statement macros should be enclosed in a do while loop, grab the |
1861 | # first statement and ensure its the whole macro if its not enclosed | 1861 | # first statement and ensure its the whole macro if its not enclosed |
1862 | # in a known good container | 1862 | # in a known good container |
1863 | if ($line =~ /^.\s*\#\s*define\s*$Ident(\()?/) { | 1863 | if ($realfile !~ m@/vmlinux.lds.h$@ && |
1864 | $line =~ /^.\s*\#\s*define\s*$Ident(\()?/) { | ||
1864 | my $ln = $linenr; | 1865 | my $ln = $linenr; |
1865 | my $cnt = $realcnt; | 1866 | my $cnt = $realcnt; |
1866 | my ($off, $dstat, $dcond, $rest); | 1867 | my ($off, $dstat, $dcond, $rest); |