aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2008-10-16 01:02:20 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-16 14:21:35 -0400
commitc1ab33269a84d6056d2ffc728d8bbaa26377d3e3 (patch)
tree47b3f64f324e7569183857cfd26167b8609678a4 /scripts/checkpatch.pl
parent01fa91471e9559d72c0c93ea7cca6f9fe6c2d1c3 (diff)
checkpatch: include/asm checks should be anchored
It is possible to have other include/asm paths within the tree which are not subject to the do not edit checks. Ignore those. 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-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 482768cd5790..0e5af8ed107e 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1134,7 +1134,7 @@ sub process {
1134 $realfile = $1; 1134 $realfile = $1;
1135 $realfile =~ s@^[^/]*/@@; 1135 $realfile =~ s@^[^/]*/@@;
1136 1136
1137 if ($realfile =~ m@include/asm/@) { 1137 if ($realfile =~ m@^include/asm/@) {
1138 ERROR("do not modify files in include/asm, change architecture specific files in include/asm-<architecture>\n" . "$here$rawline\n"); 1138 ERROR("do not modify files in include/asm, change architecture specific files in include/asm-<architecture>\n" . "$here$rawline\n");
1139 } 1139 }
1140 next; 1140 next;