On Wed, 2022-10-12 at 10:18 +0200, Felix Fietkau wrote: > > > +++ b/patches/0107-net-forward-path.cocci > > @@ -0,0 +1,19 @@ > > +@ops@ > > +identifier ops, fn; > > +@@ > > +const struct net_device_ops ops = { > > ++#if LINUX_VERSION_IS_GEQ(5,13,0) > > + .ndo_fill_forward_path = fn, > > ++#endif > > + ... > > +}; > > + > > +@@ > > +identifier ops.fn; > > +@@ > > ++#if LINUX_VERSION_IS_GEQ(5,13,0) > > +int fn(...) > > +{ > > +... > > +} > > ++#endif /* LINUX_VERSION_IS_GEQ(5,13,0) */ > How about using #ifdef NET_DEVICE_PATH_STACK_MAX here as well? > I guess that would work, don't remember that I thought about it and rejected that for some reason. johannes -- To unsubscribe from this list: send the line "unsubscribe backports" in