Skip to content

Commit

Permalink
Coccinelle: setup_timer: Add space in front of parentheses
Browse files Browse the repository at this point in the history
Add space in front of the offending parentheses to silent the
parse error for older Coccinelle versions. This makes the rule
usable with all Coccinelle versions.

Reported-by: Nishanth Menon <[email protected]>
Signed-off-by: Vaishali Thakkar <[email protected]>
Acked-by: Julia Lawall <[email protected]>
Fixes: c5eda8f ("Coccinelle: Add api/setup_timer.cocci")
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
Vaishali Thakkar authored and Michal Marek committed Apr 20, 2016
1 parent f55532a commit 531f503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/coccinelle/api/setup_timer.cocci
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ 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)@
(context || org || report)@
expression a, b, e1, e2, e3, e4, e5;
position j0, j1, j2;
@@
Expand All @@ -127,7 +127,7 @@ position j0, j1, j2;
@r3_context depends on !patch &&
!match_immediate_function_data_after_init_timer_context &&
!match_function_and_data_after_init_timer_context &&
(context || org || report)@
(context || org || report)@
expression c, e6, e7;
position r1.p;
position j0, j1;
Expand Down

0 comments on commit 531f503

Please sign in to comment.