summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2016-12-13 03:46:34 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-13 05:55:10 +0300
commitfd39f904b17686df0f409e880af1ccfa2fe4ae1a (patch)
treef2a3e2ca7981013db5d71752f3ab65e8791d2a98 /scripts
parent11ca40a0f8e3a788a987f14cb80d836a34d109ae (diff)
downloadlinux-fd39f904b17686df0f409e880af1ccfa2fe4ae1a.tar.xz
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.com Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Acked-by: Joe Perches <joe@perches.com> Cc: Andy Whitcroft <apw@canonical.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index cf95d3ae0754..7997300d5d30 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -5560,8 +5560,9 @@ sub process {
"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/@ &&
+ $realfile !~ m@\btools/@ &&
$line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) {
my $type = $1;
if ($type =~ /\b($typeC99Typedefs)\b/) {