From: Himangi Saraogi Date: Sat, 14 Jun 2014 15:45:41 +0000 (+0530) Subject: Coccinelle: Script to detect cast after memory allocation X-Git-Tag: omap-for-v3.17/fixes-against-rc2~60^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99fcec30e882ec214b689889b3599cf98f5c9843;p=pandora-kernel.git Coccinelle: Script to detect cast after memory allocation This script detects cases of use of cast for the value returned by kmalloc, kzalloc, kcalloc, kmem_cache_alloc, kmem_cache_zalloc, kmem_cache_alloc_node, kmalloc_node and kzalloc_node and removes the cast as it is not useful. This Coccinelle script replaces drop_kmalloc_cast.cocci as it removes the casting in more limited cases of kmalloc, kzalloc and kcalloc. Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall Signed-off-by: Michal Marek --- Reading git-diff-tree failed