Commit 3f7bc4e1fcfab05f3e8b49134cfb3e16b8876aae

Authored by Joe Perches
Committed by Linus Torvalds
1 parent 0fe3dc2bc5

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 <joe@perches.com>
Reported-by: Hartley Sweeten <HartleyS@visionengravers.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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

scripts/checkpatch.pl
... ... @@ -356,6 +356,7 @@
356 356 our @typeList = (
357 357 qr{void},
358 358 qr{(?:unsigned\s+)?char},
  359 + qr{(?:unsigned\s+)?short\s+int},
359 360 qr{(?:unsigned\s+)?short},
360 361 qr{(?:unsigned\s+)?int},
361 362 qr{(?:unsigned\s+)?long},