Re: [PATCH 11/38] backports: stub structs but remove ndo_fill_forward_path
Felix Fietkau <[email protected]> Wed, 12 Oct 2022 10:18:58 +0200
| Newsgroups | org.kernel.vger.backports |
|---|---|
| Message-ID | <[email protected]> |
On 11.10.22 23:04, Johannes Berg wrote: > From: Johannes Berg <[email protected]> > > Signed-off-by: Johannes Berg <[email protected]> > --- > backport/backport-include/linux/netdevice.h | 55 +++++++++++++++++++++ > patches/0107-net-forward-path.cocci | 19 +++++++ > 2 files changed, 74 insertions(+) > create mode 100644 patches/0107-net-forward-path.cocci > > diff --git a/patches/0107-net-forward-path.cocci b/patches/0107-net-forward-path.cocci > new file mode 100644 > index 000000000000..f612239404a6 > --- /dev/null > +++ 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? - Felix -- To unsubscribe from this list: send the line "unsubscribe backports" in