[2/5] batman-adv: Add includes for deprecation warning

Message ID 20181021093032.19928-3-sven@narfation.org (mailing list archive)
State Accepted, archived
Commit 42bc05f3837e538911fd82f78aaaa7f1ef05ae79
Delegated to: Simon Wunderlich
Headers
Series batman-adv: Tracing and debugfs deprecation cleanups |

Commit Message

Sven Eckelmann Oct. 21, 2018, 9:30 a.m. UTC
  The commit fee04b6f72cf ("batman-adv: Mark debugfs functionality as
deprecated") introduced various messages to inform the user about the
deprecation of the debugfs based functionality. The messages also include
the context/task in which this problem was observed.

The datastructures and functions to access this information require special
headers. These should be included directly instead of depending on a more
complex and fragile include chain.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
 net/batman-adv/debugfs.c | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/net/batman-adv/debugfs.c b/net/batman-adv/debugfs.c
index 8b608a2e..d4a7702e 100644
--- a/net/batman-adv/debugfs.c
+++ b/net/batman-adv/debugfs.c
@@ -19,6 +19,7 @@ 
 #include "debugfs.h"
 #include "main.h"
 
+#include <asm/current.h>
 #include <linux/dcache.h>
 #include <linux/debugfs.h>
 #include <linux/err.h>
@@ -27,6 +28,7 @@ 
 #include <linux/fs.h>
 #include <linux/netdevice.h>
 #include <linux/printk.h>
+#include <linux/sched.h>
 #include <linux/seq_file.h>
 #include <linux/stat.h>
 #include <linux/stddef.h>