]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
checkpatch: warn on bare unsigned or signed declarations without int
authorJoe Perches <joe@perches.com>
Tue, 15 Mar 2016 21:58:03 +0000 (14:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Mar 2016 23:55:16 +0000 (16:55 -0700)
commita1ce18e4f941d2039aa3bdeee17db968919eac2f
tree821e8cb94d940ab81a47e7f67bd2b4a78ccc1b3f
parent42e152931deba7500e756c39e8e2df2e244860f2
checkpatch: warn on bare unsigned or signed declarations without int

Kernel style prefers "unsigned int <foo>" over "unsigned <foo>" and
"signed int <foo>" over "signed <foo>".

Emit a warning for these simple signed/unsigned <foo> declarations.  Fix
it too if desired.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl