diff options
Diffstat (limited to 'scripts/checkpatch.pl')
| -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/) { |
