Skip to content

Commit

Permalink
Coccinelle: setup_timer: improve messages from setup_timer
Browse files Browse the repository at this point in the history
Allow messages about multiple timers.

Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
JuliaLawall authored and masahir0y committed Nov 14, 2017
1 parent 8a16a07 commit bc27b77
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions scripts/coccinelle/api/setup_timer.cocci
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,9 @@ position j0, j1, j2;
)
@match_function_and_data_after_init_timer_context
depends on !patch &&
!match_immediate_function_data_after_init_timer_context &&
(context || org || report)@
depends on !patch && (context || org || report)@
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);
Expand All @@ -124,13 +122,12 @@ position j0, j1, j2;
* [email protected] = a;
)

@r3_context depends on !patch &&
!match_immediate_function_data_after_init_timer_context &&
!match_function_and_data_after_init_timer_context &&
(context || org || report)@
@r3_context depends on !patch && (context || org || report)@
expression c, e6, e7;
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);
Expand Down

0 comments on commit bc27b77

Please sign in to comment.