diff options
author | Sven Eckelmann <sven@narfation.org> | 2019-05-24 20:11:17 +0200 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2019-05-25 12:59:53 +0200 |
commit | 68a600de9afc2134aa24d0cce539b98a0acb68b1 (patch) | |
tree | c49ee22e4546b1f00daf4a4c5ca656cf500f4070 /net/batman-adv/hard-interface.h | |
parent | batman-adv: Add missing include for atomic functions (diff) | |
download | linux-68a600de9afc2134aa24d0cce539b98a0acb68b1.tar.xz linux-68a600de9afc2134aa24d0cce539b98a0acb68b1.zip |
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/hard-interface.h')
-rw-r--r-- | net/batman-adv/hard-interface.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/batman-adv/hard-interface.h b/net/batman-adv/hard-interface.h index c8ef6aa0e865..bbb8a6f18d6b 100644 --- a/net/batman-adv/hard-interface.h +++ b/net/batman-adv/hard-interface.h @@ -11,13 +11,12 @@ #include <linux/compiler.h> #include <linux/kref.h> +#include <linux/netdevice.h> #include <linux/notifier.h> #include <linux/rcupdate.h> #include <linux/stddef.h> #include <linux/types.h> - -struct net_device; -struct net; +#include <net/net_namespace.h> /** * enum batadv_hard_if_state - State of a hard interface |