Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1514414

[PATCH] [media] dvb-usb: remove another redundant #include <linux/kconfig.h>

From Paul Bolle <pebolle@tiscali.nl>
Newsgroups linux.kernel
Subject [PATCH] [media] dvb-usb: remove another redundant #include <linux/kconfig.h>
Date 2016-11-03 10:40 +0100
Message-ID <szmF3-22L-13@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Remove another reduntdant include, that managed to sneak by commit
97139d4a6f26 ("treewide: remove redundant #include <linux/kconfig.h>").

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
---
 drivers/media/usb/dvb-usb/dibusb-mc-common.c | 1 -
 1 file changed, 1 deletion(-)

Masahiro: another #include was added to include/asm-generic/export.h. I
think it's bogus too, but testing it required setting
CONFIG_TRIM_UNUSED_KSYMS. And doing that triggered over 100K (!) undefined
symbol errors in my test build.

So naturally I decided to behave as if I never saw that #include enter
export.h. Perhaps you are braver than I am.

diff --git a/drivers/media/usb/dvb-usb/dibusb-mc-common.c b/drivers/media/usb/dvb-usb/dibusb-mc-common.c
index d66f56cc46a5..c989cac9343d 100644
--- a/drivers/media/usb/dvb-usb/dibusb-mc-common.c
+++ b/drivers/media/usb/dvb-usb/dibusb-mc-common.c
@@ -9,7 +9,6 @@
  * see Documentation/dvb/README.dvb-usb for more information
  */
 
-#include <linux/kconfig.h>
 #include "dibusb.h"
 
 /* 3000MC/P stuff */
-- 
2.7.4

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] [media] dvb-usb: remove another redundant #include <linux/kconfig.h> Paul Bolle <pebolle@tiscali.nl> - 2016-11-03 10:40 +0100

csiph-web