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

Message ID 20160916071022.22560-1-sven@narfation.org (mailing list archive)
State Accepted, archived
Commit d9ca9a3c1687e25511fd0e8ab1cc520083664c24
Delegated to: Sven Eckelmann
Headers

Commit Message

Sven Eckelmann Sept. 16, 2016, 7:10 a.m. UTC
  From: Masahiro Yamada <yamada.masahiro@socionext.com>

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

Link: http://lkml.kernel.org/r/1473656164-11929-1-git-send-email-yamada.masahiro@socionext.com
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
 net/batman-adv/debugfs.h | 2 --
 1 file changed, 2 deletions(-)
  

Comments

Sven Eckelmann Oct. 18, 2016, 11:30 a.m. UTC | #1
On Freitag, 16. September 2016 09:10:22 CEST Sven Eckelmann wrote:
> From: Masahiro Yamada <yamada.masahiro@socionext.com>
> 
> 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
> 
> Link:
> http://lkml.kernel.org/r/1473656164-11929-1-git-send-email-yamada.masahiro@
> socionext.com Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> Signed-off-by: Sven Eckelmann <sven@narfation.org>
> ---
>  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
  

Patch

diff --git a/net/batman-adv/debugfs.h b/net/batman-adv/debugfs.h
index c68ff3d..e49121e 100644
--- a/net/batman-adv/debugfs.h
+++ b/net/batman-adv/debugfs.h
@@ -20,8 +20,6 @@ 
 
 #include "main.h"
 
-#include <linux/kconfig.h>
-
 struct net_device;
 
 #define BATADV_DEBUGFS_SUBDIR "batman_adv"