Skip to contentSkip to conversation

batman-adv: remove redundant #include <linux/kconfig.h>

PATCH Applied Sven Eckelmann 1 participant 2 messages Sep 16, 2016 – Oct 18, 2016 Batman advanced

lore
Share & tools
lore

Sven Eckelmann

author maintainer
#0 lore raw

PATCH 1/1 batman-adv: remove redundant #include <linux/kconfig.h>

From: Masahiro Yamada <[email protected]>

Kernel source files need not include <linux/kconfig.h> explicitly because the top Makefile forces to include it with:

  -include $(srctree)/include/linux/kconfig.h
---
 net/batman-adv/debugfs.h | 2 --
 1 file changed, 2 deletions(-)
net/batman-adv/debugfs.h +0 -2
index c68ff3d..e49121e 100644
@@ -20,8 +20,6 @@
 
 #include "main.h"
 
-#include <linux/kconfig.h>
-
 struct net_device;
 
 #define BATADV_DEBUGFS_SUBDIR "batman_adv"
Signature · 1 line
2.9.3
author maintainer Applied
#1 lore raw
Quoted 7 lines · On Freitag, 16. September 2016 09:10:22 CEST Sven Eckelmann wrote:

From: Masahiro Yamada <[email protected]>

Kernel source files need not include <linux/kconfig.h> explicitly because the top Makefile forces to include it with:

  -include $(srctree)/include/linux/kconfig.h
Quoted 8 lines

Link:
http://lkml.kernel.org/r/1473656164-11929-1-git-send-email-yamada.masahiro@
socionext.com Signed-off-by: Masahiro Yamada <[email protected]>

---
 net/batman-adv/debugfs.h | 2 --
 1 file changed, 2 deletions(-)

Applied in d9ca9a3c1687e25511fd0e8ab1cc520083664c24 [1].

Kind regards,
Sven

[1] https://git.open-mesh.org/batman-adv.git/commit/d9ca9a3c1687e25511fd0e8ab1cc520083664c24