batman-adv: Improve includes for trace functionality
authorSven Eckelmann <sven@narfation.org>
Sun, 21 Oct 2018 09:30:30 +0000 (11:30 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Mon, 12 Nov 2018 09:41:50 +0000 (10:41 +0100)
The batadv_dbg trace event uses different functionality and datastructures
which are not directly associated with the trace infrastructure. It should
not be expected that the trace headers indirectly provide them and instead
include the required headers directly.

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

index 3d57f9981f257de4394ca32b332b13ca93e8863b..8e1024217cff00e1ecb8c73e4bda91737fad5a4b 100644 (file)
@@ -16,7 +16,5 @@
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <linux/module.h>
-
 #define CREATE_TRACE_POINTS
 #include "trace.h"
index 3acda26a30caaaa425720a1169b1d775081f3590..104784be94d7e413b44e95b71ef6a1aa1c46f222 100644 (file)
 
 #include "main.h"
 
+#include <linux/bug.h>
+#include <linux/kernel.h>
+#include <linux/netdevice.h>
+#include <linux/percpu.h>
+#include <linux/printk.h>
 #include <linux/tracepoint.h>
+#include <linux/types.h>
 
 #undef TRACE_SYSTEM
 #define TRACE_SYSTEM batadv