checkpatch: Add check for kcalloc argument order
authorJoe Perches <joe@perches.com>
Fri, 22 Feb 2013 00:44:18 +0000 (16:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 22 Feb 2013 01:22:26 +0000 (17:22 -0800)
commit5ce59ae0bcc0f0ad249d21560c9bb5f6061e62a8
tree1fa6ddc462a2425d6d8d50136330c2db0b6becee
parente8eb3997ce2f5887472a674b32f295b0196ecf46
checkpatch: Add check for kcalloc argument order

kcalloc is sometimes misused with the first and second arguments switched.

Same issue with kmalloc_array too.

Bleat if sizeof is the first argument

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