]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
checkpatch: don't check c99 types like uint8_t under tools
authorTomas Winkler <tomas.winkler@intel.com>
Tue, 13 Dec 2016 00:46:34 +0000 (16:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 13 Dec 2016 02:55:10 +0000 (18:55 -0800)
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>
scripts/checkpatch.pl

index cf95d3ae07542cd586f978b425338236bf0770db..7997300d5d30f237d1666f66177c9b95e33a4b86 100755 (executable)
@@ -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/) {