From: Julia Lawall Date: Sun, 31 Jan 2016 16:26:57 +0000 (+0100) Subject: UPSTREAM: Coccinelle: pm_runtime: reduce rule applicability X-Git-Tag: release-20171130_firefly~4^2~223 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=60c3b344191183857c8b7da89ba37b033245c30b;p=firefly-linux-kernel-4.4.55.git UPSTREAM: Coccinelle: pm_runtime: reduce rule applicability Rule r is only used in org or report mode, so only execute it in those cases. Change-Id: Ib2311a33fca6544b885bbf44b9695e1984680f96 Signed-off-by: Julia Lawall Signed-off-by: Michal Marek Signed-off-by: Huang, Tao (cherry picked from commit 79ff2b3deae7db21e73f1e0add92c988135defd2) --- diff --git a/scripts/coccinelle/api/pm_runtime.cocci b/scripts/coccinelle/api/pm_runtime.cocci index b7042d074078..89b98a2f7a6f 100644 --- a/scripts/coccinelle/api/pm_runtime.cocci +++ b/scripts/coccinelle/api/pm_runtime.cocci @@ -78,7 +78,7 @@ ret = pm_runtime_api(...); // For org and report mode //---------------------------------------------------------- -@r depends on runtime_bad_err_handle exists@ +@r depends on runtime_bad_err_handle && (org || report) exists@ position p1, p2; identifier pm_runtime_api; expression ret;