summaryrefslogtreecommitdiff
path: root/net/batman-adv/sysfs.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2019-05-24 21:11:17 +0300
committerSimon Wunderlich <sw@simonwunderlich.de>2019-05-25 13:59:53 +0300
commit68a600de9afc2134aa24d0cce539b98a0acb68b1 (patch)
treec49ee22e4546b1f00daf4a4c5ca656cf500f4070 /net/batman-adv/sysfs.h
parent47d4522dd5130361d463b47f0e9a687c4b6697c2 (diff)
downloadlinux-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/sysfs.h')
-rw-r--r--net/batman-adv/sysfs.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/batman-adv/sysfs.h b/net/batman-adv/sysfs.h
index 83fa808b1871..5e466093dfa5 100644
--- a/net/batman-adv/sysfs.h
+++ b/net/batman-adv/sysfs.h
@@ -9,12 +9,11 @@
#include "main.h"
+#include <linux/kobject.h>
+#include <linux/netdevice.h>
#include <linux/sysfs.h>
#include <linux/types.h>
-struct kobject;
-struct net_device;
-
#define BATADV_SYSFS_IF_MESH_SUBDIR "mesh"
#define BATADV_SYSFS_IF_BAT_SUBDIR "batman_adv"
/**