projects/linux·commit afbe8d28

checkpatch: accept any sized le/be type

afbe8d28 · Andy Whitcroft <[email protected]> · 2008-10-15 22:02:31 -07:00

We are likely going to have 24 bit types.  Expand the type matcher to
match any size.

Signed-off-by: Andy Whitcroft <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
afbe8d283b97b2317dab900fb11d2a8878ee3c23
Parents
b132e5d5

Changes

1 files changed · +1 −1

FileStatusAddDelContent
scripts/checkpatch.plmodified+1−1View file

scripts/checkpatch.pl

View file
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 6eceda7..bb88df2 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -159,7 +159,7 @@ our @typeList = (
qr{float},
qr{double},
qr{bool},
- qr{(?:__)?(?:u|s|be|le)(?:8|16|32|64)},
+ qr{(?:__)?(?:u|s|be|le)(?:\d|\d\d)},
qr{struct\s+$Ident},
qr{union\s+$Ident},
qr{enum\s+$Ident},