Commit bc27b77d authored by Julia Lawall's avatar Julia Lawall Committed by Masahiro Yamada

Coccinelle: setup_timer: improve messages from setup_timer

Allow messages about multiple timers.
Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 8a16a070
...@@ -104,11 +104,9 @@ position j0, j1, j2; ...@@ -104,11 +104,9 @@ position j0, j1, j2;
) )
@match_function_and_data_after_init_timer_context @match_function_and_data_after_init_timer_context
depends on !patch && depends on !patch && (context || org || report)@
!match_immediate_function_data_after_init_timer_context &&
(context || org || report)@
expression a, b, e1, e2, e3, e4, e5; expression a, b, e1, e2, e3, e4, e5;
position j0, j1, j2; position j0 != match_immediate_function_data_after_init_timer_context.j0,j1,j2;
@@ @@
* init_timer@j0 (&e1); * init_timer@j0 (&e1);
...@@ -124,13 +122,12 @@ position j0, j1, j2; ...@@ -124,13 +122,12 @@ position j0, j1, j2;
* e1@j2.function = a; * e1@j2.function = a;
) )
@r3_context depends on !patch && @r3_context depends on !patch && (context || org || report)@
!match_immediate_function_data_after_init_timer_context &&
!match_function_and_data_after_init_timer_context &&
(context || org || report)@
expression c, e6, e7; expression c, e6, e7;
position r1.p; position r1.p;
position j0, j1; position j0 !=
{match_immediate_function_data_after_init_timer_context.j0,
match_function_and_data_after_init_timer_context.j0}, j1;
@@ @@
* init_timer@j0@p (&e6); * init_timer@j0@p (&e6);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment