projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a9e7da
)
Coccinelle: reduce rule applicability
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Sat, 30 Jan 2016 15:27:04 +0000
(16:27 +0100)
committer
Michal Marek
<mmarek@suse.com>
Thu, 18 Feb 2016 21:05:30 +0000
(22:05 +0100)
Rule r is only use 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/misc/badty.cocci
patch
|
blob
|
blame
|
history
diff --git
a/scripts/coccinelle/misc/badty.cocci
b/scripts/coccinelle/misc/badty.cocci
index 2fc06fc71927ff069947b6a09279d3b8130a2b7e..481cf301ccfc3abf2b68c8dcc8b59612ed2e9841 100644
(file)
--- 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 d
epends on (org || report) d
isable sizeof_type_expr@
type T;
T **x;
position p;