Skip to content

Commit be8fe9d

Browse files
npalixmichal42
authored andcommitted
Coccinelle: Move alloc directory into api directory
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>
1 parent 77c272f commit be8fe9d

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

File renamed without changes.

scripts/coccinelle/alloc/kzalloc-simple.cocci renamed to scripts/coccinelle/api/alloc/kzalloc-simple.cocci

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
///
2-
/// kzalloc should be used rather than kmalloc followed by memset 0
2+
/// Use kzalloc rather than kmalloc followed by memset with 0
3+
///
4+
/// This considers some simple cases that are common and easy to validate
5+
/// Note in particular that there are no ...s in the rule, so all of the
6+
/// matched code has to be contiguous
37
///
48
// Confidence: High
59
// Copyright: (C) 2009-2010 Julia Lawall, Nicolas Palix, DIKU. GPLv2.

0 commit comments

Comments
 (0)