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

checkpatch: limit sN/uN matches to actual bit sizes

Limit our type matcher to the s/u/le/be etc sizes that actually exist to
prevent miss categorising s2 as a type.  Fix up the spelling of the error
also.
Signed-off-by: NAndy Whitcroft <apw@canonical.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 ea71a0a0
......@@ -182,7 +182,7 @@ our $UTF8 = qr {
}x;
our $typeTypedefs = qr{(?x:
(?:__)?(?:u|s|be|le)(?:\d|\d\d)|
(?:__)?(?:u|s|be|le)(?:8|16|32|64)|
atomic_t
)};
......@@ -1936,7 +1936,7 @@ sub process {
# A unary '*' may be const
} elsif ($ctx =~ /.xW/) {
ERROR("Aspace prohibited after that '$op' $at\n" . $hereptr);
ERROR("space prohibited after that '$op' $at\n" . $hereptr);
}
# unary ++ and unary -- are allowed no space on one side.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册