]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
checkpatch.pl: check for function declarations without arguments
authorJoe Perches <joe@perches.com>
Wed, 15 Jan 2014 05:56:09 +0000 (16:56 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 16 Jan 2014 05:54:01 +0000 (16:54 +1100)
commitcc0ab52d098000cff723e8eb35d319fc10a402af
treebe2ec50c7c0f8a011981a149894bef3a1076cfe1
parent87d71ff8ab20647a8e67a061c8b70a044109be21
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