batman-adv: include kobject.h for kobject_* functions
authorSven Eckelmann <sven@narfation.org>
Sun, 19 Nov 2017 16:12:05 +0000 (17:12 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Fri, 15 Dec 2017 16:29:18 +0000 (17:29 +0100)
The linux/kobject.h provides the kobject_* function declarations and should
therefore be included directly before they are used.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/sysfs.c

index 374ff46feb8e6a9f129eed83483dd6013182dd91..227a072dc1d30c7a2e6fcc5399d00b97070f548c 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/if.h>
 #include <linux/if_vlan.h>
 #include <linux/kernel.h>
+#include <linux/kobject.h>
 #include <linux/kref.h>
 #include <linux/netdevice.h>
 #include <linux/printk.h>