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_IS_GEQ(3,2,0) ,u32 *rule_locs +#else +,void *rule_locs +#endif /* LINUX_VERSION_IS_GEQ(3,2,0) */ ) { ... }