diff options
author | Sven Eckelmann <sven@narfation.org> | 2019-05-24 21:11:17 +0300 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2019-05-25 13:59:53 +0300 |
commit | 68a600de9afc2134aa24d0cce539b98a0acb68b1 (patch) | |
tree | c49ee22e4546b1f00daf4a4c5ca656cf500f4070 /net/batman-adv/main.h | |
parent | 47d4522dd5130361d463b47f0e9a687c4b6697c2 (diff) | |
download | linux-68a600de9afc2134aa24d0cce539b98a0acb68b1.tar.xz |
batman-adv: Use includes instead of fwdecls
While it can be slightly beneficial for the build performance to use
forward declarations instead of includes, the handling of them together
with changes in the included headers makes it unnecessary complicated and
fragile. Just replace them with actual includes since some parts (hwmon,
..) of the kernel even request avoidance of forward declarations and net/
is mostly not using them in *.c file.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r-- | net/batman-adv/main.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index 821a7de45256..3d4c04d87ff3 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h @@ -210,16 +210,15 @@ enum batadv_uev_type { #include <linux/etherdevice.h> #include <linux/if_vlan.h> #include <linux/jiffies.h> +#include <linux/netdevice.h> #include <linux/percpu.h> +#include <linux/seq_file.h> +#include <linux/skbuff.h> #include <linux/types.h> #include <uapi/linux/batadv_packet.h> #include "types.h" - -struct net_device; -struct packet_type; -struct seq_file; -struct sk_buff; +#include "main.h" /** * batadv_print_vid() - return printable version of vid information |