backports: declare struct inet6_dev in netdevice.h
authorJohannes Berg <johannes.berg@intel.com>
Mon, 15 Apr 2013 21:18:01 +0000 (23:18 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 15 Apr 2013 21:22:25 +0000 (23:22 +0200)
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 <johannes.berg@intel.com>
backport/backport-include/linux/netdevice.h
patches/collateral-evolutions/network/06-header-changes/include_net_mac80211.patch [deleted file]

index b90899a1a8a4dfecbb4ed99d8db6e819c48d5698..815c8b473bdc4c7fd27f84eaeeb564b68186fddb 100644 (file)
@@ -4,6 +4,13 @@
 #include <linux/netdev_features.h>
 #include <linux/version.h>
 
+/*
+ * 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 <linux/ethtool.h>
 #include <linux/rculist.h>
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 (file)
index 2ba8470..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/include/net/mac80211.h
-+++ b/include/net/mac80211.h
-@@ -20,6 +20,7 @@
- #include <linux/ieee80211.h>
- #include <net/cfg80211.h>
- #include <asm/unaligned.h>
-+#include <net/if_inet6.h>
- /**
-  * DOC: Introduction