提交 c1ab3326 编写于 作者: A Andy Whitcroft 提交者: Linus Torvalds

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: NAndy Whitcroft <apw@shadowen.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 01fa9147
...@@ -1134,7 +1134,7 @@ sub process { ...@@ -1134,7 +1134,7 @@ sub process {
$realfile = $1; $realfile = $1;
$realfile =~ s@^[^/]*/@@; $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-<architecture>\n" . "$here$rawline\n"); ERROR("do not modify files in include/asm, change architecture specific files in include/asm-<architecture>\n" . "$here$rawline\n");
} }
next; next;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册