]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Coccinelle: Move alloc directory into api directory
authorNicolas Palix <npalix@diku.dk>
Tue, 24 Aug 2010 15:39:10 +0000 (17:39 +0200)
committerMichal Marek <mmarek@suse.cz>
Tue, 31 Aug 2010 09:43:13 +0000 (11:43 +0200)
alloc contains various semantic patches related
to the allocation APIs

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/coccinelle/api/alloc/drop_kmalloc_cast.cocci [moved from scripts/coccinelle/alloc/drop_kmalloc_cast.cocci with 100% similarity]
scripts/coccinelle/api/alloc/kzalloc-simple.cocci [moved from scripts/coccinelle/alloc/kzalloc-simple.cocci with 87% similarity]

similarity index 87%
rename from scripts/coccinelle/alloc/kzalloc-simple.cocci
rename to scripts/coccinelle/api/alloc/kzalloc-simple.cocci
index 2eae828fc657deaf60fb5e2836425a26b8652030..046b9b16f8f9447e7c095f279cae99337ffaa3d8 100644 (file)
@@ -1,5 +1,9 @@
 ///
-/// kzalloc should be used rather than kmalloc followed by memset 0
+/// Use kzalloc rather than kmalloc followed by memset with 0
+///
+/// This considers some simple cases that are common and easy to validate
+/// Note in particular that there are no ...s in the rule, so all of the
+/// matched code has to be contiguous
 ///
 // Confidence: High
 // Copyright: (C) 2009-2010 Julia Lawall, Nicolas Palix, DIKU.  GPLv2.