qe: Add <config.h> to linux/immap_qe.h
Subsystems (31)
PATCH v2 1/16 qe: Add <config.h> to linux/immap_qe.h
Given how we define QE_MURAM_SIZE today, this header needs to have <config.h> added to it.
--- include/linux/immap_qe.h | 2 ++ 1 file changed, 2 insertions(+)
include/linux/immap_qe.h +2 -0
@@ -11,6 +11,8 @@#ifndef __IMMAP_QE_H__#define __IMMAP_QE_H__ +#include <config.h> +#ifdef CONFIG_MPC83xx#if defined(CONFIG_ARCH_MPC8360 )#define QE_MURAM_SIZE 0xc000UL
Signature · 1 line
2.34.1
PATCH v2 2/16 arc: Cleanup and audit usage of <config.h>
We need to include <config.h> directly when a file needs to have something such as CFG_SYS_SDRAM_SIZE referenced as this file is not automatically globally included and is most commonly indirectly included via common.h. Remove most cases of arc including config.h directly, but add it where needed. Further clean up the tb100 board config.h file so that we don't rely on config.h being included there for a value used in a single place.
--- arch/arc/include/asm/arc-bcr.h | 2 -- arch/arc/include/asm/arcregs.h | 1 - arch/arc/include/asm/cache.h | 2 -- arch/arc/lib/cpu.c | 1 + board/abilis/tb100/tb100.c | 4 ++++ include/configs/tb100.h | 21 --------------------- 6 files changed, 5 insertions(+), 26 deletions(-)
arch/arc/include/asm/arc-bcr.h +0 -2
@@ -13,8 +13,6 @@#define __ARC_BCR_H #ifndef __ASSEMBLY__ -#include <config.h> - union bcr_di_cache { struct { #ifdef CONFIG_CPU_BIG_ENDIAN
arch/arc/include/asm/arcregs.h +0 -1
@@ -7,7 +7,6 @@#define _ASM_ARC_ARCREGS_H#include <asm/cache.h> -#include <config.h> /* * ARC architecture has additional address space - auxiliary registers.
arch/arc/include/asm/cache.h +0 -2
@@ -6,8 +6,6 @@#ifndef __ASM_ARC_CACHE_H#define __ASM_ARC_CACHE_H -#include <config.h> -/* * As of today we may handle any L1 cache line length right in software. * For that essentially cache line length is a variable not constant.
arch/arc/lib/cpu.c +1 -0
@@ -3,6 +3,7 @@* Copyright (C) 2013-2014, 2018 Synopsys, Inc. All rights reserved. */ +#include <config.h> #include <clock_legacy.h> #include <init.h> #include <malloc.h>
board/abilis/tb100/tb100.c +4 -0
@@ -14,6 +14,10 @@ void reset_cpu(void)writel (0x1 , (void *)CRM_SWRESET ); } +/* +* Ethernet configuration +*/ +#define ETH0_BASE_ADDRESS 0xFE100000int board_eth_init (struct bd_info *bis) {if (designware_initialize (ETH0_BASE_ADDRESS ,0 ) >=0 )
include/configs/tb100.h +0 -21
@@ -21,25 +21,4 @@*/ #define CFG_SYS_NS16550_CLK 166666666 -/* -* Even though the board houses Realtek RTL8211E PHY -* corresponding PHY driver (drivers/net/phy/realtek.c) behaves unexpectedly. -* In particular "parse_status" reports link is down. -* -* Until Realtek PHY driver is fixed fall back to generic PHY driver -* which implements all required functionality and behaves much more stable. -* -* -*/ - -/* -* Ethernet configuration -*/ -#define ETH0_BASE_ADDRESS 0xFE100000 -#define ETH1_BASE_ADDRESS 0xFE110000 - -/* -* Console configuration -*/ -#endif /* _CONFIG_TB100_H_ */
Signature · 1 line
2.34.1
PATCH v2 3/16 arm: Partial cleanup and audit usage of <config.h>
In reply to Tom RiniWe need to include <config.h> directly when a file needs to have something such as CFG_SYS_SDRAM_SIZE referenced as this file is not automatically globally included and is most commonly indirectly included via common.h. Remove most cases of arm including config.h directly, but add it where needed. This includes a few board-specific fixes.
---
Changes in v2:
- Update arch/arm/mach-keystone/cmd_mon.c
--- arch/arm/include/asm/arch-fsl-layerscape/fsl_serdes.h | 2 -- arch/arm/include/asm/arch-ls102xa/fsl_serdes.h | 2 -- arch/arm/include/asm/assembler.h | 1 - arch/arm/include/asm/secure.h | 1 - arch/arm/include/asm/string.h | 2 -- arch/arm/mach-davinci/include/mach/pinmux_defs.h | 1 - arch/arm/mach-exynos/exynos4_setup.h | 1 - arch/arm/mach-exynos/exynos5_setup.h | 1 - arch/arm/mach-k3/common.c | 1 + arch/arm/mach-k3/include/mach/clock.h | 2 -- arch/arm/mach-k3/include/mach/j721e_hardware.h | 1 - arch/arm/mach-k3/include/mach/j721s2_hardware.h | 1 - arch/arm/mach-keystone/cmd_mon.c | 1 + board/freescale/ls1088a/eth_ls1088aqds.c | 1 + board/freescale/ls2080aqds/eth.c | 1 + board/toradex/verdin-am62/verdin-am62.c | 1 + drivers/ddr/marvell/axp/ddr3_axp.h | 2 ++ 17 files changed, 7 insertions(+), 15 deletions(-)
arch/arm/include/asm/arch-fsl-layerscape/fsl_serdes.h +0 -2
@@ -7,8 +7,6 @@#ifndef __FSL_SERDES_H__#define __FSL_SERDES_H__ -#include <config.h> -#ifdef CONFIG_FSL_LSCH3 enum srds_prtcl {/*
arch/arm/include/asm/arch-ls102xa/fsl_serdes.h +0 -2
@@ -6,8 +6,6 @@#ifndef __FSL_SERDES_H#define __FSL_SERDES_H -#include <config.h> - enum srds_prtcl {/* * Nobody will check whether the device 'NONE' has been configured,
arch/arm/include/asm/assembler.h +0 -1
@@ -14,7 +14,6 @@* assembler source. */ -#include <config.h> #include <asm/unified.h> /*
arch/arm/include/asm/secure.h +0 -1
@@ -1,7 +1,6 @@#ifndef __ASM_SECURE_H#define __ASM_SECURE_H -#include <config.h> #include <asm/global_data.h> #define __secure __section("._secure.text")
arch/arm/include/asm/string.h +0 -2
@@ -1,8 +1,6 @@#ifndef __ASM_ARM_STRING_H#define __ASM_ARM_STRING_H -#include <config.h> -/* * We don't do inline string functions, since the * optimised inline asm versions are not small.
arch/arm/mach-davinci/include/mach/pinmux_defs.h +0 -1
@@ -9,7 +9,6 @@#define __ASM_ARCH_PINMUX_DEFS_H#include <asm/arch/davinci_misc.h> -#include <config.h> /* SPI0 pin muxer settings */ extern const struct pinmux_config spi0_pins_base[3 ];
arch/arm/mach-exynos/exynos4_setup.h +0 -1
@@ -8,7 +8,6 @@#ifndef _ORIGEN_SETUP_H#define _ORIGEN_SETUP_H -#include <config.h> #include <asm/arch/cpu.h> /* Bus Configuration Register Address */
arch/arm/mach-exynos/exynos5_setup.h +0 -1
@@ -8,7 +8,6 @@#ifndef _SMDK5250_SETUP_H#define _SMDK5250_SETUP_H -#include <config.h> #include <asm/arch/dmc.h> #define NOT_AVAILABLE 0
arch/arm/mach-k3/common.c +1 -0
@@ -6,6 +6,7 @@* Lokesh Vutla <[email protected]> */ +#include <config.h> #include <cpu_func.h> #include <image.h> #include <init.h>
arch/arm/mach-k3/include/mach/clock.h +0 -2
@@ -7,8 +7,6 @@#ifndef __ASM_ARCH_CLOCK_H#define __ASM_ARCH_CLOCK_H -#include <config.h> -/* Clock Defines */ #define V_OSCK 24000000#define V_SCLK V_OSCK
arch/arm/mach-k3/include/mach/j721e_hardware.h +0 -1
@@ -7,7 +7,6 @@#ifndef __ASM_ARCH_J721E_HARDWARE_H#define __ASM_ARCH_J721E_HARDWARE_H -#include <config.h> #ifndef __ASSEMBLY__#include <linux/bitops.h> #endif
arch/arm/mach-k3/include/mach/j721s2_hardware.h +0 -1
@@ -7,7 +7,6 @@#ifndef __ASM_ARCH_J721S2_HARDWARE_H#define __ASM_ARCH_J721S2_HARDWARE_H -#include <config.h> #ifndef __ASSEMBLY__#include <linux/bitops.h> #endif
arch/arm/mach-keystone/cmd_mon.c +1 -0
@@ -6,6 +6,7 @@* Texas Instruments Incorporated, <www.ti.com> */ +#include <config.h> #include <command.h> #include <image.h> #include <mach/mon.h>
board/freescale/ls1088a/eth_ls1088aqds.c +1 -0
@@ -3,6 +3,7 @@* Copyright 2017 NXP */ +#include <config.h> #include <vsprintf.h> #include <linux/string.h> #include <asm/io.h>
board/freescale/ls2080aqds/eth.c +1 -0
@@ -3,6 +3,7 @@* Copyright 2015 Freescale Semiconductor, Inc. */ +#include <config.h> #include <vsprintf.h> #include <linux/string.h> #include <asm/io.h>
board/toradex/verdin-am62/verdin-am62.c +1 -0
@@ -6,6 +6,7 @@* */ +#include <config.h> #include <asm/arch/hardware.h> #include <asm/io.h> #include <dm/uclass.h>
drivers/ddr/marvell/axp/ddr3_axp.h +2 -0
@@ -6,6 +6,8 @@#ifndef __DDR3_AXP_H#define __DDR3_AXP_H +#include <config.h> +#define MV_78XX0_Z1_REV 0x0#define MV_78XX0_A0_REV 0x1#define MV_78XX0_B0_REV 0x2
Signature · 1 line
2.34.1
Re: [v2 03/16] arm: Partial cleanup and audit usage of <config.h>
Quoted 22 lines · Tom Rini
We need to include <
config.h> directly when a file needs to have something such asCFG_SYS_SDRAM_SIZEreferenced as this file is not automatically globally included and is most commonly indirectly included viacommon.h. Remove most cases of arm includingconfig.hdirectly, but add it where needed. This includes a few board-specific fixes.Signed-off-by Tom Rini <[email protected]>---
Changes in v2:
- Updatearch/arm/mach-keystone/cmd_mon.c--- arch/arm/include/asm/arch-fsl-layerscape/fsl_serdes.h | 2 -- arch/arm/include/asm/arch-ls102xa/fsl_serdes.h | 2 -- arch/arm/include/asm/assembler.h | 1 - arch/arm/include/asm/secure.h | 1 - arch/arm/include/asm/string.h | 2 -- arch/arm/mach-davinci/include/mach/pinmux_defs.h | 1 - arch/arm/mach-exynos/exynos4_setup.h | 1 - arch/arm/mach-exynos/exynos5_setup.h | 1 - arch/arm/mach-k3/common.c | 1 + arch/arm/mach-k3/include/mach/clock.h | 2 --
Quoted 8 lines
arch/arm/mach-k3/include/mach/j721e_hardware.h | 1 - arch/arm/mach-k3/include/mach/j721s2_hardware.h | 1 - arch/arm/mach-keystone/cmd_mon.c | 1 + board/freescale/ls1088a/eth_ls1088aqds.c | 1 + board/freescale/ls2080aqds/eth.c | 1 + board/toradex/verdin-am62/verdin-am62.c | 1 + drivers/ddr/marvell/axp/ddr3_axp.h | 2 ++ 17 files changed, 7 insertions(+), 15 deletions(-)
PATCH v2 4/16 sandbox: Audit config.h and common.h usage
In reply to Tom RiniRemove and replace common.h and config.h in sandbox when it's not needed and add some explicit includes where needed.
---
Changes in v2:
- Drop <autoboot.h> from arch/sandbox/cpu/state.c as it's also not needed and leads to unrelated build failures with CMDLINE=n
--- arch/sandbox/cpu/cache.c | 1 - arch/sandbox/cpu/cpu.c | 1 - arch/sandbox/cpu/sdl.c | 2 +- arch/sandbox/cpu/spl.c | 1 - arch/sandbox/cpu/start.c | 2 +- arch/sandbox/cpu/state.c | 3 +-- arch/sandbox/include/asm/io.h | 2 ++ arch/sandbox/include/asm/state.h | 1 - arch/sandbox/lib/bootm.c | 1 - arch/sandbox/lib/fdt_fixup.c | 1 - arch/sandbox/lib/interrupts.c | 1 - arch/sandbox/lib/pci_io.c | 1 - board/sandbox/sandbox.c | 2 +- 13 files changed, 6 insertions(+), 13 deletions(-)
arch/sandbox/cpu/cache.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2020, Heinrich Schuchardt <[email protected]> */ -#include <common.h> #include <cpu_func.h> #include <asm/state.h>
arch/sandbox/cpu/cpu.c +0 -1
@@ -5,7 +5,6 @@#define LOG_CATEGORY LOGC_SANDBOX -#include <common.h> #include <bootstage.h> #include <cpu_func.h> #include <errno.h>
arch/sandbox/cpu/sdl.c +1 -1
@@ -72,7 +72,7 @@ static struct sdl_info {static void sandbox_sdl_poll_events (void ) {/* -* We don't want to include common.h in this file since it uses +* We don't want to include cpu_func.h in this file since it uses * system headers. So add a declation here. */ extern void reset_cpu (void );
arch/sandbox/cpu/spl.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2016 Google, Inc */ -#include <common.h> #include <dm.h> #include <hang.h> #include <handoff.h>
arch/sandbox/cpu/start.c +1 -1
@@ -3,7 +3,7 @@* Copyright (c) 2011-2012 The Chromium OS Authors. */ -#include <common.h> +#include <config.h> #include <cli.h> #include <command.h> #include <efi_loader.h>
arch/sandbox/cpu/state.c +1 -2
@@ -3,9 +3,8 @@* Copyright (c) 2011-2012 The Chromium OS Authors. */ -#include <common.h> -#include <autoboot.h> #include <bloblist.h> +#include <config.h> #include <errno.h> #include <fdtdec.h> #include <log.h>
arch/sandbox/include/asm/io.h +2 -0
@@ -6,6 +6,8 @@#ifndef __SANDBOX_ASM_IO_H#define __SANDBOX_ASM_IO_H +#include <linux/types.h> +enum sandboxio_size_t {SB_SIZE_8 , SB_SIZE_16,
arch/sandbox/include/asm/state.h +0 -1
@@ -6,7 +6,6 @@#ifndef __SANDBOX_STATE_H#define __SANDBOX_STATE_H -#include <config.h> #include <sysreset.h> #include <stdbool.h> #include <linux/list.h>
arch/sandbox/lib/bootm.c +0 -1
@@ -4,7 +4,6 @@* Copyright (c) 2015 Sjoerd Simons <[email protected]> */ -#include <common.h> #include <bootstage.h> #include <image.h> #include <asm/io.h>
arch/sandbox/lib/fdt_fixup.c +0 -1
@@ -2,7 +2,6 @@#define LOG_CATEGORY LOGC_ARCH -#include <common.h> #include <fdt_support.h> #include <log.h>
arch/sandbox/lib/interrupts.c +0 -1
@@ -5,7 +5,6 @@* found in the LICENSE file. */ -#include <common.h> #include <efi_loader.h> #include <irq_func.h> #include <os.h>
arch/sandbox/lib/pci_io.c +0 -1
@@ -8,7 +8,6 @@* IO space access commands. */ -#include <common.h> #include <command.h> #include <dm.h> #include <log.h>
board/sandbox/sandbox.c +1 -1
@@ -3,8 +3,8 @@* Copyright (c) 2011 The Chromium OS Authors. */ -#include <common.h> #include <addr_map.h> +#include <config.h> #include <cpu_func.h> #include <cros_ec.h> #include <dm.h>
Signature · 1 line
2.34.1
Re: [v2 04/16] sandbox: Audit config.h and common.h usage
Quoted 9 lines · Tom Rini
Remove and replace
common.handconfig.hin sandbox when it's not needed and add some explicit includes where needed.Signed-off-by Tom Rini <[email protected]>---
Changes in v2:
- Drop <autoboot.h> fromarch/sandbox/cpu/state.cas it's also not needed and leads to unrelated build failures with CMDLINE=n
Quoted 16 lines
--- arch/sandbox/cpu/cache.c | 1 - arch/sandbox/cpu/cpu.c | 1 - arch/sandbox/cpu/sdl.c | 2 +- arch/sandbox/cpu/spl.c | 1 - arch/sandbox/cpu/start.c | 2 +- arch/sandbox/cpu/state.c | 3 +-- arch/sandbox/include/asm/io.h | 2 ++ arch/sandbox/include/asm/state.h | 1 - arch/sandbox/lib/bootm.c | 1 - arch/sandbox/lib/fdt_fixup.c | 1 - arch/sandbox/lib/interrupts.c | 1 - arch/sandbox/lib/pci_io.c | 1 - board/sandbox/sandbox.c | 2 +- 13 files changed, 6 insertions(+), 13 deletions(-)
PATCH v2 5/16 global: Drop common.h inclusion
In reply to Tom RiniIn order to make it easier to move on to dropping common.h from code directly, remove common.h inclusion from the rest of the header file which had been including it.
--- board/BuR/common/br_resetc.h | 1 - board/CZ.NIC/turris_mox/mox_sp.h | 2 -- board/freescale/common/vsc3316_3308.h | 1 - board/ti/ks2_evm/mux-k2g.h | 1 - board/tq/tqma6/tqma6_bb.h | 2 -- board/xilinx/zynqmp/xil_io.h | 1 - disk/part_amiga.h | 1 - drivers/bios_emulator/include/x86emu.h | 1 - drivers/crypto/fsl/jobdesc.h | 1 - drivers/crypto/fsl/rsa_caam.h | 2 -- drivers/ddr/altera/sdram_soc64.h | 1 - drivers/ddr/marvell/a38x/ddr_ml_wrapper.h | 1 - drivers/net/fm/fm.h | 1 - drivers/net/fsl-mc/dpio/qbman_private.h | 1 - drivers/net/fsl-mc/dpio/qbman_sys.h | 1 + drivers/net/mscc_eswitch/mscc_mac_table.c | 1 + drivers/net/mscc_eswitch/mscc_mac_table.h | 2 -- drivers/net/mscc_eswitch/mscc_xfer.c | 1 + drivers/net/mscc_eswitch/mscc_xfer.h | 2 -- drivers/pci/pcie_layerscape_fixup_common.h | 2 -- drivers/pci_endpoint/pcie-cadence.h | 1 - drivers/pinctrl/mtmips/pinctrl-mtmips-common.h | 2 -- drivers/usb/gadget/bcm_udc_otg.h | 2 -- fs/btrfs/ctree.h | 1 - fs/yaffs2/ydirectenv.h | 1 - lib/libavb/avb_sysdeps.h | 4 +++- lib/zlib/zlib.h | 1 - net/arp.h | 2 -- net/link_local.h | 5 +---- net/net_rand.h | 1 - net/ping.h | 1 - 31 files changed, 7 insertions(+), 40 deletions(-)
board/BuR/common/br_resetc.h +0 -1
@@ -7,7 +7,6 @@*/ #ifndef __CONFIG_BRRESETC_H__#define __CONFIG_BRRESETC_H__ -#include <common.h> int br_resetc_regget (u8 reg,u8 *dst);int br_resetc_regset (u8 reg,u8 val);
board/CZ.NIC/turris_mox/mox_sp.h +0 -2
@@ -6,8 +6,6 @@#ifndef _BOARD_CZNIC_TURRIS_MOX_MOX_SP_H_#define _BOARD_CZNIC_TURRIS_MOX_MOX_SP_H_ -#include <common.h> -enum cznic_a3720_board {BOARD_UNDEFINED =0x0 , BOARD_TURRIS_MOX = 0x1,
board/freescale/common/vsc3316_3308.h +0 -1
@@ -6,7 +6,6 @@#ifndef __VSC_CROSSBAR_H_#define __VSC_CROSSBAR_H_ -#include <common.h> #include <i2c.h> #include <errno.h>
board/ti/ks2_evm/mux-k2g.h +0 -1
@@ -6,7 +6,6 @@* Texas Instruments Incorporated, <www.ti.com> */ -#include <common.h> #include <hang.h> #include <asm/io.h> #include <asm/arch/mux-k2g.h>
board/tq/tqma6/tqma6_bb.h +0 -2
@@ -7,8 +7,6 @@#ifndef __TQMA6_BB__#define __TQMA6_BB__ -#include <common.h> -int tqma6_bb_board_mmc_getwp (struct mmc *mmc);int tqma6_bb_board_mmc_getcd (struct mmc *mmc);int tqma6_bb_board_mmc_init (struct bd_info *bis);
board/xilinx/zynqmp/xil_io.h +0 -1
@@ -5,7 +5,6 @@/* FIXME remove this when vivado is fixed */ #include <asm/io.h> -#include <common.h> #include <linux/delay.h> #define xil_printf (...)
disk/part_amiga.h +0 -1
@@ -7,7 +7,6 @@#ifndef _DISK_PART_AMIGA_H#define _DISK_PART_AMIGA_H -#include <common.h> #if CONFIG_IS_ENABLED (ISO_PARTITION )/* Make the buffers bigger if ISO partition support is enabled -- CD-ROMS
drivers/bios_emulator/include/x86emu.h +0 -1
@@ -42,7 +42,6 @@#define __X86EMU_X86EMU_H#include <asm/types.h> -#include <common.h> #include <pci.h> #include <asm/io.h> #define X86API
drivers/crypto/fsl/jobdesc.h +0 -1
@@ -7,7 +7,6 @@#ifndef __JOBDESC_H#define __JOBDESC_H -#include <common.h> #include <asm/io.h> #include "rsa_caam.h"
drivers/crypto/fsl/rsa_caam.h +0 -2
@@ -6,8 +6,6 @@#ifndef __RSA_CAAM_H#define __RSA_CAAM_H -#include <common.h> -/** * struct pk_in_params - holder for input to PKHA block in CAAM * These parameters are required to perform Modular Exponentiation
drivers/ddr/altera/sdram_soc64.h +0 -1
@@ -6,7 +6,6 @@#ifndef _SDRAM_SOC64_H_#define _SDRAM_SOC64_H_ -#include <common.h> #include <linux/sizes.h> struct altera_sdram_priv {
drivers/ddr/marvell/a38x/ddr_ml_wrapper.h +0 -1
@@ -6,7 +6,6 @@#ifndef _DDR_ML_WRAPPER_H#define _DDR_ML_WRAPPER_H -#include <common.h> #include <i2c.h> #include <spl.h> #include <asm/io.h>
drivers/net/fm/fm.h +0 -1
@@ -6,7 +6,6 @@#ifndef __FM_H__#define __FM_H__ -#include <common.h> #include <phy.h> #include <fm_eth.h> #include <fsl_fman.h>
drivers/net/fsl-mc/dpio/qbman_private.h +0 -1
@@ -4,7 +4,6 @@*/ /* Perform extra checking */ -#include <common.h> #include <errno.h> #include <asm/io.h> #include <linux/bug.h>
drivers/net/fsl-mc/dpio/qbman_sys.h +1 -0
@@ -20,6 +20,7 @@/* Trace the 3 different classes of read/write access to QBMan. #undef as * required. */ +#include <config.h> #include <linux/bug.h> #include <linux/printk.h> #undef QBMAN_CCSR_TRACE
drivers/net/mscc_eswitch/mscc_mac_table.c +1 -0
@@ -3,6 +3,7 @@* Copyright (c) 2018 Microsemi Corporation */ +#include <errno.h> #include <linux/bitops.h> #include <linux/io.h> #include "mscc_mac_table.h"
drivers/net/mscc_eswitch/mscc_mac_table.h +0 -2
@@ -3,8 +3,6 @@* Copyright (c) 2018 Microsemi Corporation */ -#include <common.h> -#define ETH_LEN 6#define MAC_VID 1
drivers/net/mscc_eswitch/mscc_xfer.c +1 -0
@@ -3,6 +3,7 @@* Copyright (c) 2018 Microsemi Corporation */ +#include <errno.h> #include <log.h> #include <linux/bitops.h> #include <linux/delay.h>
drivers/net/mscc_eswitch/mscc_xfer.h +0 -2
@@ -3,8 +3,6 @@* Copyright (c) 2018 Microsemi Corporation */ -#include <common.h> -enum mscc_regs_qs {MSCC_QS_XTR_RD ,MSCC_QS_XTR_FLUSH ,
drivers/pci/pcie_layerscape_fixup_common.h +0 -2
@@ -9,8 +9,6 @@#ifndef _PCIE_LAYERSCAPE_FIXUP_COMMON_H_#define _PCIE_LAYERSCAPE_FIXUP_COMMON_H_ -#include <common.h> -void ft_pci_setup_ls (void *blob,struct bd_info *bd);#ifdef CONFIG_PCIE_LAYERSCAPE_GEN4
drivers/pci_endpoint/pcie-cadence.h +0 -1
@@ -11,7 +11,6 @@#ifndef PCIE_CADENCE_H #define PCIE_CADENCE_H -#include <common.h> #include <pci_ep.h> #include <asm/io.h> #include <linux/bitops.h>
drivers/pinctrl/mtmips/pinctrl-mtmips-common.h +0 -2
@@ -8,8 +8,6 @@ #ifndef _PINCTRL_MTMIPS_COMMON_H_ #define _PINCTRL_MTMIPS_COMMON_H_ -#include <common.h> - struct mtmips_pmx_func { const char *name; int value;
drivers/usb/gadget/bcm_udc_otg.h +0 -2
@@ -6,8 +6,6 @@#ifndef __BCM_UDC_OTG_H#define __BCM_UDC_OTG_H -#include <common.h> -static inline void wfld_set (uintptr_t addr,uint32_t fld_val,uint32_t fld_mask) {writel (((readl (addr) & ~(fld_mask)) | (fld_val)), (addr));
fs/btrfs/ctree.h +0 -1
@@ -9,7 +9,6 @@#ifndef __BTRFS_CTREE_H__#define __BTRFS_CTREE_H__ -#include <common.h> #include <compiler.h> #include <linux/rbtree.h> #include <linux/bug.h>
fs/yaffs2/ydirectenv.h +0 -1
@@ -20,7 +20,6 @@#ifndef __YDIRECTENV_H__#define __YDIRECTENV_H__ -#include <common.h> #include <malloc.h> #include <linux/compat.h>
lib/libavb/avb_sysdeps.h +3 -1
@@ -19,7 +19,9 @@ extern "C" {* like uint8_t, uint64_t, and bool (with |false|, |true| keywords) * must be present. */ -#include <common.h> +#include <stdio.h> +#include <stdbool.h> +#include <linux/types.h> /* If you don't have gcc or clang, these attribute macros may need to * be adjusted.
lib/zlib/zlib.h +0 -1
@@ -2,7 +2,6 @@#ifndef __GLUE_ZLIB_H__#define __GLUE_ZLIB_H__ -#include <common.h> #include <linux/compiler.h> #include <asm/unaligned.h> #include <watchdog.h>
net/arp.h +0 -2
@@ -12,8 +12,6 @@#ifndef __ARP_H__#define __ARP_H__ -#include <common.h> -extern struct in_addr net_arp_wait_packet_ip;/* MAC address of waiting packet's destination */ extern uchar *arp_wait_packet_ethaddr;
net/link_local.h +1 -4
@@ -10,15 +10,12 @@* Licensed under the GPL v2 or later */ -#if defined(CONFIG_CMD_LINK_LOCAL ) -#ifndef __LINK_LOCAL_H__#define __LINK_LOCAL_H__ -#include <common.h> +struct arp_hdr ;void link_local_receive_arp (struct arp_hdr *arp,int len);void link_local_start (void );#endif /* __LINK_LOCAL_H__ */ -#endif
net/net_rand.h +0 -1
@@ -9,7 +9,6 @@#ifndef __NET_RAND_H__#define __NET_RAND_H__ -#include <common.h> #include <dm/uclass.h> #include <rng.h>
net/ping.h +0 -1
@@ -12,7 +12,6 @@#ifndef __PING_H__#define __PING_H__ -#include <common.h> #include <net.h> /*
Signature · 1 line
2.34.1
PATCH v2 6/16 global: Remove duplicate common.h inclusions
In reply to Tom RiniThese files include <common.h> twice. Start by removing the second inclusion of the file.
--- board/data_modul/common/common.c | 1 - board/grinn/liteboard/board.c | 1 - board/toradex/colibri_imx7/colibri_imx7.c | 1 - board/wandboard/wandboard.c | 1 - drivers/gpio/gpio-aspeed.c | 1 - drivers/spi/fsl_dspi.c | 1 - drivers/video/exynos/exynos_dp.c | 1 - 7 files changed, 7 deletions(-)
board/data_modul/common/common.c +0 -1
@@ -12,7 +12,6 @@#include <asm/io.h> #include <asm/mach-imx/boot_mode.h> #include <asm/mach-imx/iomux-v3.h> -#include <common.h> #include <dm/uclass.h> #include <hang.h> #include <i2c_eeprom.h>
board/grinn/liteboard/board.c +0 -1
@@ -20,7 +20,6 @@#include <asm/mach-imx/iomux-v3.h> #include <asm/mach-imx/boot_mode.h> #include <asm/io.h> -#include <common.h> #include <env.h> #include <fsl_esdhc_imx.h> #include <linux/sizes.h>
board/toradex/colibri_imx7/colibri_imx7.c +0 -1
@@ -16,7 +16,6 @@#include <asm/gpio.h> #include <asm/mach-imx/iomux-v3.h> #include <asm/io.h> -#include <common.h> #include <dm.h> #include <dm/platform_data/serial_mxc.h> #include <fdt_support.h>
board/wandboard/wandboard.c +0 -1
@@ -28,7 +28,6 @@#include <env.h> #include <linux/delay.h> #include <linux/sizes.h> -#include <common.h> #include <miiphy.h> #include <netdev.h> #include <phy.h>
drivers/gpio/gpio-aspeed.c +0 -1
@@ -11,7 +11,6 @@#include <asm/gpio.h> #include <config.h> -#include <common.h> #include <clk.h> #include <dm.h> #include <asm/io.h>
drivers/spi/fsl_dspi.c +0 -1
@@ -14,7 +14,6 @@#include <common.h> #include <dm.h> #include <errno.h> -#include <common.h> #include <log.h> #include <spi.h> #include <malloc.h>
drivers/video/exynos/exynos_dp.c +0 -1
@@ -7,7 +7,6 @@#include <common.h> #include <dm.h> -#include <common.h> #include <display.h> #include <fdtdec.h> #include <log.h>
Signature · 1 line
2.34.1
PATCH v2 7/16 arm: Remove <asm/types.h> from asm/global_data.h
In reply to Tom RiniWe need and include <linux/types.h> and this in turn already includes <asm/types.h>, so drop it here.
--- arch/arm/include/asm/global_data.h | 1 - 1 file changed, 1 deletion(-)
arch/arm/include/asm/global_data.h +0 -1
@@ -11,7 +11,6 @@#include <config.h> -#include <asm/types.h> #include <linux/types.h> /* Architecture-specific global data */
Signature · 1 line
2.34.1
PATCH v2 8/16 sandbox: Add <linux/types.h> to asm/global_data.h and asm/io.h
In reply to Tom RiniWe need <linux/types.h> in these files as we reference Linux types.
--- arch/sandbox/include/asm/global_data.h | 2 ++ 1 file changed, 2 insertions(+)
arch/sandbox/include/asm/global_data.h +2 -0
@@ -9,6 +9,8 @@ #ifndef __ASM_GBL_DATA_H #define __ASM_GBL_DATA_H +#include <linux/types.h> + /* Architecture-specific global data */ struct arch_global_data { uint8_t *ram_buf; /* emulated RAM buffer */
Signature · 1 line
2.34.1
PATCH v2 9/16 m68k: Rework asm/global_data.h slightly
In reply to Tom RiniIn the architecture global data, replace the one case of u32 with unsigned long. Now, we can drop config.h here but then do need to add it in two m68k-centric spaces.
--- arch/m68k/include/asm/cache.h | 2 ++ arch/m68k/include/asm/global_data.h | 4 +--- arch/m68k/lib/traps.c | 1 + 3 files changed, 4 insertions(+), 3 deletions(-)
arch/m68k/include/asm/cache.h +2 -0
@@ -9,6 +9,8 @@#ifndef __CACHE_H#define __CACHE_H +#include <config.h> +#if defined(CONFIG_MCF520x) || defined(CONFIG_MCF523x) || \ defined(CONFIG_MCF52x2)#define CFG_CF_V2
arch/m68k/include/asm/global_data.h +1 -3
@@ -7,8 +7,6 @@ #ifndef __ASM_GBL_DATA_H #define __ASM_GBL_DATA_H -#include <config.h> - /* Architecture-specific global data */ struct arch_global_data { #ifdef CONFIG_SYS_I2C_FSL
@@ -24,7 +22,7 @@ struct arch_global_data {unsigned long sdhc_clk;#endif #if defined(CONFIG_FSL_ESDHC ) -u32 sdhc_per_clk; +unsigned long sdhc_per_clk;#endif };
arch/m68k/lib/traps.c +1 -0
@@ -7,6 +7,7 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ +#include <config.h> #include <init.h> #include <watchdog.h> #include <command.h>
Signature · 1 line
2.34.1
PATCH v2 10/16 global: Rework architecture global_data.h to include <linux/types.h>
In reply to Tom RiniIn most cases, the architecture global data currently makes use of assorted linux types, but does not include <linux/types.h> to provide them. Add <linux/types.h> instead of relying on indirect inclusion.
---
Changes in v2:
- Update include/system-constraints.h and board/cssi/cmpc885/sdram.c
--- arch/mips/include/asm/global_data.h | 2 +- arch/nios2/include/asm/global_data.h | 2 ++ arch/powerpc/include/asm/global_data.h | 1 - arch/riscv/include/asm/global_data.h | 1 + arch/x86/include/asm/global_data.h | 1 + board/cssi/cmpc885/sdram.c | 1 + include/system-constants.h | 2 ++ 7 files changed, 8 insertions(+), 2 deletions(-)
arch/mips/include/asm/global_data.h +1 -1
@@ -7,8 +7,8 @@ #ifndef __ASM_GBL_DATA_H #define __ASM_GBL_DATA_H +#include <linux/types.h> #include <asm/regdef.h> -#include <asm/types.h> struct octeon_eeprom_mac_addr { u8 mac_addr_base[6];
arch/nios2/include/asm/global_data.h +2 -0
@@ -6,6 +6,8 @@ #ifndef __ASM_NIOS2_GLOBALDATA_H_ #define __ASM_NIOS2_GLOBALDATA_H_ +#include <linux/types.h> + /* Architecture-specific global data */ struct arch_global_data { u32 dcache_line_size;
arch/powerpc/include/asm/global_data.h +0 -1
@@ -8,7 +8,6 @@#ifndef __ASM_GBL_DATA_H#define __ASM_GBL_DATA_H -#include <config.h> #include <linux/types.h> /* Architecture-specific global data */
arch/riscv/include/asm/global_data.h +1 -0
@@ -10,6 +10,7 @@#ifndef __ASM_GBL_DATA_H#define __ASM_GBL_DATA_H +#include <linux/types.h> #include <asm/smp.h> #include <asm/u-boot.h> #include <compiler.h>
arch/x86/include/asm/global_data.h +1 -0
@@ -9,6 +9,7 @@#ifndef __ASSEMBLY__ +#include <linux/types.h> #include <asm/processor.h> #include <asm/mrccache.h>
board/cssi/cmpc885/sdram.c +1 -0
@@ -4,6 +4,7 @@* Charles Frey <[email protected]> */ +#include <config.h> #include <linux/sizes.h> #include <linux/delay.h> #include <init.h>
include/system-constants.h +2 -0
@@ -3,6 +3,8 @@#ifndef __SYSTEM_CONSTANTS_H__#define __SYSTEM_CONSTANTS_H__ +#include <config.h> +/* * The most common case for our initial stack pointer address is to * say that we have defined a static intiial ram address location and
Signature · 1 line
2.34.1
Re: [v2 10/16] global: Rework architecture global_data.h to include <linux/types.h>
Quoted 9 lines · Tom Rini
In most cases, the architecture global data currently makes use of assorted linux types, but does not include <
linux/types.h> to provide them. Add <linux/types.h> instead of relying on indirect inclusion.Signed-off-by Tom Rini <[email protected]>---
Changes in v2:
- Updateinclude/system-constraints.handboard/cssi/cmpc885/sdram.c
Quoted 10 lines
--- arch/mips/include/asm/global_data.h | 2 +- arch/nios2/include/asm/global_data.h | 2 ++ arch/powerpc/include/asm/global_data.h | 1 - arch/riscv/include/asm/global_data.h | 1 + arch/x86/include/asm/global_data.h | 1 + board/cssi/cmpc885/sdram.c | 1 + include/system-constants.h | 2 ++ 7 files changed, 8 insertions(+), 2 deletions(-)
PATCH v2 11/16 lib/sha*.c: Update header list
In reply to Tom RiniCleanup the list of headers we include here. For the tools build we only need to exclude <cyclic.h> as that's used by the target build for the prototype for schedule(), and we don't need to get that via <watchdog.h>. We can also make use of our <string.h> intentionally existing as a redirection to <linux/string.h> to reduce ifdef'd lines.
--- lib/sha1.c | 7 ++----- lib/sha256.c | 7 ++----- lib/sha512.c | 6 +----- 3 files changed, 5 insertions(+), 15 deletions(-)
lib/sha1.c +2 -5
@@ -17,12 +17,9 @@#endif #ifndef USE_HOSTCC -#include <common.h> -#include <linux/string.h> -#else -#include <string.h> +#include <cyclic.h> #endif /* USE_HOSTCC */ -#include <watchdog.h> +#include <string.h> #include <u-boot/sha1.h> #include <linux/compiler_attributes.h>
lib/sha256.c +2 -5
@@ -6,12 +6,9 @@*/ #ifndef USE_HOSTCC -#include <common.h> -#include <linux/string.h> -#else -#include <string.h> +#include <cyclic.h> #endif /* USE_HOSTCC */ -#include <watchdog.h> +#include <string.h> #include <u-boot/sha256.h> #include <linux/compiler_attributes.h>
lib/sha512.c +1 -5
@@ -11,13 +11,9 @@*/ #ifndef USE_HOSTCC -#include <common.h> -#include <linux/string.h> -#else -#include <string.h> +#include <cyclic.h> #endif /* USE_HOSTCC */ #include <compiler.h> -#include <watchdog.h> #include <u-boot/sha512.h> const uint8_t sha384_der_prefix[SHA384_DER_LEN ] = {
Signature · 1 line
2.34.1
Re: [v2 11/16] lib/sha*.c: Update header list
Quoted 7 lines · Tom Rini
Cleanup the list of headers we include here. For the tools build we only need to exclude <
cyclic.h> as that's used by the target build for the prototype forschedule(), and we don't need to get that via <watchdog.h>. We can also make use of our <string.h> intentionally existing as a redirection to <linux/string.h> to reduce ifdef'd lines.
Quoted 6 lines
Signed-off-by Tom Rini <[email protected]>--- lib/sha1.c | 7 ++----- lib/sha256.c | 7 ++----- lib/sha512.c | 6 +----- 3 files changed, 5 insertions(+), 15 deletions(-)
PATCH v2 12/16 rmobile: Add <mach/rmobile.h> to cpu_info-rzg2l.c
In reply to Tom RiniIn order for RMOBILE_CPU_TYPE_R9A07G044L to be defined we need to include <mach/rmobile.h> here.
--- arch/arm/mach-rmobile/cpu_info-rzg2l.c | 1 + 1 file changed, 1 insertion(+)
arch/arm/mach-rmobile/cpu_info-rzg2l.c +1 -0
@@ -4,6 +4,7 @@* */ +#include <mach/rmobile.h> #include <asm/io.h> #include <linux/libfdt.h>
Signature · 1 line
2.34.1
PATCH v2 13/16 efi_loader: Remove <common.h>
In reply to Tom RiniWe largely do not need <common.h> in these files, so drop it. The only exception here is that efi_freestanding.c needs <linux/types.h> and had been getting that via <common.h>.
--- lib/efi_loader/dtbdump.c | 1 - lib/efi_loader/efi_acpi.c | 1 - lib/efi_loader/efi_bootmgr.c | 1 - lib/efi_loader/efi_boottime.c | 1 - lib/efi_loader/efi_capsule.c | 1 - lib/efi_loader/efi_conformance.c | 1 - lib/efi_loader/efi_console.c | 1 - lib/efi_loader/efi_device_path.c | 1 - lib/efi_loader/efi_device_path_to_text.c | 1 - lib/efi_loader/efi_device_path_utilities.c | 1 - lib/efi_loader/efi_disk.c | 1 - lib/efi_loader/efi_dt_fixup.c | 1 - lib/efi_loader/efi_esrt.c | 1 - lib/efi_loader/efi_file.c | 1 - lib/efi_loader/efi_firmware.c | 1 - lib/efi_loader/efi_freestanding.c | 2 +- lib/efi_loader/efi_gop.c | 1 - lib/efi_loader/efi_helper.c | 1 - lib/efi_loader/efi_hii.c | 1 - lib/efi_loader/efi_hii_config.c | 1 - lib/efi_loader/efi_image_loader.c | 1 - lib/efi_loader/efi_load_initrd.c | 1 - lib/efi_loader/efi_load_options.c | 1 - lib/efi_loader/efi_memory.c | 1 - lib/efi_loader/efi_net.c | 1 - lib/efi_loader/efi_riscv.c | 1 - lib/efi_loader/efi_rng.c | 1 - lib/efi_loader/efi_root_node.c | 1 - lib/efi_loader/efi_runtime.c | 1 - lib/efi_loader/efi_setup.c | 1 - lib/efi_loader/efi_signature.c | 1 - lib/efi_loader/efi_smbios.c | 1 - lib/efi_loader/efi_string.c | 1 - lib/efi_loader/efi_tcg2.c | 1 - lib/efi_loader/efi_unicode_collation.c | 1 - lib/efi_loader/efi_var_common.c | 1 - lib/efi_loader/efi_var_file.c | 1 - lib/efi_loader/efi_var_mem.c | 1 - lib/efi_loader/efi_variable.c | 1 - lib/efi_loader/efi_variable_tee.c | 1 - lib/efi_loader/efi_watchdog.c | 1 - lib/efi_loader/initrddump.c | 1 - 42 files changed, 1 insertion(+), 42 deletions(-)
lib/efi_loader/dtbdump.c +0 -1
@@ -6,7 +6,6 @@* to a file. */ -#include <common.h> #include <efi_api.h> #include <efi_dt_fixup.h> #include <part.h>
lib/efi_loader/efi_acpi.c +0 -1
@@ -5,7 +5,6 @@* Copyright (C) 2018, Bin Meng <[email protected]> */ -#include <common.h> #include <efi_loader.h> #include <log.h> #include <mapmem.h>
lib/efi_loader/efi_bootmgr.c +0 -1
@@ -9,7 +9,6 @@#include <blk.h> #include <blkmap.h> -#include <common.h> #include <charset.h> #include <dm.h> #include <log.h>
lib/efi_loader/efi_boottime.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2016 Alexander Graf */ -#include <common.h> #include <bootm.h> #include <div64.h> #include <dm/device.h>
lib/efi_loader/efi_capsule.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY LOGC_EFI -#include <common.h> #include <efi_loader.h> #include <efi_variable.h> #include <env.h>
lib/efi_loader/efi_conformance.c +0 -1
@@ -5,7 +5,6 @@* Copyright (C) 2022 Arm Ltd. */ -#include <common.h> #include <efi_loader.h> #include <log.h> #include <efi_api.h>
lib/efi_loader/efi_console.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY LOGC_EFI#include <ansi.h> -#include <common.h> #include <charset.h> #include <malloc.h> #include <time.h>
lib/efi_loader/efi_device_path.c +0 -1
@@ -7,7 +7,6 @@#define LOG_CATEGORY LOGC_EFI -#include <common.h> #include <blk.h> #include <dm.h> #include <dm/root.h>
lib/efi_loader/efi_device_path_to_text.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2017 Heinrich Schuchardt */ -#include <common.h> #include <blk.h> #include <efi_loader.h> #include <malloc.h>
lib/efi_loader/efi_device_path_utilities.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2017 Leif Lindholm */ -#include <common.h> #include <efi_loader.h> const efi_guid_t efi_guid_device_path_utilities_protocol =
lib/efi_loader/efi_disk.c +0 -1
@@ -7,7 +7,6 @@#define LOG_CATEGORY LOGC_EFI -#include <common.h> #include <blk.h> #include <dm.h> #include <dm/device-internal.h>
lib/efi_loader/efi_dt_fixup.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2020 Heinrich Schuchardt */ -#include <common.h> #include <efi_dt_fixup.h> #include <efi_loader.h> #include <efi_rng.h>
lib/efi_loader/efi_esrt.c +0 -1
@@ -5,7 +5,6 @@* Copyright (C) 2021 Arm Ltd. */ -#include <common.h> #include <efi_loader.h> #include <log.h> #include <efi_api.h>
lib/efi_loader/efi_file.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2017 Rob Clark */ -#include <common.h> #include <charset.h> #include <efi_loader.h> #include <log.h>
lib/efi_loader/efi_firmware.c +0 -1
@@ -6,7 +6,6 @@* Author: AKASHI Takahiro */ -#include <common.h> #include <charset.h> #include <dfu.h> #include <efi_loader.h>
lib/efi_loader/efi_freestanding.c +1 -1
@@ -8,7 +8,7 @@* memset(), and memcmp(). */ -#include <common.h> +#include <linux/types.h> /** * memcmp() - compare memory areas
lib/efi_loader/efi_gop.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2016 Alexander Graf */ -#include <common.h> #include <dm.h> #include <efi_loader.h> #include <log.h>
lib/efi_loader/efi_helper.c +0 -1
@@ -4,7 +4,6 @@*/ #define LOG_CATEGORY LOGC_EFI -#include <common.h> #include <env.h> #include <malloc.h> #include <dm.h>
lib/efi_loader/efi_hii.c +0 -1
@@ -6,7 +6,6 @@* Copyright (c) 2018 AKASHI Takahiro, Linaro Limited */ -#include <common.h> #include <efi_loader.h> #include <malloc.h> #include <asm/unaligned.h>
lib/efi_loader/efi_hii_config.c +0 -1
@@ -10,7 +10,6 @@* the Makefile. */ -#include <common.h> #include <efi_loader.h> const efi_guid_t efi_guid_hii_config_routing_protocol
lib/efi_loader/efi_image_loader.c +0 -1
@@ -9,7 +9,6 @@#define LOG_CATEGORY LOGC_EFI -#include <common.h> #include <cpu_func.h> #include <efi_loader.h> #include <log.h>
lib/efi_loader/efi_load_initrd.c +0 -1
@@ -4,7 +4,6 @@*/ #define LOG_CATEGORY LOGC_EFI -#include <common.h> #include <efi_loader.h> #include <efi_load_initrd.h> #include <efi_variable.h>
lib/efi_loader/efi_load_options.c +0 -1
@@ -7,7 +7,6 @@#define LOG_CATEGORY LOGC_EFI -#include <common.h> #include <charset.h> #include <log.h> #include <malloc.h>
lib/efi_loader/efi_memory.c +0 -1
@@ -7,7 +7,6 @@#define LOG_CATEGORY LOGC_EFI -#include <common.h> #include <efi_loader.h> #include <init.h> #include <log.h>
lib/efi_loader/efi_net.c +0 -1
@@ -15,7 +15,6 @@* Reset(): EfiSimpleNetworkInitialized -> EfiSimpleNetworkInitialized */ -#include <common.h> #include <efi_loader.h> #include <malloc.h> #include <net.h>
lib/efi_loader/efi_riscv.c +0 -1
@@ -7,7 +7,6 @@*/ #define LOG_CATEGORY LOGC_EFI -#include <common.h> #include <efi_loader.h> #include <efi_variable.h> #include <log.h>
lib/efi_loader/efi_rng.c +0 -1
@@ -5,7 +5,6 @@#define LOG_CATEGORY LOGC_EFI -#include <common.h> #include <dm.h> #include <efi_loader.h> #include <efi_rng.h>
lib/efi_loader/efi_root_node.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2018 Heinrich Schuchardt */ -#include <common.h> #include <malloc.h> #include <efi_dt_fixup.h> #include <efi_loader.h>
lib/efi_loader/efi_runtime.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2016 Alexander Graf */ -#include <common.h> #include <command.h> #include <cpu_func.h> #include <dm.h>
lib/efi_loader/efi_setup.c +0 -1
@@ -7,7 +7,6 @@#define LOG_CATEGORY LOGC_EFI -#include <common.h> #include <efi_loader.h> #include <efi_variable.h> #include <log.h>
lib/efi_loader/efi_signature.c +0 -1
@@ -4,7 +4,6 @@* Copyright (c) 2019 Linaro Limited, Author: AKASHI Takahiro */ -#include <common.h> #include <charset.h> #include <efi_loader.h> #include <efi_variable.h>
lib/efi_loader/efi_smbios.c +0 -1
@@ -7,7 +7,6 @@#define LOG_CATEGORY LOGC_EFI -#include <common.h> #include <efi_loader.h> #include <log.h> #include <malloc.h>
lib/efi_loader/efi_string.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2020 AKASHI Takahiro, Linaro Limited */ -#include <common.h> #include <charset.h> #include <efi_loader.h> #include <malloc.h>
lib/efi_loader/efi_tcg2.c +0 -1
@@ -8,7 +8,6 @@*/ #define LOG_CATEGORY LOGC_EFI -#include <common.h> #include <dm.h> #include <efi_loader.h> #include <efi_variable.h>
lib/efi_loader/efi_unicode_collation.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2018 Heinrich Schuchardt <[email protected]> */ -#include <common.h> #include <charset.h> #include <cp1250.h> #include <cp437.h>
lib/efi_loader/efi_var_common.c +0 -1
@@ -6,7 +6,6 @@* Copyright (c) 2020 Linaro Limited, Author: AKASHI Takahiro */ -#include <common.h> #include <efi_loader.h> #include <efi_variable.h> #include <stdlib.h>
lib/efi_loader/efi_var_file.c +0 -1
@@ -7,7 +7,6 @@#define LOG_CATEGORY LOGC_EFI -#include <common.h> #include <charset.h> #include <fs.h> #include <log.h>
lib/efi_loader/efi_var_mem.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2020, Heinrich Schuchardt */ -#include <common.h> #include <efi_loader.h> #include <efi_variable.h> #include <u-boot/crc.h>
lib/efi_loader/efi_variable.c +0 -1
@@ -7,7 +7,6 @@#define LOG_CATEGORY LOGC_EFI -#include <common.h> #include <efi_loader.h> #include <efi_variable.h> #include <env.h>
lib/efi_loader/efi_variable_tee.c +0 -1
@@ -10,7 +10,6 @@* Abdellatif El Khlifi <[email protected]> */ -#include <common.h> #if CONFIG_IS_ENABLED (ARM_FFA_TRANSPORT )#include <arm_ffa.h> #endif
lib/efi_loader/efi_watchdog.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2017 Heinrich Schuchardt */ -#include <common.h> #include <efi_loader.h> /* Conversion factor from seconds to multiples of 100ns */
lib/efi_loader/initrddump.c +0 -1
@@ -9,7 +9,6 @@* clearing of the screen. */ -#include <common.h> #include <efi_api.h> #include <efi_load_initrd.h>
Signature · 1 line
2.34.1
Re: [v2 13/16] efi_loader: Remove <common.h>
Quoted 42 lines · Tom Rini
We largely do not need <
common.h> in these files, so drop it. The only exception here is thatefi_freestanding.cneeds <linux/types.h> and had been getting that via <common.h>.Signed-off-by Tom Rini <[email protected]>--- lib/efi_loader/dtbdump.c | 1 - lib/efi_loader/efi_acpi.c | 1 - lib/efi_loader/efi_bootmgr.c | 1 - lib/efi_loader/efi_boottime.c | 1 - lib/efi_loader/efi_capsule.c | 1 - lib/efi_loader/efi_conformance.c | 1 - lib/efi_loader/efi_console.c | 1 - lib/efi_loader/efi_device_path.c | 1 - lib/efi_loader/efi_device_path_to_text.c | 1 - lib/efi_loader/efi_device_path_utilities.c | 1 - lib/efi_loader/efi_disk.c | 1 - lib/efi_loader/efi_dt_fixup.c | 1 - lib/efi_loader/efi_esrt.c | 1 - lib/efi_loader/efi_file.c | 1 - lib/efi_loader/efi_firmware.c | 1 - lib/efi_loader/efi_freestanding.c | 2 +- lib/efi_loader/efi_gop.c | 1 - lib/efi_loader/efi_helper.c | 1 - lib/efi_loader/efi_hii.c | 1 - lib/efi_loader/efi_hii_config.c | 1 - lib/efi_loader/efi_image_loader.c | 1 - lib/efi_loader/efi_load_initrd.c | 1 - lib/efi_loader/efi_load_options.c | 1 - lib/efi_loader/efi_memory.c | 1 - lib/efi_loader/efi_net.c | 1 - lib/efi_loader/efi_riscv.c | 1 - lib/efi_loader/efi_rng.c | 1 - lib/efi_loader/efi_root_node.c | 1 - lib/efi_loader/efi_runtime.c | 1 - lib/efi_loader/efi_setup.c | 1 - lib/efi_loader/efi_signature.c | 1 - lib/efi_loader/efi_smbios.c | 1 - lib/efi_loader/efi_string.c | 1 - lib/efi_loader/efi_tcg2.c | 1 - lib/efi_loader/efi_unicode_collation.c | 1 -
Quoted 9 lines
lib/efi_loader/efi_var_common.c | 1 - lib/efi_loader/efi_var_file.c | 1 - lib/efi_loader/efi_var_mem.c | 1 - lib/efi_loader/efi_variable.c | 1 - lib/efi_loader/efi_variable_tee.c | 1 - lib/efi_loader/efi_watchdog.c | 1 - lib/efi_loader/initrddump.c | 1 - 42 files changed, 1 insertion(+), 42 deletions(-)
PATCH v2 14/16 display_options: Clean up headers
In reply to Tom RiniIn include/display_options.h we cannot include ourself, but do need <linux/types.h> directly. Then in lib/display_options.c we further clean the list to remove common.h.
--- lib/display_options.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
lib/display_options.c +2 -1
@@ -4,14 +4,15 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <compiler.h> #include <console.h> #include <display_options.h> #include <div64.h> #include <version_string.h> #include <linux/ctype.h> +#include <linux/kernel.h> #include <asm/io.h> +#include <vsprintf.h> char *display_options_get_banner_priv (bool newlines,const char *build_tag,char *buf,int size)
Signature · 1 line
2.34.1
PATCH v2 15/16 include: Further cleanup includes
In reply to Tom RiniAdd some missing headers such as <linux/errno.h> or <linux/types.h> or <linux/kernel.h> to header files that make direct usage of things provided by these headers.
--- include/atmel_lcd.h | 2 ++ include/getopt.h | 2 ++ include/mapmem.h | 2 ++ include/memalign.h | 1 + include/net6.h | 1 + include/rtc.h | 1 + 6 files changed, 9 insertions(+)
include/atmel_lcd.h +2 -0
@@ -9,6 +9,8 @@#ifndef _ATMEL_LCD_H_#define _ATMEL_LCD_H_ +#include <linux/types.h> +/** * struct atmel_lcd_plat - platform data for Atmel LCDs with driver model *
include/getopt.h +2 -0
@@ -9,6 +9,8 @@#ifndef __GETOPT_H#define __GETOPT_H +#include <stdbool.h> +/** * struct getopt_state - Saved state across getopt() calls */
include/mapmem.h +2 -0
@@ -13,6 +13,8 @@# ifdef CONFIG_ARCH_MAP_SYSMEM #include <asm/io.h> # else +#include <linux/types.h> +static inline void *map_sysmem (phys_addr_t paddr,unsigned long len) {return (void *)(uintptr_t )paddr;
include/memalign.h +1 -0
@@ -11,6 +11,7 @@* is used to align DMA buffers. */ #ifndef __ASSEMBLY__ +#include <linux/kernel.h> #include <asm/cache.h> #include <malloc.h>
include/net6.h +1 -0
@@ -12,6 +12,7 @@#include <net.h> #include <linux/ctype.h> +#include <linux/errno.h> /* struct in6_addr - 128 bits long IPv6 address */ struct in6_addr {
include/rtc.h +1 -0
@@ -16,6 +16,7 @@#include <bcd.h> #include <rtc_def.h> #include <linux/errno.h> +#include <linux/types.h> typedef int64_t time64_t ;struct udevice ;
Signature · 1 line
2.34.1
PATCH v2 16/16 lib: Remove <common.h> inclusion from these files
In reply to Tom RiniAfter some header file cleanups to add missing include files, remove common.h from all files in the lib directory. This primarily means just dropping the line but in a few cases we need to add in other header files now.
--- lib/abuf.c | 1 - lib/acpi/acpi.c | 1 - lib/acpi/acpi_device.c | 1 - lib/acpi/acpi_dp.c | 1 - lib/acpi/acpi_table.c | 1 - lib/acpi/acpi_writer.c | 2 +- lib/acpi/acpigen.c | 1 - lib/acpi/base.c | 3 ++- lib/acpi/csrt.c | 2 +- lib/acpi/dsdt.c | 2 +- lib/acpi/facs.c | 2 +- lib/acpi/mcfg.c | 4 +++- lib/acpi/ssdt.c | 3 ++- lib/addr_map.c | 1 - lib/aes.c | 2 +- lib/aes/aes-decrypt.c | 1 - lib/asm-offsets.c | 2 +- lib/at91/at91.c | 1 - lib/bch.c | 1 - lib/binman.c | 1 - lib/bzip2/bzlib.c | 3 +-- lib/bzip2/bzlib_decompress.c | 1 - lib/charset.c | 1 - lib/circbuf.c | 1 - lib/crc16-ccitt.c | 2 -- lib/crc32.c | 1 - lib/crc32c.c | 1 - lib/crc8.c | 2 -- lib/crypt/crypt-port.h | 3 +++ lib/crypt/crypt.c | 1 - lib/crypto/x509_public_key.c | 1 - lib/date.c | 1 - lib/dhry/cmd_dhry.c | 3 ++- lib/dhry/dhry_1.c | 2 +- lib/dhry/dhry_2.c | 2 +- lib/efi/efi.c | 1 - lib/efi/efi_app.c | 1 - lib/efi/efi_info.c | 1 - lib/efi/efi_stub.c | 1 - lib/efi_driver/efi_block_device.c | 1 - lib/efi_driver/efi_uclass.c | 1 - lib/efi_selftest/efi_selftest_esrt.c | 1 - lib/efi_selftest/efi_selftest_miniapp_exception.c | 1 - lib/efi_selftest/efi_selftest_miniapp_exit.c | 1 - lib/efi_selftest/efi_selftest_miniapp_return.c | 1 - lib/elf.c | 1 - lib/errno_str.c | 2 +- lib/fdtdec.c | 1 - lib/fdtdec_common.c | 1 - lib/fdtdec_test.c | 1 - lib/getopt.c | 2 +- lib/gunzip.c | 1 - lib/gzip.c | 1 - lib/hang.c | 2 +- lib/hash-checksum.c | 1 - lib/hashtable.c | 1 - lib/hexdump.c | 2 +- lib/image-sparse.c | 1 - lib/initcall.c | 1 - lib/linux_compat.c | 1 - lib/list_sort.c | 1 - lib/lmb.c | 1 - lib/lz4.c | 1 - lib/lz4_wrapper.c | 1 - lib/lzma/LzmaDec.c | 1 - lib/lzma/LzmaTools.c | 1 - lib/lzo/lzo1x_decompress.c | 3 ++- lib/md5.c | 1 - lib/membuff.c | 1 - lib/net_utils.c | 2 +- lib/of_live.c | 1 - lib/optee/optee.c | 1 - lib/panic.c | 1 - lib/physmem.c | 2 +- lib/qsort.c | 1 - lib/rand.c | 1 - lib/rc4.c | 3 --- lib/rsa/rsa-keyprop.c | 1 - lib/rsa/rsa-mod-exp.c | 1 - lib/rsa/rsa-verify.c | 1 - lib/rtc-lib.c | 1 - lib/semihosting.c | 3 ++- lib/slre.c | 2 +- lib/smbios-parser.c | 1 - lib/smbios.c | 1 - lib/strto.c | 2 +- lib/tables_csum.c | 3 +-- lib/time.c | 1 - lib/tiny-printf.c | 1 - lib/tpm-common.c | 1 - lib/tpm-v1.c | 1 - lib/tpm-v2.c | 1 - lib/tpm_api.c | 1 - lib/trace.c | 2 +- lib/uuid.c | 2 -- lib/vsprintf.c | 1 - lib/zstd/zstd.c | 2 +- 97 files changed, 36 insertions(+), 103 deletions(-)
lib/abuf.c +0 -1
@@ -7,7 +7,6 @@*/ #ifndef USE_HOSTCC -#include <common.h> #include <malloc.h> #include <mapmem.h> #include <string.h>
lib/acpi/acpi.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2023 Google LLC */ -#include <common.h> #include <mapmem.h> #include <acpi/acpi_table.h> #include <asm/global_data.h>
lib/acpi/acpi_device.c +0 -1
@@ -6,7 +6,6 @@* Mostly taken from coreboot file of the same name */ -#include <common.h> #include <dm.h> #include <irq.h> #include <log.h>
lib/acpi/acpi_dp.c +0 -1
@@ -6,7 +6,6 @@* Mostly taken from coreboot file acpi_device.c */ -#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h>
lib/acpi/acpi_table.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2019 Google LLC */ -#include <common.h> #include <dm.h> #include <cpu.h> #include <log.h>
lib/acpi/acpi_writer.c +1 -1
@@ -7,13 +7,13 @@#define LOG_CATEGORY LOGC_ACPI -#include <common.h> #include <log.h> #include <malloc.h> #include <mapmem.h> #include <acpi/acpi_table.h> #include <asm/global_data.h> #include <dm/acpi.h> +#include <linux/errno.h> DECLARE_GLOBAL_DATA_PTR ;
lib/acpi/acpigen.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY LOGC_ACPI -#include <common.h> #include <dm.h> #include <log.h> #include <uuid.h>
lib/acpi/base.c +2 -1
@@ -7,12 +7,13 @@#define LOG_CATEGORY LOGC_ACPI -#include <common.h> #include <acpi/acpi_table.h> #include <dm/acpi.h> #include <mapmem.h> #include <tables_csum.h> #include <linux/sizes.h> +#include <linux/errno.h> +#include <linux/string.h> void acpi_write_rsdp (struct acpi_rsdp *rsdp,struct acpi_rsdt *rsdt,struct acpi_xsdt *xsdt)
lib/acpi/csrt.c +1 -1
@@ -7,11 +7,11 @@#define LOG_CATEGORY LOGC_ACPI -#include <common.h> #include <mapmem.h> #include <tables_csum.h> #include <acpi/acpi_table.h> #include <dm/acpi.h> +#include <linux/string.h> __weak int acpi_fill_csrt (struct acpi_ctx *ctx) {
lib/acpi/dsdt.c +1 -1
@@ -7,10 +7,10 @@#define LOG_CATEGORY LOGC_ACPI -#include <common.h> #include <acpi/acpi_table.h> #include <dm/acpi.h> #include <tables_csum.h> +#include <linux/string.h> /* * IASL compiles the dsdt entries and writes the hex values
lib/acpi/facs.c +1 -1
@@ -7,9 +7,9 @@#define LOG_CATEGORY LOGC_ACPI -#include <common.h> #include <acpi/acpi_table.h> #include <dm/acpi.h> +#include <linux/string.h> int acpi_write_facs (struct acpi_ctx *ctx,const struct acpi_writer *entry) {
lib/acpi/mcfg.c +3 -1
@@ -7,11 +7,13 @@#define LOG_CATEGORY LOGC_ACPI -#include <common.h> #include <mapmem.h> #include <tables_csum.h> #include <acpi/acpi_table.h> #include <dm/acpi.h> +#include <linux/errno.h> +#include <linux/string.h> +#include <linux/types.h> int acpi_create_mcfg_mmconfig (struct acpi_mcfg_mmconfig *mmconfig,u32 base,u16 seg_nr,u8 start,u8 end)
lib/acpi/ssdt.c +2 -1
@@ -7,10 +7,11 @@#define LOG_CATEGORY LOGC_ACPI -#include <common.h> #include <acpi/acpi_table.h> #include <dm/acpi.h> #include <tables_csum.h> +#include <linux/errno.h> +#include <linux/string.h> int acpi_write_ssdt (struct acpi_ctx *ctx,const struct acpi_writer *entry) {
lib/addr_map.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2008 Freescale Semiconductor, Inc. */ -#include <common.h> #include <addr_map.h> #include <mapmem.h>
lib/aes.c +1 -1
@@ -22,9 +22,9 @@*/ #ifndef USE_HOSTCC -#include <common.h> #include <display_options.h> #include <log.h> +#include <linux/string.h> #else #include <string.h> #endif
lib/aes/aes-decrypt.c +0 -1
@@ -4,7 +4,6 @@*/ #ifndef USE_HOSTCC -#include <common.h> #include <malloc.h> #endif #include <image.h>
lib/asm-offsets.c +1 -1
@@ -11,9 +11,9 @@* #defines from the assembly-language output. */ -#include <common.h> #include <asm-offsets.h> #include <asm/global_data.h> +#include <asm/u-boot.h> #include <linux/kbuild.h>
lib/at91/at91.c +0 -1
@@ -4,7 +4,6 @@* Wenyou.Yang <[email protected]> */ -#include <common.h> #include <atmel_lcd.h> #include "atmel_logo_8bpp.h"
lib/bch.c +0 -1
@@ -54,7 +54,6 @@*/ #ifndef USE_HOSTCC -#include <common.h> #include <log.h> #include <malloc.h> #include <ubi_uboot.h>
lib/binman.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <binman.h> #include <dm.h> #include <log.h>
lib/bzip2/bzlib.c +1 -2
@@ -1,7 +1,6 @@ -#include <config.h> -#include <common.h> #include <malloc.h> #include <watchdog.h> +#include <stdio.h> /* * This file is a modified version of bzlib.c from the bzip2-1.0.2
lib/bzip2/bzlib_decompress.c +0 -1
@@ -1,5 +1,4 @@#include <config.h> -#include <common.h> #include <watchdog.h> /*-------------------------------------------------------------*/
lib/charset.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2017 Rob Clark */ -#include <common.h> #include <charset.h> #include <capitalization.h> #include <cp437.h>
lib/circbuf.c +0 -1
@@ -4,7 +4,6 @@* Gerry Hamel, [email protected], Texas Instruments */ -#include <common.h> #include <log.h> #include <malloc.h>
lib/crc16-ccitt.c +0 -2
@@ -24,8 +24,6 @@#ifdef USE_HOSTCC #include <arpa/inet.h> -#else -#include <common.h> #endif #include <u-boot/crc.h>
lib/crc32.c +0 -1
@@ -11,7 +11,6 @@#ifdef USE_HOSTCC #include <arpa/inet.h> #else -#include <common.h> #include <efi_loader.h> #endif #include <compiler.h>
lib/crc32c.c +0 -1
@@ -10,7 +10,6 @@* any later version. */ -#include <common.h> #include <compiler.h> uint32_t crc32c_cal(uint32_t crc, const char *data, int length,
lib/crc8.c +0 -2
@@ -5,8 +5,6 @@#ifdef USE_HOSTCC #include <arpa/inet.h> -#else -#include <common.h> #endif #include <u-boot/crc.h>
lib/crypt/crypt-port.h +3 -0
@@ -1,6 +1,9 @@/* SPDX-License-Identifier: GPL-2.0+ */ /* Copyright (C) 2020 Steffen Jaeckel <[email protected]> */ +#include <linux/errno.h> +#include <linux/kernel.h> +#include <linux/string.h> #include <linux/types.h> #include <vsprintf.h>
lib/crypt/crypt.c +0 -1
@@ -1,7 +1,6 @@// SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2020 Steffen Jaeckel <[email protected]> */ -#include <common.h> #include <crypt.h> #include "crypt-port.h"
lib/crypto/x509_public_key.c +0 -1
@@ -7,7 +7,6 @@#define pr_fmt (fmt) "X.509: "fmt#ifdef __UBOOT__ -#include <common.h> #include <image.h> #include <dm/devres.h> #include <linux/compat.h>
lib/date.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <command.h> #include <errno.h> #include <rtc.h>
lib/dhry/cmd_dhry.c +2 -1
@@ -3,9 +3,10 @@* (C) Copyright 2015 Google, Inc */ -#include <common.h> #include <command.h> #include <div64.h> +#include <time.h> +#include <vsprintf.h> #include "dhry.h" static int do_dhry(struct cmd_tbl *cmdtp, int flag, int argc,
lib/dhry/dhry_1.c +1 -1
@@ -42,8 +42,8 @@***************************************************************************/ char SCCSid[] ="@(#) @(#)dhry_1.c:3.4 -- 5/15/91 19:30:21" ; -#include <common.h> #include <malloc.h> +#include <stdio.h> #include "dhry.h"
lib/dhry/dhry_2.c +1 -1
@@ -39,7 +39,7 @@****************************************************************************/ /* SCCSid is defined in dhry_1.c */ -#include <common.h> +#include <linux/string.h> #include "dhry.h" #ifndef REG
lib/efi/efi.c +0 -1
@@ -10,7 +10,6 @@* Common EFI functions */ -#include <common.h> #include <debug_uart.h> #include <errno.h> #include <malloc.h>
lib/efi/efi_app.c +0 -1
@@ -8,7 +8,6 @@* This file implements U-Boot running as an EFI application. */ -#include <common.h> #include <cpu_func.h> #include <debug_uart.h> #include <dm.h>
lib/efi/efi_info.c +0 -1
@@ -5,7 +5,6 @@* Access to the EFI information table */ -#include <common.h> #include <efi.h> #include <errno.h> #include <mapmem.h>
lib/efi/efi_stub.c +0 -1
@@ -9,7 +9,6 @@* EFI application. It can be built either in 32-bit or 64-bit mode. */ -#include <common.h> #include <debug_uart.h> #include <efi.h> #include <efi_api.h>
lib/efi_driver/efi_block_device.c +0 -1
@@ -28,7 +28,6 @@* iPXE uses the simple file protocol to load Grub or the Linux Kernel. */ -#include <common.h> #include <blk.h> #include <dm.h> #include <efi_driver.h>
lib/efi_driver/efi_uclass.c +0 -1
@@ -17,7 +17,6 @@* controllers. */ -#include <common.h> #include <dm.h> #include <efi_driver.h> #include <log.h>
lib/efi_selftest/efi_selftest_esrt.c +0 -1
@@ -4,7 +4,6 @@* * Copyright (C) 2021 Arm Ltd. */ -#include <common.h> #include <efi_loader.h> #include <efi_selftest.h>
lib/efi_selftest/efi_selftest_miniapp_exception.c +0 -1
@@ -7,7 +7,6 @@* This EFI application triggers an exception. */ -#include <common.h> #include <efi_api.h> #include <host_arch.h>
lib/efi_selftest/efi_selftest_miniapp_exit.c +0 -1
@@ -8,7 +8,6 @@* It uses the Exit boot service to return. */ -#include <common.h> #include <efi_selftest.h> static efi_guid_t loaded_image_protocol_guid =EFI_LOADED_IMAGE_PROTOCOL_GUID ;
lib/efi_selftest/efi_selftest_miniapp_return.c +0 -1
@@ -8,7 +8,6 @@* It returns directly without calling the Exit boot service. */ -#include <common.h> #include <efi_api.h> /*
lib/elf.c +0 -1
@@ -3,7 +3,6 @@Copyright (c) 2001 William L. Pitts */ -#include <common.h> #include <command.h> #include <cpu_func.h> #include <elf.h>
lib/errno_str.c +1 -1
@@ -4,8 +4,8 @@* * SDPX-License-Identifier: GPL-2.0+ */ -#include <common.h> #include <errno.h> +#include <linux/kernel.h> #define ERRNO_MSG (errno, msg) msg#define SAME_AS (x) (const char *)&errno_message[x]
lib/fdtdec.c +0 -1
@@ -7,7 +7,6 @@*/ #ifndef USE_HOSTCC -#include <common.h> #include <boot_fit.h> #include <display_options.h> #include <dm.h>
lib/fdtdec_common.c +0 -1
@@ -8,7 +8,6 @@*/ #ifndef USE_HOSTCC -#include <common.h> #include <log.h> #include <linux/libfdt.h> #include <fdtdec.h>
lib/fdtdec_test.c +0 -1
@@ -6,7 +6,6 @@* Copyright (c) 2011 The Chromium OS Authors. */ -#include <common.h> #include <command.h> #include <fdtdec.h> #include <linux/libfdt.h>
lib/getopt.c +1 -1
@@ -8,9 +8,9 @@#define LOG_CATEGORY LOGC_CORE -#include <common.h> #include <getopt.h> #include <log.h> +#include <linux/string.h> void getopt_init_state (struct getopt_state *gs) {
lib/gunzip.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <blk.h> #include <command.h> #include <console.h>
lib/gzip.c +0 -1
@@ -4,7 +4,6 @@* Lei Wen <[email protected]>, Marvell Inc. */ -#include <common.h> #include <watchdog.h> #include <command.h> #include <gzip.h>
lib/hang.c +1 -1
@@ -7,9 +7,9 @@* u-boot. */ -#include <common.h> #include <bootstage.h> #include <hang.h> +#include <stdio.h> #include <os.h> /**
lib/hash-checksum.c +0 -1
@@ -4,7 +4,6 @@*/ #ifndef USE_HOSTCC -#include <common.h> #include <fdtdec.h> #include <asm/byteorder.h> #include <linux/errno.h>
lib/hashtable.c +0 -1
@@ -30,7 +30,6 @@# endif # endif #else /* U-Boot build */ -# include <common.h> # include <linux/string.h> # include <linux/ctype.h> #endif
lib/hexdump.c +1 -1
@@ -8,9 +8,9 @@* more details. */ -#include <common.h> #include <hexdump.h> #include <mapmem.h> +#include <vsprintf.h> #include <linux/ctype.h> #include <linux/compat.h> #include <linux/log2.h>
lib/image-sparse.c +0 -1
@@ -35,7 +35,6 @@*/ #include <config.h> -#include <common.h> #include <blk.h> #include <image-sparse.h> #include <div64.h>
lib/initcall.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2013 The Chromium OS Authors. */ -#include <common.h> #include <efi.h> #include <initcall.h> #include <log.h>
lib/linux_compat.c +0 -1
@@ -1,5 +1,4 @@ -#include <common.h> #include <malloc.h> #include <memalign.h> #include <asm/cache.h>
lib/list_sort.c +0 -1
@@ -6,7 +6,6 @@#include <linux/slab.h> #else #include <linux/compat.h> -#include <common.h> #include <malloc.h> #include <linux/printk.h> #endif
lib/lmb.c +0 -1
@@ -6,7 +6,6 @@* Copyright (C) 2001 Peter Bergner. */ -#include <common.h> #include <efi_loader.h> #include <image.h> #include <mapmem.h>
lib/lz4.c +0 -1
@@ -27,7 +27,6 @@* - LZ4 homepage : http://www.lz4.org * - LZ4 source repository : https://github.com/lz4/lz4 */ -#include <common.h> #include <compiler.h> #include <linux/kernel.h> #include <linux/types.h>
lib/lz4_wrapper.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2015 Google Inc. */ -#include <common.h> #include <compiler.h> #include <image.h> #include <linux/kernel.h>
lib/lzma/LzmaDec.c +0 -1
@@ -2,7 +2,6 @@2009-09-20 : Igor Pavlov : Public domain */ #include <config.h> -#include <common.h> #include <watchdog.h> #include "LzmaDec.h"
lib/lzma/LzmaTools.c +0 -1
@@ -18,7 +18,6 @@*/ #include <config.h> -#include <common.h> #include <log.h> #include <watchdog.h>
lib/lzo/lzo1x_decompress.c +2 -1
@@ -11,8 +11,9 @@* Richard Purdie <[email protected]> */ -#include <common.h> +#include <linux/kernel.h> #include <linux/lzo.h> +#include <linux/string.h> #include <asm/byteorder.h> #include <asm/unaligned.h> #include "lzodefs.h"
lib/md5.c +0 -1
@@ -28,7 +28,6 @@#include "compiler.h" #ifndef USE_HOSTCC -#include <common.h> #include <watchdog.h> #endif /* USE_HOSTCC */ #include <u-boot/md5.h>
lib/membuff.c +0 -1
@@ -6,7 +6,6 @@* Copyright (c) 1992 Simon Glass */ -#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h>
lib/net_utils.c +1 -1
@@ -9,9 +9,9 @@* Copyright 2009 Dirk Behme, [email protected] */ -#include <common.h> #include <net.h> #include <net6.h> +#include <vsprintf.h> struct in_addr string_to_ip (const char *s) {
lib/of_live.c +0 -1
@@ -10,7 +10,6 @@#define LOG_CATEGORY LOGC_DT -#include <common.h> #include <abuf.h> #include <log.h> #include <linux/libfdt.h>
lib/optee/optee.c +0 -1
@@ -4,7 +4,6 @@* Bryan O'Donoghue <[email protected]> */ -#include <common.h> #include <fdtdec.h> #include <image.h> #include <log.h>
lib/panic.c +0 -1
@@ -9,7 +9,6 @@* Wirzenius wrote this portably, Torvalds fucked it up :-) */ -#include <common.h> #include <hang.h> #if !defined(CONFIG_PANIC_HANG )#include <command.h>
lib/physmem.c +1 -1
@@ -8,11 +8,11 @@* Software Foundation. */ -#include <common.h> #include <log.h> #include <mapmem.h> #include <physmem.h> #include <linux/compiler.h> +#include <linux/string.h> phys_addr_t __weak arch_phys_memset (phys_addr_t s,int c,phys_size_t n) {
lib/qsort.c +0 -1
@@ -17,7 +17,6 @@#include <log.h> #include <linux/types.h> -#include <common.h> #include <exports.h> #include <sort.h>
lib/rand.c +0 -1
@@ -7,7 +7,6 @@* Michael Walle <[email protected]> */ -#include <common.h> #include <rand.h> static unsigned int y =1U ;
lib/rc4.c +0 -3
@@ -7,9 +7,6 @@* Rivest Cipher 4 (RC4) implementation */ -#ifndef USE_HOSTCC -#include <common.h> -#endif #include <rc4.h> void rc4_encode (unsigned char *buf,unsigned int len,const unsigned char key[16 ])
lib/rsa/rsa-keyprop.c +0 -1
@@ -9,7 +9,6 @@* Copyright (c) 2016 Thomas Pornin <[email protected]> */ -#include <common.h> #include <image.h> #include <malloc.h> #include <crypto/internal/rsa.h>
lib/rsa/rsa-mod-exp.c +0 -1
@@ -4,7 +4,6 @@*/ #ifndef USE_HOSTCC -#include <common.h> #include <fdtdec.h> #include <log.h> #include <asm/types.h>
lib/rsa/rsa-verify.c +0 -1
@@ -4,7 +4,6 @@*/ #ifndef USE_HOSTCC -#include <common.h> #include <fdtdec.h> #include <log.h> #include <malloc.h>
lib/rtc-lib.c +0 -1
@@ -10,7 +10,6 @@* - January is month 1. */ -#include <common.h> #include <rtc.h> #include <linux/math64.h>
lib/semihosting.c +2 -1
@@ -4,9 +4,10 @@* Copyright 2014 Broadcom Corporation */ -#include <common.h> #include <log.h> #include <semihosting.h> +#include <linux/errno.h> +#include <linux/string.h> #define SYSOPEN 0x01#define SYSCLOSE 0x02
lib/slre.c +1 -1
@@ -21,8 +21,8 @@#include <string.h> #else #include <log.h> -#include <common.h> #include <linux/ctype.h> +#include <linux/string.h> #endif /* SLRE_TEST */ #include <errno.h>
lib/smbios-parser.c +0 -1
@@ -5,7 +5,6 @@#define LOG_CATEGORY LOGC_BOOT -#include <common.h> #include <smbios.h> static inline int verify_checksum (const struct smbios_entry *e)
lib/smbios.c +0 -1
@@ -5,7 +5,6 @@* Adapted from coreboot src/arch/x86/smbios.c */ -#include <common.h> #include <dm.h> #include <env.h> #include <linux/stringify.h>
lib/strto.c +1 -1
@@ -9,9 +9,9 @@* Wirzenius wrote this portably, Torvalds fucked it up :-) */ -#include <common.h> #include <errno.h> #include <malloc.h> +#include <vsprintf.h> #include <linux/ctype.h> /* from lib/kstrtox.c */
lib/tables_csum.c +1 -2
@@ -3,8 +3,7 @@* Copyright (C) 2015, Bin Meng <[email protected]> */ -#include <common.h> -#include <linux/ctype.h> +#include <linux/types.h> u8 table_compute_checksum (void *v,int len) {
lib/time.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <clock_legacy.h> #include <bootstage.h> #include <dm.h>
lib/tiny-printf.c +0 -1
@@ -8,7 +8,6 @@* Copyright (C) 2004,2008 Kustaa Nyholm */ -#include <common.h> #include <log.h> #include <serial.h> #include <stdarg.h>
lib/tpm-common.c +0 -1
@@ -6,7 +6,6 @@#define LOG_CATEGORY UCLASS_TPM -#include <common.h> #include <dm.h> #include <log.h> #include <asm/unaligned.h>
lib/tpm-v1.c +0 -1
@@ -6,7 +6,6 @@#define LOG_CATEGORY UCLASS_TPM -#include <common.h> #include <dm.h> #include <log.h> #include <asm/unaligned.h>
lib/tpm-v2.c +0 -1
@@ -5,7 +5,6 @@* Author: Miquel Raynal <[email protected]> */ -#include <common.h> #include <dm.h> #include <dm/of_access.h> #include <tpm_api.h>
lib/tpm_api.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2019 Google LLC */ -#include <common.h> #include <dm.h> #include <log.h> #include <tpm_api.h>
lib/trace.c +1 -1
@@ -3,10 +3,10 @@* Copyright (c) 2012 The Chromium OS Authors. */ -#include <common.h> #include <mapmem.h> #include <time.h> #include <trace.h> +#include <linux/errno.h> #include <asm/global_data.h> #include <asm/io.h> #include <asm/sections.h>
lib/uuid.c +0 -2
@@ -9,7 +9,6 @@#define LOG_CATEGOT LOGC_CORE -#include <common.h> #include <command.h> #include <efi_api.h> #include <env.h>
@@ -18,7 +17,6 @@#include <uuid.h> #include <linux/ctype.h> #include <errno.h> -#include <common.h> #include <asm/io.h> #include <part_efi.h> #include <malloc.h>
lib/vsprintf.c +0 -1
@@ -13,7 +13,6 @@* from hush: simple_itoa() was lifted from boa-0.93.15 */ -#include <common.h> #include <charset.h> #include <efi_loader.h> #include <div64.h>
lib/zstd/zstd.c +1 -1
@@ -5,10 +5,10 @@#define LOG_CATEGORY LOGC_BOOT -#include <common.h> #include <abuf.h> #include <log.h> #include <malloc.h> +#include <linux/errno.h> #include <linux/zstd.h> int zstd_decompress (struct abuf *in,struct abuf *out)
Signature · 1 line
2.34.1
Quoted 4 lines · Tom Rini
Given how we define
QE_MURAM_SIZEtoday, this header needs to have <config.h> added to it.
Applied to u-boot/next, thanks!
Signature · 1 line
Tom