From: Joe Perches Date: Wed, 6 Aug 2014 23:11:18 +0000 (-0700) Subject: checkpatch: add short int to c variable types X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=3f7bc4e1fcfab05f3e8b49134cfb3e16b8876aae;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git 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: Joe Perches Reported-by: Hartley Sweeten Acked-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index dc72a9b3172d..c647caab913c 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -356,6 +356,7 @@ our $signature_tags = qr{(?xi: our @typeList = ( qr{void}, qr{(?:unsigned\s+)?char}, + qr{(?:unsigned\s+)?short\s+int}, qr{(?:unsigned\s+)?short}, qr{(?:unsigned\s+)?int}, qr{(?:unsigned\s+)?long},