]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch.pl: check for function declarations without arguments
authorJoe Perches <joe@perches.com>
Fri, 3 Jan 2014 03:16:53 +0000 (14:16 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 6 Jan 2014 09:08:16 +0000 (20:08 +1100)
commit6bb7297fe473454d9b428a27efc7bc2e1acd5108
tree33ad514894f71b43c7cad6f09db31c58652f8084
parentf3c2d7e8852d3a28c48e5717d3be41609c902c22
checkpatch.pl: check for function declarations without arguments

Functions like this one are evil:

void foo()
{
...
}

Because these functions allow variadic arguments without
checking the arguments at all.

Original patch by Richard Weinberger.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Borislav Petkov <bp@alien8.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl