History

checkpatch: don't check c99 types like uint8_t under tools

Tools contains user space code so uintX_t types are just fine.

Tomas Winkler committed 9 years ago

Commit fd39f901 parent 11ca40a1 file · +2 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+2−1
@@ -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/) {