From: Johannes Berg Date: Mon, 15 Apr 2013 21:18:01 +0000 (+0200) Subject: backports: declare struct inet6_dev in netdevice.h X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0121e0dc4e4fe36b5c10ad8641d59ae1d402a6c6;p=openwrt%2Fstaging%2Fblogic.git backports: declare struct inet6_dev in netdevice.h This allows us to get rid of the mac80211.h patch to include net/if_inet6.h to get that declaration. Newer kernels implicitly declare the struct by using it for a pointer in struct net_device. Signed-off-by: Johannes Berg --- diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h index b90899a1a8a4..815c8b473bdc 100644 --- a/backport/backport-include/linux/netdevice.h +++ b/backport/backport-include/linux/netdevice.h @@ -4,6 +4,13 @@ #include #include +/* + * This is declared implicitly in newer kernels by netdevice.h using + * this pointer in struct net_device, but declare it here anyway so + * pointers to it are accepted as function arguments without warning. + */ +struct inet6_dev; + /* older kernels don't include this here, we need it */ #include #include diff --git a/patches/collateral-evolutions/network/06-header-changes/include_net_mac80211.patch b/patches/collateral-evolutions/network/06-header-changes/include_net_mac80211.patch deleted file mode 100644 index 2ba84707ecfd..000000000000 --- a/patches/collateral-evolutions/network/06-header-changes/include_net_mac80211.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/include/net/mac80211.h -+++ b/include/net/mac80211.h -@@ -20,6 +20,7 @@ - #include - #include - #include -+#include - - /** - * DOC: Introduction