diff options
author | Joe Perches <joe@perches.com> | 2014-08-06 19:11:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-06 21:01:29 -0400 |
commit | 0c773d9d66684aefd919c4b4550fe16003c54c0e (patch) | |
tree | ecb637d985bc1180443de255264e3a4088555aa7 /scripts | |
parent | 3f7bc4e1fcfab05f3e8b49134cfb3e16b8876aae (diff) |
checkpatch: add signed generic types
Current generic types are unsigned or unspecified. Add signed to the
types.
Reorder the types to find the longest match first.
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkpatch.pl | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index c647caab913c..c10befa118a5 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -355,15 +355,15 @@ our $signature_tags = qr{(?xi: | |||
355 | 355 | ||
356 | our @typeList = ( | 356 | our @typeList = ( |
357 | qr{void}, | 357 | qr{void}, |
358 | qr{(?:unsigned\s+)?char}, | 358 | qr{(?:(?:un)?signed\s+)?char}, |
359 | qr{(?:unsigned\s+)?short\s+int}, | 359 | qr{(?:(?:un)?signed\s+)?short\s+int}, |
360 | qr{(?:unsigned\s+)?short}, | 360 | qr{(?:(?:un)?signed\s+)?short}, |
361 | qr{(?:unsigned\s+)?int}, | 361 | qr{(?:(?:un)?signed\s+)?int}, |
362 | qr{(?:unsigned\s+)?long}, | 362 | qr{(?:(?:un)?signed\s+)?long\s+int}, |
363 | qr{(?:unsigned\s+)?long\s+int}, | 363 | qr{(?:(?:un)?signed\s+)?long\s+long\s+int}, |
364 | qr{(?:unsigned\s+)?long\s+long}, | 364 | qr{(?:(?:un)?signed\s+)?long\s+long}, |
365 | qr{(?:unsigned\s+)?long\s+long\s+int}, | 365 | qr{(?:(?:un)?signed\s+)?long}, |
366 | qr{unsigned}, | 366 | qr{(?:un)?signed}, |
367 | qr{float}, | 367 | qr{float}, |
368 | qr{double}, | 368 | qr{double}, |
369 | qr{bool}, | 369 | qr{bool}, |