From: Julia Lawall Date: Sat, 30 Jan 2016 15:27:04 +0000 (+0100) Subject: Coccinelle: reduce rule applicability X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8f551befa2269dc244bcfbcad795132f833cb71c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Michal Marek --- diff --git a/scripts/coccinelle/misc/badty.cocci b/scripts/coccinelle/misc/badty.cocci index 2fc06fc71927..481cf301ccfc 100644 --- a/scripts/coccinelle/misc/badty.cocci +++ b/scripts/coccinelle/misc/badty.cocci @@ -50,7 +50,7 @@ T **x; // For org and report mode //---------------------------------------------------------- -@r disable sizeof_type_expr@ +@r depends on (org || report) disable sizeof_type_expr@ type T; T **x; position p;