瀏覽代碼

Coccinelle: pm_runtime: reduce rule applicability

Rule r is only used 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>
Julia Lawall 9 年之前
父節點
當前提交
79ff2b3dea
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/coccinelle/api/pm_runtime.cocci

+ 1 - 1
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;