summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-07-04 02:05:21 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-04 03:07:44 +0400
commita640d25cead66457ac14a878234f8b323ba8aade (patch)
tree68226ed2019c2e999efdbf6ccd8d0c53a271e833 /kernel
parent95e2c6023b0e4c8499fb521697f79215f69135fe (diff)
downloadlinux-a640d25cead66457ac14a878234f8b323ba8aade.tar.xz
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 <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions