From: Julia Lawall Date: Sat, 30 Jan 2016 15:27:04 +0000 (+0100) Subject: UPSTREAM: Coccinelle: reduce rule applicability X-Git-Tag: release-20171130_firefly~4^2~225 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=94e1aa80249b5b0eec8e1ab00fde4ab822d1a589;p=firefly-linux-kernel-4.4.55.git UPSTREAM: Coccinelle: reduce rule applicability Rule r is only use in org or report mode, so only execute it in those cases. Change-Id: Id2705a31f11329132b5af54ba933c208a49557bd Signed-off-by: Julia Lawall Signed-off-by: Michal Marek Signed-off-by: Huang, Tao (cherry picked from commit 8f551befa2269dc244bcfbcad795132f833cb71c) --- 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;