diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2017-08-23 09:11:13 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-11-14 09:19:02 -0500 |
commit | bc27b77df1939b9567aa468c47d4a5784f40cfa1 (patch) | |
tree | 2ab473bfa321b348dc91e7020b50298b002001e1 | |
parent | 8a16a070abaa61e95354755a320ca37cee544209 (diff) |
Coccinelle: setup_timer: improve messages from setup_timer
Allow messages about multiple timers.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r-- | scripts/coccinelle/api/setup_timer.cocci | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/scripts/coccinelle/api/setup_timer.cocci b/scripts/coccinelle/api/setup_timer.cocci index eb6bd9e4ab1a..b5ab0317fa03 100644 --- a/scripts/coccinelle/api/setup_timer.cocci +++ b/scripts/coccinelle/api/setup_timer.cocci | |||
@@ -104,11 +104,9 @@ position j0, j1, j2; | |||
104 | ) | 104 | ) |
105 | 105 | ||
106 | @match_function_and_data_after_init_timer_context | 106 | @match_function_and_data_after_init_timer_context |
107 | depends on !patch && | 107 | depends on !patch && (context || org || report)@ |
108 | !match_immediate_function_data_after_init_timer_context && | ||
109 | (context || org || report)@ | ||
110 | expression a, b, e1, e2, e3, e4, e5; | 108 | expression a, b, e1, e2, e3, e4, e5; |
111 | position j0, j1, j2; | 109 | position j0 != match_immediate_function_data_after_init_timer_context.j0,j1,j2; |
112 | @@ | 110 | @@ |
113 | 111 | ||
114 | * init_timer@j0 (&e1); | 112 | * init_timer@j0 (&e1); |
@@ -124,13 +122,12 @@ position j0, j1, j2; | |||
124 | * e1@j2.function = a; | 122 | * e1@j2.function = a; |
125 | ) | 123 | ) |
126 | 124 | ||
127 | @r3_context depends on !patch && | 125 | @r3_context depends on !patch && (context || org || report)@ |
128 | !match_immediate_function_data_after_init_timer_context && | ||
129 | !match_function_and_data_after_init_timer_context && | ||
130 | (context || org || report)@ | ||
131 | expression c, e6, e7; | 126 | expression c, e6, e7; |
132 | position r1.p; | 127 | position r1.p; |
133 | position j0, j1; | 128 | position j0 != |
129 | {match_immediate_function_data_after_init_timer_context.j0, | ||
130 | match_function_and_data_after_init_timer_context.j0}, j1; | ||
134 | @@ | 131 | @@ |
135 | 132 | ||
136 | * init_timer@j0@p (&e6); | 133 | * init_timer@j0@p (&e6); |