Kill unneeded #include <linux/kconfig.h>
Subsystems (3)
PATCH v2 1/1 Kill unneeded #include <linux/kconfig.h>
Because the top-level Makefile forces all the source files to include include/linux/kconfig.h (see the UBOOTINCLUDE define), these includes are redundant.
By the way, there are exceptions for the statement above; host programs. In fact, host tools in U-Boot depend on a particular board configuration, although I think they should not. So, some files still include <linux/config.h> to work around build errors on host tools.
---
Changes in v2:
- Fix a typo in git description
include/linux/kconfig -> include/linux/kconfig.h
- Add Ian's Acked-by
arch/arm/cpu/armv7/sunxi/dram_sun8i_a23.c | 1 - arch/arm/cpu/armv7/sunxi/dram_sun8i_a33.c | 1 - arch/x86/cpu/ivybridge/gma.c | 1 - board/sunxi/dram_sun4i_auto.c | 1 - board/sunxi/dram_sun5i_auto.c | 1 - 5 files changed, 5 deletions(-)
arch/arm/cpu/armv7/sunxi/dram_sun8i_a23.c +0 -1
@@ -26,7 +26,6 @@#include <asm/arch/clock.h> #include <asm/arch/dram.h> #include <asm/arch/prcm.h> -#include <linux/kconfig.h> static const struct dram_para dram_para = { .clock =CONFIG_DRAM_CLK ,
arch/arm/cpu/armv7/sunxi/dram_sun8i_a33.c +0 -1
@@ -14,7 +14,6 @@#include <asm/arch/clock.h> #include <asm/arch/dram.h> #include <asm/arch/prcm.h> -#include <linux/kconfig.h> /* PLL runs at 2x dram-clk, controller runs at PLL / 4 (dram-clk / 2) */ #define DRAM_CLK_MUL 2
arch/x86/cpu/ivybridge/gma.c +0 -1
@@ -16,7 +16,6 @@#include <asm/pci.h> #include <asm/arch/pch.h> #include <asm/arch/sandybridge.h> -#include <linux/kconfig.h> struct gt_powermeter {u16 reg;
board/sunxi/dram_sun4i_auto.c +0 -1
@@ -1,6 +1,5 @@#include <common.h> #include <asm/arch/dram.h> -#include <linux/kconfig.h> static struct dram_para dram_para = { .clock =CONFIG_DRAM_CLK ,
board/sunxi/dram_sun5i_auto.c +0 -1
@@ -2,7 +2,6 @@#include <common.h> #include <asm/arch/dram.h> -#include <linux/kconfig.h> static struct dram_para dram_para = { .clock =CONFIG_DRAM_CLK ,
Signature · 1 line
1.9.1
PATCH v2 1/1 Kill unneeded #include <linux/kconfig.h>
Quoted 17 lines · Masahiro Yamada
Because the top-level
Makefileforces all the source files to includeinclude/linux/kconfig.h(see the UBOOTINCLUDE define), these includes are redundant.By the way, there are exceptions for the statement above; host programs. In fact, host tools in U-Boot depend on a particular board configuration, although I think they should not. So, some files still include <
linux/config.h> to work around build errors on host tools.Signed-off-by Masahiro Yamada <[email protected]>Acked-by Ian Campbell <[email protected]>---
Changes in v2:
- Fix a typo in git descriptioninclude/linux/kconfig -> include/linux/kconfig.h
Quoted 8 lines
- Add Ian's Acked-by
arch/arm/cpu/armv7/sunxi/dram_sun8i_a23.c | 1 - arch/arm/cpu/armv7/sunxi/dram_sun8i_a33.c | 1 - arch/x86/cpu/ivybridge/gma.c | 1 - board/sunxi/dram_sun4i_auto.c | 1 - board/sunxi/dram_sun5i_auto.c | 1 - 5 files changed, 5 deletions(-)
PATCH v2 1/1 Kill unneeded #include <linux/kconfig.h>
In reply to Masahiro YamadaQuoted 10 lines · Masahiro Yamada
Because the top-level
Makefileforces all the source files to includeinclude/linux/kconfig.h(see the UBOOTINCLUDE define), these includes are redundant.By the way, there are exceptions for the statement above; host programs. In fact, host tools in U-Boot depend on a particular board configuration, although I think they should not. So, some files still include <
linux/config.h> to work around build errors on host tools.
Quoted 3 lines
Signed-off-by Masahiro Yamada <[email protected]>Acked-by Ian Campbell <[email protected]>Acked-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150728/456ea4e7/attachment.sig>