From: Joe Perches Date: Wed, 3 Jul 2013 22:05:21 +0000 (-0700) Subject: checkpatch: add --strict preference for p = kmalloc(sizeof(*p)... X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~17^2~235 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a640d25cead66457ac14a878234f8b323ba8aade;p=pandora-kernel.git checkpatch: add --strict preference for p = kmalloc(sizeof(*p)... Add another test for memory allocation style to follow Documentation/CodingStyle: Chapter 14: Allocating memory The preferred form for passing a size of a struct is the following: p = kmalloc(sizeof(*p), ...); Signed-off-by: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed