]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
checkpatch: update $declaration_macros, add uninitialized_var
authorJoe Perches <joe@perches.com>
Wed, 6 Aug 2014 23:11:31 +0000 (16:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:29 +0000 (18:01 -0700)
commitf84223087402c45179be5e7060c5736c17a7b271
tree98363ff18f61ff016970a110d49d27fb0b81399d
parentece9659f16e369d344fe4325d87fab3bb50d1fe2
checkpatch: update $declaration_macros, add uninitialized_var

Using uninitialized_var reports a false positive for "Missing blank line
after declarations".

Fix it by adding uninitialized_var to the $declaration_macros exceptions
list.

Move the macro list after $Type is declared.

Add optional prefixes to DECLARE_<FOO> and DEFINE_<BAR>
macro declarations to allow forms like:
MLX4_DECLARE_DOORBELL_LOCK

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