]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: Add check for kcalloc argument order
authorJoe Perches <joe@perches.com>
Wed, 20 Feb 2013 02:15:35 +0000 (13:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:20 +0000 (16:53 +1100)
commit60c338f68b1fdc51574626ba51489a7c5478b7cb
tree7b4e375737f58abf196164e3d35e051883649378
parent1d29816116d832f28b7cdc556de53152a40daae0
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>
scripts/checkpatch.pl