Message ID | 20170905065039.25808-1-luca@coelho.fi (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
On Tue, 2017-09-05 at 09:50 +0300, Luca Coelho wrote: > From: Luca Coelho <luciano.coelho@intel.com> > > The patch that changed the netdev destructor code was backported to > v4.11.9, so handle that in the backport. Applied, since it was so obvious. > Change-Id: I21a64c84d1c46771d9436341537d946e5ae64c1b Without that though :) johannes -- To unsubscribe from this list: send the line "unsubscribe backports" in
On Wed, 2017-09-06 at 16:52 +0200, Johannes Berg wrote: > On Tue, 2017-09-05 at 09:50 +0300, Luca Coelho wrote: > > From: Luca Coelho <luciano.coelho@intel.com> > > > > The patch that changed the netdev destructor code was backported to > > v4.11.9, so handle that in the backport. > > Applied, since it was so obvious. > > > Change-Id: I21a64c84d1c46771d9436341537d946e5ae64c1b > > Without that though :) Oops, sorry! I learned to systematically remove those from kernel patches, but for some reason I left it in this patch. -- Luca. -- To unsubscribe from this list: send the line "unsubscribe backports" in
diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h index d22eec2d3113..112bcf2b1c15 100644 --- a/backport/backport-include/linux/netdevice.h +++ b/backport/backport-include/linux/netdevice.h @@ -320,7 +320,8 @@ static inline void netif_trans_update(struct net_device *dev) } #endif -#if LINUX_VERSION_IS_LESS(4,12,0) +#if LINUX_VERSION_IS_LESS(4,12,0) && \ + !LINUX_VERSION_IN_RANGE(4,11,9, 4,12,0) #define netdev_set_priv_destructor(_dev, _destructor) \ (_dev)->destructor = __ ## _destructor #define netdev_set_def_destructor(_dev) \