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

Unified · Split

scripts/checkpatch.pl+2−1
@@ -5560,8 +5560,9 @@ sub process { · 5559 unmodified lines
55605560 "Using weak declarations can have unintended link defects\n" . $herecurr);
55615561 }
55625562
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/
55645564 if ($realfile !~ m@\binclude/uapi/@ &&
5565+ $realfile !~ m@\btools/@ &&
55655566 $line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) {
55665567 my $type = $1;
55675568 if ($type =~ /\b($typeC99Typedefs)\b/) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t