31455941ce7d68712a4693e67fa61e8730721c24
[bpt/coccinelle.git] / tests / headers.cocci
1 @ rule1 @
2 identifier f;
3 @@
4
5 usb_fill_bulk_urb(f)
6
7 @ rule2 extends rule1 @
8 identifier p1, p2;
9 @@
10
11 - void f (struct urb *p1, struct pt_regs *p2)
12 + void f (struct urb *p1)
13 {
14 ... when != p2
15 }