Commit fd39f904 authored by Tomas Winkler's avatar Tomas Winkler Committed by Linus Torvalds

checkpatch: don't check c99 types like uint8_t under tools

Tools contains user space code so uintX_t types are just fine.

Link: http://lkml.kernel.org/r/1479286379-853-1-git-send-email-tomas.winkler@intel.comSigned-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Acked-by: default avatarJoe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 11ca40a0
...@@ -5560,8 +5560,9 @@ sub process { ...@@ -5560,8 +5560,9 @@ sub process {
"Using weak declarations can have unintended link defects\n" . $herecurr); "Using weak declarations can have unintended link defects\n" . $herecurr);
} }
# check for c99 types like uint8_t used outside of uapi/ # check for c99 types like uint8_t used outside of uapi/ and tools/
if ($realfile !~ m@\binclude/uapi/@ && if ($realfile !~ m@\binclude/uapi/@ &&
$realfile !~ m@\btools/@ &&
$line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) { $line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) {
my $type = $1; my $type = $1;
if ($type =~ /\b($typeC99Typedefs)\b/) { if ($type =~ /\b($typeC99Typedefs)\b/) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment