kernel_optimize_test/scripts/coccinelle/api
Himangi Saraogi 99fcec30e8 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 <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.cz>
2014-08-06 12:10:17 +02:00
..
alloc Coccinelle: Script to detect cast after memory allocation 2014-08-06 12:10:17 +02:00
d_find_alias.cocci Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
devm_ioremap_resource.cocci lib: devres: Introduce devm_ioremap_resource() 2013-01-22 09:41:43 -08:00
err_cast.cocci Coccinelle: Move err_cast.cocci to the api directory 2010-08-31 11:37:54 +02:00
kstrdup.cocci Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
memdup_user.cocci Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
memdup.cocci Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00
pm_runtime.cocci scripts: Coccinelle script for pm_runtime_* return checks with IS_ERR_VALUE 2014-01-03 14:39:35 +01:00
ptr_ret.cocci scripts/coccinelle: Use PTR_ERR_OR_ZERO 2014-04-08 17:27:01 +02:00
resource_size.cocci Coccinelle: Move resource_size.cocci to the api directory 2010-08-31 11:37:54 +02:00
simple_open.cocci Coccinelle: Update the options used to the new option scheme 2013-07-03 22:58:13 +02:00