Tools contains user space code so uintX_t types are just fine.
Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all
Unified · Split
| @@ -5560,8 +5560,9 @@ sub process { · 5559 unmodified lines | |||
| 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/) { |