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.
Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all
Unified · Split
| @@ -356,6 +356,7 @@ our $signature_tags = qr{(?xi: · 355 unmodified lines | ||
| 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}, |