From: Andy Whitcroft Date: Thu, 16 Oct 2008 05:02:20 +0000 (-0700) Subject: checkpatch: include/asm checks should be anchored X-Git-Tag: v2.6.28-rc1~489 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c1ab33269a84d6056d2ffc728d8bbaa26377d3e3;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 482768cd579..0e5af8ed107 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1134,7 +1134,7 @@ sub process { $realfile = $1; $realfile =~ s@^[^/]*/@@; - if ($realfile =~ m@include/asm/@) { + if ($realfile =~ m@^include/asm/@) { ERROR("do not modify files in include/asm, change architecture specific files in include/asm-\n" . "$here$rawline\n"); } next;