Commit 3f7bc4e1 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds

checkpatch: add short int to c variable types

short int is one of the 6.7.2 c90 types.
Find it appropriately.

This fixes a defect in checkpatch where it suggests that a line break
after declaration is required using an input like:

	int foo;
	short int bar;

Without this change, it warns on the short int line.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Reported-by: default avatarHartley Sweeten <HartleyS@visionengravers.com>
Acked-by: default avatarAndy Whitcroft <apw@canonical.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0fe3dc2b
...@@ -356,6 +356,7 @@ our $signature_tags = qr{(?xi: ...@@ -356,6 +356,7 @@ our $signature_tags = qr{(?xi:
our @typeList = ( our @typeList = (
qr{void}, qr{void},
qr{(?:unsigned\s+)?char}, qr{(?:unsigned\s+)?char},
qr{(?:unsigned\s+)?short\s+int},
qr{(?:unsigned\s+)?short}, qr{(?:unsigned\s+)?short},
qr{(?:unsigned\s+)?int}, qr{(?:unsigned\s+)?int},
qr{(?:unsigned\s+)?long}, qr{(?:unsigned\s+)?long},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment