checkpatch: accept any sized le/be type
authorAndy Whitcroft <apw@shadowen.org>
Thu, 16 Oct 2008 05:02:31 +0000 (22:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:37 +0000 (11:21 -0700)
We are likely going to have 24 bit types.  Expand the type matcher to
match any size.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl

index 6eceda7a4bd9d43acb530d92dcd34a6cf0e39601..bb88df2d001bfdbc289f8d5ec2ff5fce4c424108 100755 (executable)
@@ -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},