Skip to content

Commit

Permalink
checkpatch: don't check c99 types like uint8_t under tools
Browse files Browse the repository at this point in the history
Tools contains user space code so uintX_t types are just fine.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Tomas Winkler <[email protected]>
Acked-by: Joe Perches <[email protected]>
Cc: Andy Whitcroft <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Tomas Winkler authored and torvalds committed Dec 13, 2016
1 parent 11ca40a commit fd39f90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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/) {
Expand Down

0 comments on commit fd39f90

Please sign in to comment.