]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: add types for other OS typedefs
authorJoe Perches <joe@perches.com>
Fri, 13 Feb 2015 22:38:43 +0000 (14:38 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 14 Feb 2015 05:21:39 +0000 (21:21 -0800)
commit70e5a4a754385b4fdb772481cafad95c106e3f1d
tree0eebaf471c91b6f38a7b2a158f9349ae3a01a80e
parent0edba12cd4e2751f9373686cc54e04a0fdbc8c1c
checkpatch: add types for other OS typedefs

bsd and sysv use different typedefs for unsigned types.

These are in types.h but not in checkpatch, so add them to checkpatch's
ability to know types.

This can avoid false positives for code like:

void foo(void)
{
int x;
uint y;

[...];
}

where checkpatch incorrectly emits a warning for "missing a blank line
after declarations".

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl