]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch.pl: check for function declarations without arguments
authorJoe Perches <joe@perches.com>
Mon, 16 Dec 2013 23:45:29 +0000 (10:45 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 16 Dec 2013 23:45:29 +0000 (10:45 +1100)
commit369353832de39064d0e5b5553d1fcf2ea506df2e
tree6004d638fe36b5028bb0bd3f8a1612400da8ad50
parentaeba3e93feb4d4e03066baf19d0d9457049a90e5
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