diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-04-15 23:18:01 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-15 23:22:25 +0200 |
commit | 0121e0dc4e4fe36b5c10ad8641d59ae1d402a6c6 (patch) | |
tree | 4939a266b56f29d555abb24d7a15f43a506df280 /backport | |
parent | d0f07d08465fc6cf771bb2d20e6c4742fa31dd39 (diff) |
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 <johannes.berg@intel.com>
Diffstat (limited to 'backport')
-rw-r--r-- | backport/backport-include/linux/netdevice.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h index b90899a1..815c8b47 100644 --- a/backport/backport-include/linux/netdevice.h +++ b/backport/backport-include/linux/netdevice.h @@ -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> |