[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1442853046-29397-1-git-send-email-octavian.purdila@intel.com>
Date: Mon, 21 Sep 2015 19:30:45 +0300
From: Octavian Purdila <octavian.purdila@...el.com>
To: apw@...onical.com, joe@...ches.com
Cc: linux-kernel@...r.kernel.org,
Octavian Purdila <octavian.purdila@...el.com>
Subject: [PATCH] checkpatch: avoid showing uint*_t warnings for tools/ files
tools/ files are compiled in userspace so using types like uint8_t is
legitimate.
Signed-off-by: Octavian Purdila <octavian.purdila@...el.com>
---
scripts/checkpatch.pl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index f2a1131..407eb6c 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -5221,8 +5221,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/) {
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists