summaryrefslogtreecommitdiff
path: root/patches/0039-ethtool_rxnfc/rxnfc.cocci
blob: e546f4d5457a6369bd0d49a3ad7ab9c34696b88e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@r@
identifier s,func;
@@

struct ethtool_ops s = {
.get_rxnfc = func,
};

@@
identifier r.func,rule_locs;
typedef u32;
@@

// ----------------------------------------------------------------------

func(...
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
,u32 *rule_locs
+#else
+,void *rule_locs
+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0) */
 ) { ... }