diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 482768cd5790f21051f980fde58916b040228351..0e5af8ed107eb0a3626056d818afa3f6bf15a944 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;