From: Joe Perches Date: Wed, 6 Aug 2014 23:10:55 +0000 (-0700) Subject: checkpatch: emit fewer kmalloc_array/kcalloc conversion warnings X-Git-Tag: cleanup-for-v3.18~96^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e367455a9f25b11e02b7ea7678a7b146bdd6667e;p=pandora-kernel.git checkpatch: emit fewer kmalloc_array/kcalloc conversion warnings Avoid matching allocs that appear to be known small multiplications of a sizeof with a constant because gcc as of 4.8 cannot optimize the code in a calloc() exactly the same way as an alloc(). Look for numeric constants or what appear to be upper case only macro #defines. Signed-off-by: Joe Perches Reported-by: Theodore Ts'o Original-patch-by: Fabian Frederick Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed