projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7eaa88
)
Coccinelle: pm_runtime: reduce rule applicability
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Sun, 31 Jan 2016 16:26:57 +0000
(17:26 +0100)
committer
Michal Marek
<mmarek@suse.com>
Thu, 18 Feb 2016 21:08:09 +0000
(22:08 +0100)
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>
scripts/coccinelle/api/pm_runtime.cocci
patch
|
blob
|
history
diff --git
a/scripts/coccinelle/api/pm_runtime.cocci
b/scripts/coccinelle/api/pm_runtime.cocci
index
b7042d0
..
89b98a2
100644
(file)
--- 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;