Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Coccinelle: reduce rule applicability

Rule r is only use in org or report mode, so only execute it in those
cases.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.com>

authored by

Julia Lawall and committed by
Michal Marek
8f551bef 0a9e7da6

+1 -1
+1 -1
scripts/coccinelle/misc/badty.cocci
··· 50 50 // For org and report mode 51 51 //---------------------------------------------------------- 52 52 53 - @r disable sizeof_type_expr@ 53 + @r depends on (org || report) disable sizeof_type_expr@ 54 54 type T; 55 55 T **x; 56 56 position p;