[U-Boot] [PATCH v2] Kill unneeded #include <linux/kconfig.h>

Simon Glass sjg at chromium.org
Sat Jul 18 16:37:11 CEST 2015


On 17 July 2015 at 05:30, Masahiro Yamada <yamada.masahiro at socionext.com> wrote:
> 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.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
> Acked-by: Ian Campbell <ijc at hellion.org.uk>
> ---
>
> 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(-)

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list