diff options
| author | Tomas Winkler <tomas.winkler@intel.com> | 2016-12-12 19:46:34 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-12-12 21:55:10 -0500 |
| commit | fd39f904b17686df0f409e880af1ccfa2fe4ae1a (patch) | |
| tree | f2a3e2ca7981013db5d71752f3ab65e8791d2a98 /scripts | |
| parent | 11ca40a0f8e3a788a987f14cb80d836a34d109ae (diff) | |
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-x | scripts/checkpatch.pl | 3 |
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 { | |||
| 5560 | "Using weak declarations can have unintended link defects\n" . $herecurr); | 5560 | "Using weak declarations can have unintended link defects\n" . $herecurr); |
| 5561 | } | 5561 | } |
| 5562 | 5562 | ||
| 5563 | # check for c99 types like uint8_t used outside of uapi/ | 5563 | # check for c99 types like uint8_t used outside of uapi/ and tools/ |
| 5564 | if ($realfile !~ m@\binclude/uapi/@ && | 5564 | if ($realfile !~ m@\binclude/uapi/@ && |
| 5565 | $realfile !~ m@\btools/@ && | ||
| 5565 | $line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) { | 5566 | $line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) { |
| 5566 | my $type = $1; | 5567 | my $type = $1; |
| 5567 | if ($type =~ /\b($typeC99Typedefs)\b/) { | 5568 | if ($type =~ /\b($typeC99Typedefs)\b/) { |
