Remove <common.h> from a number of places
Subsystems (19)
cover Remove <common.h> from a number of places
Hey all,
This series is the next step in winding down usage of <common.h> in order to be able to then remove it. This covers not quite 25% of the remaining users of the file. Of what is left, it's either arch/arm/, board/ or drivers/ code. I am likely to start tackling arch/arm/ next, and depending on how exactly I break that down I may try and cover some board/ code as well (for example, tackle arch/arm/mach-omap/ and arch/arm/mach-k3 and board/ti/ (and then the other vendors too..) in one commit.
Signature · 1 line
Tom
PATCH 1/18 init.h: Add "struct cmd_tbl"
In order to avoid needing to add <command.h> to this file, add "struct cmd_tbl" before the prototype for do_bdinfo().
--- include/init.h | 2 ++ 1 file changed, 2 insertions(+)
include/init.h +2 -0
@@ -401,6 +401,8 @@ void bdinfo_print_size(const char *name, uint64_t size);/* Show arch-specific information for the 'bd' command */ void arch_print_bdinfo (void ); +struct cmd_tbl ; +int do_bdinfo (struct cmd_tbl *cmdtp,int flag,int argc,char *const argv[]);#endif /* __ASSEMBLY__ */
Signature · 1 line
2.34.1
PATCH 2/18 pci.h: Add missing <linux/types.h>
In reply to Tom RiniThis file has many "Linux" style types in it, add <linux/types.h>
--- include/pci.h | 1 + 1 file changed, 1 insertion(+)
include/pci.h +1 -0
@@ -520,6 +520,7 @@#ifndef __ASSEMBLY__ +#include <linux/types.h> #include <dm/pci.h> #ifdef CONFIG_SYS_PCI_64BIT
Signature · 1 line
2.34.1
PATCH 3/18 mpc85xx.h: Use <config.h> directly
In reply to Tom RiniTo ensure that board config headers which set values here in the CFG_SYS range are used, this header needs to include <config.h> directly.
--- include/mpc85xx.h | 1 + 1 file changed, 1 insertion(+)
include/mpc85xx.h +1 -0
@@ -6,6 +6,7 @@#ifndef __MPC85xx_H__#define __MPC85xx_H__ +#include <config.h> #if defined(CONFIG_E500 )#include <e500.h> #endif
Signature · 1 line
2.34.1
PATCH 4/18 cmd/Kconfig: Add some missing dependencies
In reply to Tom RiniWith the migration to Kconfig complete, we can now add some previously missing dependencies to some commands.
--- cmd/Kconfig | 8 ++++++-- env/Kconfig | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-)
cmd/Kconfig +6 -2
@@ -539,6 +539,7 @@ config CMD_IMI config CMD_IMLS bool "imls" + depends on MTD_NOR_FLASH || FLASH_CFI_DRIVER help List all images found in flash
@@ -830,7 +831,7 @@ config SYS_EEPROM_SIZE config SYS_EEPROM_PAGE_WRITE_BITS int "Number of bits used to address bytes in a single page" - depends on CMD_EEPROM + depends on CMD_EEPROM || ENV_IS_IN_EEPROM default 8 help The EEPROM page size is 2^SYS_EEPROM_PAGE_WRITE_BITS.
@@ -1022,8 +1023,8 @@ config CMD_ARMFFA - Displaying the arm_ffa device info config CMD_ARMFLASH - #depends on FLASH_CFI_DRIVER bool "armflash" + depends on FLASH_CFI_DRIVER help ARM Ltd reference designs flash partition access
@@ -1166,6 +1167,7 @@ config CMD_FPGA_LOAD_SECURE config CMD_FPGAD bool "fpgad - dump FPGA registers" + depends on GDSYS_LEGACY_DRIVERS help (legacy, needs conversion to driver model) Provides a way to dump FPGA registers by calling the board-specific
@@ -1601,6 +1603,7 @@ config CMD_TEMPERATURE config CMD_TSI148 bool "tsi148 - Command to access tsi148 device" + depends on DM_PCI_COMPAT help This provides various sub-commands to initialise and configure the Turndra tsi148 device. See the command help for full details.
@@ -1614,6 +1617,7 @@ config CMD_UFS config CMD_UNIVERSE bool "universe - Command to set up the Turndra Universe controller" + depends on DM_PCI_COMPAT help This allows setting up the VMEbus provided by this controller. See the command help for full details.
env/Kconfig +1 -1
@@ -312,7 +312,7 @@ config ENV_IS_IN_NVRAM config ENV_IS_IN_ONENAND bool "Environment is in OneNAND" - depends on !CHAIN_OF_TRUST + depends on !CHAIN_OF_TRUST && CMD_ONENAND help Define this if you want to put your local device's environment in OneNAND.
Signature · 1 line
2.34.1
PATCH 5/18 xtensa: Remove <common.h> and add needed includes
In reply to Tom RiniRemove <common.h> from all xtensa architecture files and when needed add missing include files directly.
--- arch/xtensa/cpu/cpu.c | 2 +- arch/xtensa/cpu/exceptions.c | 2 +- arch/xtensa/lib/bootm.c | 1 - arch/xtensa/lib/cache.c | 1 - arch/xtensa/lib/time.c | 1 - 5 files changed, 2 insertions(+), 5 deletions(-)
arch/xtensa/cpu/cpu.c +1 -1
@@ -8,7 +8,7 @@* CPU specific code */ -#include <common.h> +#include <config.h> #include <command.h> #include <init.h> #include <vsprintf.h>
arch/xtensa/cpu/exceptions.c +1 -1
@@ -10,12 +10,12 @@* (Note that alloca is a special case and handled in start.S) */ -#include <common.h> #include <command.h> #include <irq_func.h> #include <asm/ptrace.h> #include <asm/string.h> #include <asm/regs.h> +#include <vsprintf.h> typedef void (*handler_t )(struct pt_regs *);
arch/xtensa/lib/bootm.c +0 -1
@@ -4,7 +4,6 @@* (C) Copyright 2014 Cadence Design Systems Inc. */ -#include <common.h> #include <bootm.h> #include <bootstage.h> #include <command.h>
arch/xtensa/lib/cache.c +0 -1
@@ -4,7 +4,6 @@* (C) Copyright 2014 - 2016 Cadence Design Systems Inc. */ -#include <common.h> #include <cpu_func.h> #include <asm/cache.h>
arch/xtensa/lib/time.c +0 -1
@@ -3,7 +3,6 @@* (C) Copyright 2008 - 2013 Tensilica Inc. */ -#include <common.h> #include <clock_legacy.h> #include <time.h> #include <asm/global_data.h>
Signature · 1 line
2.34.1
PATCH 6/18 nios2: Remove <common.h> and add needed includes
In reply to Tom RiniRemove <common.h> from all nios2 architecture files and when needed add missing include files directly.
--- arch/nios2/cpu/cpu.c | 2 +- arch/nios2/cpu/interrupts.c | 1 - arch/nios2/cpu/traps.c | 2 +- arch/nios2/lib/bootm.c | 1 - arch/nios2/lib/cache.c | 1 - 5 files changed, 2 insertions(+), 5 deletions(-)
arch/nios2/cpu/cpu.c +1 -1
@@ -4,7 +4,7 @@* Scott McNutt <[email protected]> */ -#include <common.h> +#include <config.h> #include <command.h> #include <cpu.h> #include <cpu_func.h>
arch/nios2/cpu/interrupts.c +0 -1
@@ -7,7 +7,6 @@* Scott McNutt <[email protected]> */ -#include <common.h> #include <command.h> #include <irq_func.h> #include <asm/nios2.h>
arch/nios2/cpu/traps.c +1 -1
@@ -4,8 +4,8 @@* Scott McNutt <[email protected]> */ -#include <common.h> #include <hang.h> +#include <stdio.h> #include <asm/ptrace.h> void trap_handler (struct pt_regs *regs)
arch/nios2/lib/bootm.c +0 -1
@@ -4,7 +4,6 @@* Scott McNutt <[email protected]> */ -#include <common.h> #include <bootm.h> #include <cpu_func.h> #include <env.h>
arch/nios2/lib/cache.c +0 -1
@@ -5,7 +5,6 @@* Implemented by [email protected] and [email protected] */ -#include <common.h> #include <cpu_func.h> #include <asm/cache.h> #include <asm/global_data.h>
Signature · 1 line
2.34.1
PATCH 7/18 sh: Remove <common.h> and add needed includes
In reply to Tom RiniRemove <common.h> from all sh architecture files and when needed add missing include files directly.
---
Cc: Marek Vasut <[email protected]>
--- arch/sh/cpu/sh4/cache.c | 1 - arch/sh/cpu/sh4/cpu.c | 1 - arch/sh/cpu/sh4/interrupts.c | 1 - arch/sh/cpu/sh4/watchdog.c | 1 - arch/sh/lib/board.c | 2 +- arch/sh/lib/bootm.c | 2 +- arch/sh/lib/time.c | 1 - arch/sh/lib/time_sh2.c | 1 - arch/sh/lib/zimageboot.c | 2 +- 9 files changed, 3 insertions(+), 9 deletions(-)
arch/sh/cpu/sh4/cache.c +0 -1
@@ -4,7 +4,6 @@* (C) Copyright 2007 Nobuhiro Iwamatsu <[email protected]> */ -#include <common.h> #include <command.h> #include <cpu_func.h> #include <asm/cache.h>
arch/sh/cpu/sh4/cpu.c +0 -1
@@ -4,7 +4,6 @@* Nobuhiro Iwamatsu <[email protected]> */ -#include <common.h> #include <command.h> #include <irq_func.h> #include <cpu_func.h>
arch/sh/cpu/sh4/interrupts.c +0 -1
@@ -4,7 +4,6 @@* Nobuhiro Iwamatsu <[email protected]> */ -#include <common.h> #include <irq_func.h> int interrupt_init (void )
arch/sh/cpu/sh4/watchdog.c +0 -1
@@ -1,6 +1,5 @@// SPDX-License-Identifier: GPL-2.0+ -#include <common.h> #include <cpu_func.h> #include <asm/processor.h> #include <asm/system.h>
arch/sh/lib/board.c +1 -1
@@ -3,7 +3,7 @@* Copyright (C) 2016 Vladimir Zapolskiy <[email protected]> */ -#include <common.h> +#include <config.h> #include <init.h> #include <asm/global_data.h>
arch/sh/lib/bootm.c +1 -1
@@ -7,7 +7,7 @@* (c) Copyright 2008 Renesas Solutions Corp. */ -#include <common.h> +#include <config.h> #include <bootm.h> #include <command.h> #include <env.h>
arch/sh/lib/time.c +0 -1
@@ -10,7 +10,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <init.h> #include <asm/processor.h> #include <asm/io.h>
arch/sh/lib/time_sh2.c +0 -1
@@ -7,7 +7,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <init.h> #include <time.h> #include <asm/io.h>
arch/sh/lib/zimageboot.c +1 -1
@@ -9,10 +9,10 @@* Linux SuperH zImage loading and boot */ -#include <common.h> #include <command.h> #include <env.h> #include <irq_func.h> +#include <vsprintf.h> #include <asm/io.h> #include <asm/zimage.h>
Signature · 1 line
2.34.1
PATCH 8/18 x86: Remove <common.h> and add needed includes
In reply to Tom RiniRemove <common.h> from all x86 architecture files and when needed add missing include files directly.
---
Cc: Simon Glass <[email protected]>
Cc: Bin Meng <[email protected]>
--- arch/x86/cpu/acpi_gpe.c | 2 +- arch/x86/cpu/apollolake/acpi.c | 1 - arch/x86/cpu/apollolake/cpu.c | 1 - arch/x86/cpu/apollolake/cpu_common.c | 1 - arch/x86/cpu/apollolake/cpu_spl.c | 1 - arch/x86/cpu/apollolake/fsp_bindings.c | 1 - arch/x86/cpu/apollolake/fsp_m.c | 1 - arch/x86/cpu/apollolake/fsp_s.c | 1 - arch/x86/cpu/apollolake/hostbridge.c | 1 - arch/x86/cpu/apollolake/lpc.c | 1 - arch/x86/cpu/apollolake/pch.c | 1 - arch/x86/cpu/apollolake/pmc.c | 1 - arch/x86/cpu/apollolake/punit.c | 2 +- arch/x86/cpu/apollolake/spl.c | 1 - arch/x86/cpu/apollolake/systemagent.c | 1 - arch/x86/cpu/apollolake/uart.c | 1 - arch/x86/cpu/baytrail/acpi.c | 1 - arch/x86/cpu/baytrail/cpu.c | 1 - arch/x86/cpu/baytrail/early_uart.c | 1 - arch/x86/cpu/baytrail/fsp_configs.c | 1 - arch/x86/cpu/baytrail/valleyview.c | 2 +- arch/x86/cpu/braswell/braswell.c | 2 +- arch/x86/cpu/braswell/early_uart.c | 1 - arch/x86/cpu/braswell/fsp_configs.c | 1 - arch/x86/cpu/broadwell/adsp.c | 1 - arch/x86/cpu/broadwell/cpu.c | 1 - arch/x86/cpu/broadwell/cpu_from_spl.c | 2 +- arch/x86/cpu/broadwell/cpu_full.c | 1 - arch/x86/cpu/broadwell/iobp.c | 1 - arch/x86/cpu/broadwell/lpc.c | 1 - arch/x86/cpu/broadwell/me.c | 1 - arch/x86/cpu/broadwell/northbridge.c | 1 - arch/x86/cpu/broadwell/pch.c | 1 - arch/x86/cpu/broadwell/pinctrl_broadwell.c | 1 - arch/x86/cpu/broadwell/power_state.c | 1 - arch/x86/cpu/broadwell/refcode.c | 2 +- arch/x86/cpu/broadwell/sata.c | 1 - arch/x86/cpu/broadwell/sdram.c | 1 - arch/x86/cpu/coreboot/coreboot.c | 1 - arch/x86/cpu/coreboot/coreboot_spl.c | 1 - arch/x86/cpu/coreboot/sdram.c | 2 +- arch/x86/cpu/coreboot/timestamp.c | 2 +- arch/x86/cpu/cpu.c | 1 - arch/x86/cpu/cpu_x86.c | 1 - arch/x86/cpu/efi/app.c | 2 +- arch/x86/cpu/efi/payload.c | 3 ++- arch/x86/cpu/efi/sdram.c | 2 +- arch/x86/cpu/i386/cpu.c | 2 +- arch/x86/cpu/i386/interrupt.c | 1 - arch/x86/cpu/intel_common/acpi.c | 1 - arch/x86/cpu/intel_common/car.S | 1 - arch/x86/cpu/intel_common/cpu.c | 1 - arch/x86/cpu/intel_common/cpu_from_spl.c | 1 - arch/x86/cpu/intel_common/fast_spi.c | 1 - arch/x86/cpu/intel_common/generic_wifi.c | 1 - arch/x86/cpu/intel_common/intel_opregion.c | 1 - arch/x86/cpu/intel_common/itss.c | 1 - arch/x86/cpu/intel_common/lpc.c | 1 - arch/x86/cpu/intel_common/lpss.c | 1 - arch/x86/cpu/intel_common/me_status.c | 1 - arch/x86/cpu/intel_common/microcode.c | 1 - arch/x86/cpu/intel_common/mrc.c | 4 ++-- arch/x86/cpu/intel_common/p2sb.c | 1 - arch/x86/cpu/intel_common/pch.c | 1 - arch/x86/cpu/intel_common/report_platform.c | 2 +- arch/x86/cpu/ioapic.c | 1 - arch/x86/cpu/irq.c | 1 - arch/x86/cpu/ivybridge/bd82x6x.c | 1 - arch/x86/cpu/ivybridge/cpu.c | 1 - arch/x86/cpu/ivybridge/early_me.c | 1 - arch/x86/cpu/ivybridge/fsp_configs.c | 1 - arch/x86/cpu/ivybridge/ivybridge.c | 2 +- arch/x86/cpu/ivybridge/lpc.c | 1 - arch/x86/cpu/ivybridge/model_206ax.c | 1 - arch/x86/cpu/ivybridge/northbridge.c | 1 - arch/x86/cpu/ivybridge/sata.c | 1 - arch/x86/cpu/ivybridge/sdram.c | 1 - arch/x86/cpu/ivybridge/sdram_nop.c | 2 +- arch/x86/cpu/lapic.c | 1 - arch/x86/cpu/mp_init.c | 2 +- arch/x86/cpu/mtrr.c | 1 - arch/x86/cpu/pci.c | 1 - arch/x86/cpu/qemu/cpu.c | 1 - arch/x86/cpu/qemu/dram.c | 2 +- arch/x86/cpu/qemu/e820.c | 1 - arch/x86/cpu/qemu/qemu.c | 2 +- arch/x86/cpu/qfw_cpu.c | 1 - arch/x86/cpu/quark/acpi.c | 2 +- arch/x86/cpu/quark/dram.c | 2 +- arch/x86/cpu/quark/hte.c | 1 - arch/x86/cpu/quark/mrc.c | 2 +- arch/x86/cpu/quark/mrc_util.c | 2 +- arch/x86/cpu/quark/msg_port.c | 1 - arch/x86/cpu/quark/quark.c | 2 +- arch/x86/cpu/quark/smc.c | 3 ++- arch/x86/cpu/queensbay/fsp_configs.c | 1 - arch/x86/cpu/queensbay/tnc.c | 1 - arch/x86/cpu/slimbootloader/sdram.c | 1 - arch/x86/cpu/slimbootloader/serial.c | 1 - arch/x86/cpu/slimbootloader/slimbootloader.c | 1 - arch/x86/cpu/tangier/acpi.c | 1 - arch/x86/cpu/tangier/pinmux.c | 1 - arch/x86/cpu/tangier/sdram.c | 2 +- arch/x86/cpu/tangier/sysreset.c | 1 - arch/x86/cpu/tangier/tangier.c | 1 - arch/x86/cpu/turbo.c | 1 - arch/x86/cpu/x86_64/cpu.c | 1 - arch/x86/cpu/x86_64/interrupts.c | 1 - arch/x86/cpu/x86_64/misc.c | 1 - arch/x86/include/asm/arch-quark/mrc.h | 2 ++ arch/x86/include/asm/arch-quark/msg_port.h | 2 ++ arch/x86/include/asm/arch-quark/quark.h | 2 ++ arch/x86/include/asm/cb_sysinfo.h | 1 + arch/x86/include/asm/coreboot_tables.h | 2 ++ arch/x86/include/asm/early_cmos.h | 2 ++ arch/x86/include/asm/handoff.h | 2 ++ arch/x86/include/asm/me_common.h | 1 + arch/x86/include/asm/mp.h | 1 + arch/x86/lib/acpi.c | 1 - arch/x86/lib/acpi_nhlt.c | 1 - arch/x86/lib/acpi_s3.c | 1 - arch/x86/lib/acpi_table.c | 1 - arch/x86/lib/acpigen.c | 1 - arch/x86/lib/asm-offsets.c | 1 - arch/x86/lib/bdinfo.c | 1 - arch/x86/lib/bios.c | 1 - arch/x86/lib/bios_interrupts.c | 1 - arch/x86/lib/bootm.c | 1 - arch/x86/lib/cmd_boot.c | 1 - arch/x86/lib/coreboot/cb_support.c | 2 +- arch/x86/lib/coreboot/cb_sysinfo.c | 2 +- arch/x86/lib/coreboot_table.c | 1 - arch/x86/lib/div64.c | 2 +- arch/x86/lib/e820.c | 1 - arch/x86/lib/early_cmos.c | 1 - arch/x86/lib/fsp/fsp_common.c | 1 - arch/x86/lib/fsp/fsp_dram.c | 1 - arch/x86/lib/fsp/fsp_graphics.c | 1 - arch/x86/lib/fsp/fsp_support.c | 1 - arch/x86/lib/fsp1/fsp_common.c | 1 - arch/x86/lib/fsp1/fsp_dram.c | 1 - arch/x86/lib/fsp1/fsp_support.c | 1 - arch/x86/lib/fsp2/fsp_common.c | 1 - arch/x86/lib/fsp2/fsp_dram.c | 1 - arch/x86/lib/fsp2/fsp_init.c | 1 - arch/x86/lib/fsp2/fsp_meminit.c | 1 - arch/x86/lib/fsp2/fsp_silicon_init.c | 1 - arch/x86/lib/fsp2/fsp_support.c | 1 - arch/x86/lib/hob.c | 1 - arch/x86/lib/i8254.c | 2 +- arch/x86/lib/i8259.c | 1 - arch/x86/lib/init_helpers.c | 2 +- arch/x86/lib/interrupts.c | 1 - arch/x86/lib/lpc-uclass.c | 1 - arch/x86/lib/mpspec.c | 1 - arch/x86/lib/mrccache.c | 1 - arch/x86/lib/northbridge-uclass.c | 1 - arch/x86/lib/physmem.c | 1 - arch/x86/lib/pinctrl_ich6.c | 1 - arch/x86/lib/pirq_routing.c | 1 - arch/x86/lib/pmu.c | 1 - arch/x86/lib/ramtest.c | 2 +- arch/x86/lib/reloc_ia32_efi.c | 1 - arch/x86/lib/reloc_x86_64_efi.c | 1 - arch/x86/lib/relocate.c | 1 - arch/x86/lib/scu.c | 1 - arch/x86/lib/sfi.c | 1 - arch/x86/lib/spl.c | 2 +- arch/x86/lib/tables.c | 1 - arch/x86/lib/tpl.c | 1 - arch/x86/lib/zimage.c | 1 - include/acpi/acpi_s3.h | 3 +++ 172 files changed, 54 insertions(+), 163 deletions(-)
arch/x86/cpu/acpi_gpe.c +1 -1
@@ -6,10 +6,10 @@#define LOG_CATEGORY UCLASS_IRQ -#include <common.h> #include <dm.h> #include <irq.h> #include <log.h> +#include <time.h> #include <acpi/acpi_device.h> #include <asm/io.h> #include <dt-bindings/interrupt-controller/irq.h>
arch/x86/cpu/apollolake/acpi.c +0 -1
@@ -10,7 +10,6 @@#define LOG_CATEGORY LOGC_ACPI -#include <common.h> #include <cpu.h> #include <dm.h> #include <log.h>
arch/x86/cpu/apollolake/cpu.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2019 Google LLC */ -#include <common.h> #include <cpu.h> #include <dm.h> #include <log.h>
arch/x86/cpu/apollolake/cpu_common.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2019 Google LLC */ -#include <common.h> #include <dm.h> #include <log.h> #include <asm/cpu_common.h>
arch/x86/cpu/apollolake/cpu_spl.c +0 -1
@@ -5,7 +5,6 @@* Portions taken from coreboot */ -#include <common.h> #include <dm.h> #include <ec_commands.h> #include <init.h>
arch/x86/cpu/apollolake/fsp_bindings.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2020 B&R Industrial Automation GmbH - http://www.br-automation.com */ -#include <common.h> #include <dm.h> #include <log.h> #include <asm/arch/fsp_bindings.h>
arch/x86/cpu/apollolake/fsp_m.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <dm.h> #include <log.h> #include <asm/arch/iomap.h>
arch/x86/cpu/apollolake/fsp_s.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <binman.h> #include <bootstage.h> #include <dm.h>
arch/x86/cpu/apollolake/hostbridge.c +0 -1
@@ -11,7 +11,6 @@#define LOG_CATEGORY UCLASS_NORTHBRIDGE -#include <common.h> #include <dm.h> #include <dt-structs.h> #include <log.h>
arch/x86/cpu/apollolake/lpc.c +0 -1
@@ -5,7 +5,6 @@* From coreboot Apollo Lake support lpc.c */ -#include <common.h> #include <dm.h> #include <log.h> #include <spl.h>
arch/x86/cpu/apollolake/pch.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2019 Google LLC */ -#include <common.h> #include <dm.h> #include <pch.h> #include <spl.h>
arch/x86/cpu/apollolake/pmc.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY UCLASS_ACPI_PMC -#include <common.h> #include <dm.h> #include <dt-structs.h> #include <log.h>
arch/x86/cpu/apollolake/punit.c +1 -1
@@ -3,10 +3,10 @@* Copyright 2019 Google LLC */ -#include <common.h> #include <dm.h> #include <log.h> #include <spl.h> +#include <time.h> #include <asm/cpu.h> #include <asm/cpu_common.h> #include <asm/intel_regs.h>
arch/x86/cpu/apollolake/spl.c +0 -1
@@ -5,7 +5,6 @@#define LOG_CATEGORY LOGC_BOOT -#include <common.h> #include <binman_sym.h> #include <bootstage.h> #include <dm.h>
arch/x86/cpu/apollolake/systemagent.c +0 -1
@@ -4,7 +4,6 @@* Take from coreboot project file of the same name */ -#include <common.h> #include <asm/intel_regs.h> #include <asm/io.h> #include <asm/arch/systemagent.h>
arch/x86/cpu/apollolake/uart.c +0 -1
@@ -7,7 +7,6 @@* Some code from coreboot lpss.c */ -#include <common.h> #include <dm.h> #include <dt-structs.h> #include <malloc.h>
arch/x86/cpu/baytrail/acpi.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2016, Bin Meng <[email protected]> */ -#include <common.h> #include <cpu.h> #include <dm.h> #include <log.h>
arch/x86/cpu/baytrail/cpu.c +0 -1
@@ -5,7 +5,6 @@* Based on code from coreboot */ -#include <common.h> #include <cpu.h> #include <dm.h> #include <event.h>
arch/x86/cpu/baytrail/early_uart.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015 Google, Inc */ -#include <common.h> #include <errno.h> #include <asm/io.h>
arch/x86/cpu/baytrail/fsp_configs.c +0 -1
@@ -5,7 +5,6 @@* Copyright (C) 2015, Kodak Alaris, Inc */ -#include <common.h> #include <fdtdec.h> #include <log.h> #include <asm/fsp1/fsp_support.h>
arch/x86/cpu/baytrail/valleyview.c +1 -1
@@ -3,7 +3,6 @@* Copyright (C) 2014, Bin Meng <[email protected]> */ -#include <common.h> #include <init.h> #include <mmc.h> #include <pci_ids.h>
@@ -11,6 +10,7 @@#include <asm/mrccache.h> #include <asm/post.h> #include <asm/arch/iomap.h> +#include <asm/u-boot-x86.h> #include <linux/bitops.h> /* GPIO SUS */
arch/x86/cpu/braswell/braswell.c +1 -1
@@ -3,10 +3,10 @@* Copyright (C) 2017, Bin Meng <[email protected]> */ -#include <common.h> #include <init.h> #include <asm/mrccache.h> #include <asm/post.h> +#include <asm/u-boot-x86.h> int arch_cpu_init (void ) {
arch/x86/cpu/braswell/early_uart.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2017, Bin Meng <[email protected]> */ -#include <common.h> #include <asm/io.h> #define PCI_DEV_CONFIG (segbus, dev, fn) ( \
arch/x86/cpu/braswell/fsp_configs.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2017, Bin Meng <[email protected]> */ -#include <common.h> #include <fdtdec.h> #include <log.h> #include <asm/fsp1/fsp_support.h>
arch/x86/cpu/broadwell/adsp.c +0 -1
@@ -9,7 +9,6 @@#define LOG_CATEGORY UCLASS_SYSCON -#include <common.h> #include <dm.h> #include <log.h> #include <pci.h>
arch/x86/cpu/broadwell/cpu.c +0 -1
@@ -5,7 +5,6 @@* Based on code from coreboot src/soc/intel/broadwell/cpu.c */ -#include <common.h> #include <dm.h> #include <cpu.h> #include <event.h>
arch/x86/cpu/broadwell/cpu_from_spl.c +1 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <bloblist.h> #include <cpu_func.h> #include <debug_uart.h>
@@ -13,6 +12,7 @@#include <log.h> #include <asm/global_data.h> #include <asm/mtrr.h> +#include <linux/errno.h> int misc_init_r (void ) {
arch/x86/cpu/broadwell/cpu_full.c +0 -1
@@ -5,7 +5,6 @@* Based on code from coreboot src/soc/intel/broadwell/cpu.c */ -#include <common.h> #include <dm.h> #include <cpu.h> #include <init.h>
arch/x86/cpu/broadwell/iobp.c +0 -1
@@ -5,7 +5,6 @@* Modified from coreboot */ -#include <common.h> #include <errno.h> #include <asm/intel_regs.h> #include <asm/io.h>
arch/x86/cpu/broadwell/lpc.c +0 -1
@@ -5,7 +5,6 @@* From coreboot broadwell support */ -#include <common.h> #include <dm.h> #include <log.h> #include <pch.h>
arch/x86/cpu/broadwell/me.c +0 -1
@@ -5,7 +5,6 @@* Based on code from coreboot src/soc/intel/broadwell/me_status.c */ -#include <common.h> #include <errno.h> #include <log.h> #include <asm/arch/me.h>
arch/x86/cpu/broadwell/northbridge.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2011 The Chromium Authors */ -#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <asm/io.h>
arch/x86/cpu/broadwell/pch.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2016 Google, Inc */ -#include <common.h> #include <dm.h> #include <log.h> #include <pch.h>
arch/x86/cpu/broadwell/pinctrl_broadwell.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2016 Google, Inc */ -#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h>
arch/x86/cpu/broadwell/power_state.c +0 -1
@@ -5,7 +5,6 @@* Copyright (C) 2016 Google, Inc. */ -#include <common.h> #include <log.h> #include <pci.h> #include <asm/io.h>
arch/x86/cpu/broadwell/refcode.c +1 -1
@@ -6,7 +6,7 @@* Copyright (c) 2016 Google, Inc */ -#include <common.h> +#include <config.h> #include <display_options.h> #include <errno.h> #include <init.h>
arch/x86/cpu/broadwell/sata.c +0 -1
@@ -5,7 +5,6 @@* From coreboot src/soc/intel/broadwell/sata.c */ -#include <common.h> #include <dm.h> #include <log.h> #include <asm/global_data.h>
arch/x86/cpu/broadwell/sdram.c +0 -1
@@ -7,7 +7,6 @@#define LOG_CATEGORY UCLASS_RAM -#include <common.h> #include <dm.h> #include <init.h> #include <log.h>
arch/x86/cpu/coreboot/coreboot.c +0 -1
@@ -5,7 +5,6 @@* Graeme Russ, [email protected]. */ -#include <common.h> #include <cpu_func.h> #include <event.h> #include <fdtdec.h>
arch/x86/cpu/coreboot/coreboot_spl.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2020 Google LLC */ -#include <common.h> #include <init.h> int dram_init (void )
arch/x86/cpu/coreboot/sdram.c +1 -1
@@ -5,11 +5,11 @@* Graeme Russ, <[email protected]> */ -#include <common.h> #include <init.h> #include <asm/e820.h> #include <asm/cb_sysinfo.h> #include <asm/global_data.h> +#include <asm/u-boot.h> DECLARE_GLOBAL_DATA_PTR ;
arch/x86/cpu/coreboot/timestamp.c +1 -1
@@ -5,10 +5,10 @@* Modified from the coreboot version */ -#include <common.h> #include <bootstage.h> #include <asm/arch/timestamp.h> #include <asm/cb_sysinfo.h> +#include <asm/u-boot-x86.h> #include <linux/compiler.h> static struct timestamp_table *ts_table __section(".data");
arch/x86/cpu/cpu.c +0 -1
@@ -20,7 +20,6 @@#define LOG_CATEGORY UCLASS_CPU -#include <common.h> #include <bootstage.h> #include <command.h> #include <cpu_func.h>
arch/x86/cpu/cpu_x86.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015, Bin Meng <[email protected]> */ -#include <common.h> #include <cpu.h> #include <dm.h> #include <errno.h>
arch/x86/cpu/efi/app.c +1 -1
@@ -3,11 +3,11 @@* Copyright (c) 2015 Google, Inc */ -#include <common.h> #include <cpu_func.h> #include <fdtdec.h> #include <init.h> #include <netdev.h> +#include <asm/u-boot-x86.h> int arch_cpu_init (void ) {
arch/x86/cpu/efi/payload.c +2 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <cpu_func.h> #include <efi.h> #include <efi_api.h>
@@ -17,6 +16,8 @@#include <asm/e820.h> #include <asm/global_data.h> #include <asm/post.h> +#include <asm/u-boot.h> +#include <asm/u-boot-x86.h> DECLARE_GLOBAL_DATA_PTR ;
arch/x86/cpu/efi/sdram.c +1 -1
@@ -3,10 +3,10 @@* Copyright (c) 2015 Google, Inc */ -#include <common.h> #include <efi.h> #include <init.h> #include <asm/global_data.h> +#include <asm/u-boot.h> #include <asm/u-boot-x86.h> DECLARE_GLOBAL_DATA_PTR ;
arch/x86/cpu/i386/cpu.c +1 -1
@@ -18,7 +18,6 @@* src/arch/x86/lib/cpu.c */ -#include <common.h> #include <cpu_func.h> #include <init.h> #include <log.h>
@@ -32,6 +31,7 @@#include <asm/msr.h> #include <asm/mtrr.h> #include <asm/processor-flags.h> +#include <asm/u-boot-x86.h> DECLARE_GLOBAL_DATA_PTR ;
arch/x86/cpu/i386/interrupt.c +0 -1
@@ -10,7 +10,6 @@* Copyright (C) 1991, 1992 Linus Torvalds */ -#include <common.h> #include <dm.h> #include <efi_loader.h> #include <hang.h>
arch/x86/cpu/intel_common/acpi.c +0 -1
@@ -8,7 +8,6 @@* Modified from coreboot src/soc/intel/common/block/acpi.c */ -#include <common.h> #include <bloblist.h> #include <cpu.h> #include <dm.h>
arch/x86/cpu/intel_common/car.S +0 -1
@@ -10,7 +10,6 @@ * Copyright (C) 2012 Kyösti Mälkki <[email protected]> */ -#include <common.h> #include <asm/microcode.h> #include <asm/msr-index.h> #include <asm/mtrr.h>
arch/x86/cpu/intel_common/cpu.c +0 -1
@@ -7,7 +7,6 @@* Some code taken from coreboot cpulib.c */ -#include <common.h> #include <cpu.h> #include <dm.h> #include <errno.h>
arch/x86/cpu/intel_common/cpu_from_spl.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2016 Google, Inc */ -#include <common.h> #include <dm.h> #include <errno.h> #include <handoff.h>
arch/x86/cpu/intel_common/fast_spi.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2019 Google LLC */ -#include <common.h> #include <asm/io.h> #include <asm/cpu_common.h> #include <asm/fast_spi.h>
arch/x86/cpu/intel_common/generic_wifi.c +0 -1
@@ -6,7 +6,6 @@* Modified from coreboot src/drivers/wifi/generic.c */ -#include <common.h> #include <log.h> #include <acpi/acpigen.h> #include <acpi/acpi_device.h>
arch/x86/cpu/intel_common/intel_opregion.c +0 -1
@@ -6,7 +6,6 @@* Modified from coreboot src/soc/intel/gma/opregion.c */ -#include <common.h> #include <binman.h> #include <bloblist.h> #include <dm.h>
arch/x86/cpu/intel_common/itss.c +0 -1
@@ -9,7 +9,6 @@* Taken from coreboot itss.c */ -#include <common.h> #include <dm.h> #include <dt-structs.h> #include <irq.h>
arch/x86/cpu/intel_common/lpc.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2016 Google, Inc */ -#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h>
arch/x86/cpu/intel_common/lpss.c +0 -1
@@ -7,7 +7,6 @@* Some code from coreboot lpss.c */ -#include <common.h> #include <dm.h> #include <pci.h> #include <asm/io.h>
arch/x86/cpu/intel_common/me_status.c +0 -1
@@ -5,7 +5,6 @@* Copyright (C) 2011 The Chromium OS Authors. All rights reserved. */ -#include <common.h> #include <log.h> #include <asm/arch/me.h>
arch/x86/cpu/intel_common/microcode.c +0 -1
@@ -6,7 +6,6 @@* Microcode update for Intel PIII and later CPUs */ -#include <common.h> #include <errno.h> #include <fdtdec.h> #include <log.h>
arch/x86/cpu/intel_common/mrc.c +2 -2
@@ -5,17 +5,17 @@#define LOG_CATEGORY UCLASS_RAM -#include <common.h> +#include <config.h> #include <dm.h> #include <init.h> #include <log.h> #include <spl.h> #include <syscon.h> +#include <time.h> #include <asm/cpu.h> #include <asm/global_data.h> #include <asm/gpio.h> #include <asm/intel_regs.h> -#include <asm/mrc_common.h> #include <asm/pch_common.h> #include <asm/post.h> #include <asm/arch/me.h>
arch/x86/cpu/intel_common/p2sb.c +0 -1
@@ -7,7 +7,6 @@#define LOG_CATEGORY UCLASS_P2SB -#include <common.h> #include <dm.h> #include <dt-structs.h> #include <log.h>
arch/x86/cpu/intel_common/pch.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2016 Google, Inc */ -#include <common.h> #include <dm.h> #include <asm/pch_common.h>
arch/x86/cpu/intel_common/report_platform.c +1 -1
@@ -5,12 +5,12 @@* Copyright (C) 2012 Google Inc. */ -#include <common.h> #include <log.h> #include <asm/cpu.h> #include <asm/pci.h> #include <asm/report_platform.h> #include <asm/arch/pch.h> +#include <linux/string.h> static void report_cpu_info (void ) {
arch/x86/cpu/ioapic.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015, Bin Meng <[email protected]> */ -#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/ioapic.h>
arch/x86/cpu/irq.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015, Bin Meng <[email protected]> */ -#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h>
arch/x86/cpu/ivybridge/bd82x6x.c +0 -1
@@ -2,7 +2,6 @@/* * Copyright (C) 2014 Google, Inc */ -#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h>
arch/x86/cpu/ivybridge/cpu.c +0 -1
@@ -10,7 +10,6 @@* Copyright (C) 2011 Google Inc. */ -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h>
arch/x86/cpu/ivybridge/early_me.c +0 -1
@@ -5,7 +5,6 @@* Copyright (C) 2011 The Chromium OS Authors. All rights reserved. */ -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h>
arch/x86/cpu/ivybridge/fsp_configs.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2016, Bin Meng <[email protected]> */ -#include <common.h> #include <fdtdec.h> #include <log.h> #include <asm/fsp1/fsp_support.h>
arch/x86/cpu/ivybridge/ivybridge.c +1 -1
@@ -3,10 +3,10 @@* Copyright (C) 2016, Bin Meng <[email protected]> */ -#include <common.h> #include <init.h> #include <asm/post.h> #include <asm/processor.h> +#include <asm/u-boot-x86.h> int arch_cpu_init (void ) {
arch/x86/cpu/ivybridge/lpc.c +0 -1
@@ -5,7 +5,6 @@* Copyright (C) 2008-2009 coresystems GmbH */ -#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h>
arch/x86/cpu/ivybridge/model_206ax.c +0 -1
@@ -6,7 +6,6 @@* Copyright (C) 2011 The Chromium Authors */ -#include <common.h> #include <cpu.h> #include <dm.h> #include <fdtdec.h>
arch/x86/cpu/ivybridge/northbridge.c +0 -1
@@ -6,7 +6,6 @@* Copyright (C) 2011 The Chromium Authors */ -#include <common.h> #include <dm.h> #include <log.h> #include <asm/global_data.h>
arch/x86/cpu/ivybridge/sata.c +0 -1
@@ -4,7 +4,6 @@* Copyright (C) 2008-2009 coresystems GmbH */ -#include <common.h> #include <ahci.h> #include <dm.h> #include <fdtdec.h>
arch/x86/cpu/ivybridge/sdram.c +0 -1
@@ -11,7 +11,6 @@#define LOG_CATEGORY UCLASS_RAM -#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h>
arch/x86/cpu/ivybridge/sdram_nop.c +1 -1
@@ -3,9 +3,9 @@* Copyright (c) 2016 Google, Inc */ -#include <common.h> #include <init.h> #include <asm/global_data.h> +#include <asm/u-boot.h> DECLARE_GLOBAL_DATA_PTR ;
arch/x86/cpu/lapic.c +0 -1
@@ -6,7 +6,6 @@* Copyright (C) 2014 Google, Inc */ -#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/lapic.h>
arch/x86/cpu/mp_init.c +1 -1
@@ -5,13 +5,13 @@* Based on code from the coreboot file of the same name */ -#include <common.h> #include <cpu.h> #include <dm.h> #include <errno.h> #include <log.h> #include <malloc.h> #include <qfw.h> +#include <time.h> #include <asm/atomic.h> #include <asm/cpu.h> #include <asm/global_data.h>
arch/x86/cpu/mtrr.c +0 -1
@@ -16,7 +16,6 @@* since the MTRR registers are sometimes in flux. */ -#include <common.h> #include <cpu_func.h> #include <log.h> #include <sort.h>
arch/x86/cpu/pci.c +0 -1
@@ -8,7 +8,6 @@* Daniel Engström, Omicron Ceti AB, <[email protected]> */ -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h>
arch/x86/cpu/qemu/cpu.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015, Miao Yan <[email protected]> */ -#include <common.h> #include <cpu.h> #include <dm.h> #include <errno.h>
arch/x86/cpu/qemu/dram.c +1 -1
@@ -3,11 +3,11 @@* Copyright (C) 2015, Bin Meng <[email protected]> */ -#include <common.h> #include <init.h> #include <asm/global_data.h> #include <asm/post.h> #include <asm/arch/qemu.h> +#include <asm/u-boot.h> #include <linux/sizes.h> DECLARE_GLOBAL_DATA_PTR ;
arch/x86/cpu/qemu/e820.c +0 -1
@@ -6,7 +6,6 @@* (C) Copyright 2019 Bin Meng <[email protected]> */ -#include <common.h> #include <env_internal.h> #include <malloc.h> #include <asm/e820.h>
arch/x86/cpu/qemu/qemu.c +1 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015, Bin Meng <[email protected]> */ -#include <common.h> #include <cpu_func.h> #include <init.h> #include <pci.h>
@@ -14,6 +13,7 @@#include <asm/processor.h> #include <asm/arch/device.h> #include <asm/arch/qemu.h> +#include <asm/u-boot-x86.h> static bool i440fx;
arch/x86/cpu/qfw_cpu.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015 Google, Inc */ -#include <common.h> #include <cpu.h> #include <dm.h> #include <malloc.h>
arch/x86/cpu/quark/acpi.c +1 -1
@@ -3,13 +3,13 @@* Copyright (C) 2016, Bin Meng <[email protected]> */ -#include <common.h> #include <mapmem.h> #include <acpi/acpi_table.h> #include <asm/processor.h> #include <asm/tables.h> #include <asm/arch/global_nvs.h> #include <asm/arch/iomap.h> +#include <linux/string.h> static int quark_write_fadt (struct acpi_ctx *ctx,const struct acpi_writer *entry)
arch/x86/cpu/quark/dram.c +1 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015, Bin Meng <[email protected]> */ -#include <common.h> #include <cpu_func.h> #include <errno.h> #include <fdtdec.h>
@@ -18,6 +17,7 @@#include <asm/arch/mrc.h> #include <asm/arch/msg_port.h> #include <asm/arch/quark.h> +#include <asm/u-boot.h> DECLARE_GLOBAL_DATA_PTR ;
arch/x86/cpu/quark/hte.c +0 -1
@@ -7,7 +7,6 @@* QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei */ -#include <common.h> #include <asm/arch/mrc.h> #include <asm/arch/msg_port.h> #include "mrc_util.h"
arch/x86/cpu/quark/mrc.c +1 -1
@@ -32,9 +32,9 @@* DRAM unit configuration based on Valleyview MRC. */ -#include <common.h> #include <asm/arch/mrc.h> #include <asm/arch/msg_port.h> +#include <asm/u-boot-x86.h> #include "mrc_util.h" #include "smc.h"
arch/x86/cpu/quark/mrc_util.c +1 -1
@@ -7,12 +7,12 @@* QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei */ -#include <common.h> #include <hang.h> #include <asm/arch/device.h> #include <asm/arch/mrc.h> #include <asm/arch/msg_port.h> #include <asm/arch/quark.h> +#include <asm/u-boot-x86.h> #include "mrc_util.h" #include "hte.h" #include "smc.h"
arch/x86/cpu/quark/msg_port.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015, Bin Meng <[email protected]> */ -#include <common.h> #include <asm/arch/device.h> #include <asm/arch/msg_port.h> #include <asm/arch/quark.h>
arch/x86/cpu/quark/quark.c +1 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015, Bin Meng <[email protected]> */ -#include <common.h> #include <cpu_func.h> #include <event.h> #include <init.h>
@@ -19,6 +18,7 @@#include <asm/arch/device.h> #include <asm/arch/msg_port.h> #include <asm/arch/quark.h> +#include <asm/u-boot-x86.h> #include <linux/delay.h> static void quark_setup_mtrr (void )
arch/x86/cpu/quark/smc.c +2 -1
@@ -7,11 +7,12 @@* QuarkSocPkg/QuarkNorthCluster/MemoryInit/Pei */ -#include <common.h> #include <pci.h> #include <asm/arch/device.h> #include <asm/arch/mrc.h> #include <asm/arch/msg_port.h> +#include <asm/u-boot-x86.h> +#include <linux/string.h> #include "mrc_util.h" #include "hte.h" #include "smc.h"
arch/x86/cpu/queensbay/fsp_configs.c +0 -1
@@ -4,7 +4,6 @@* Copyright (C) 2014, Bin Meng <[email protected]> */ -#include <common.h> #include <asm/fsp1/fsp_support.h> void fsp_update_configs(struct fsp_config_data *config,
arch/x86/cpu/queensbay/tnc.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2014, Bin Meng <[email protected]> */ -#include <common.h> #include <dm.h> #include <init.h> #include <dm/device-internal.h>
arch/x86/cpu/slimbootloader/sdram.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2019 Intel Corporation <www.intel.com> */ -#include <common.h> #include <init.h> #include <asm/global_data.h> #include <linux/sizes.h>
arch/x86/cpu/slimbootloader/serial.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2019 Intel Corporation <www.intel.com> */ -#include <common.h> #include <dm.h> #include <log.h> #include <ns16550.h>
arch/x86/cpu/slimbootloader/slimbootloader.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2019 Intel Corporation <www.intel.com> */ -#include <common.h> #include <cpu_func.h> #include <init.h> #include <log.h>
arch/x86/cpu/tangier/acpi.c +0 -1
@@ -5,7 +5,6 @@* Partially based on acpi.c for other x86 platforms */ -#include <common.h> #include <cpu.h> #include <dm.h> #include <mapmem.h>
arch/x86/cpu/tangier/pinmux.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2018 Emlid Limited */ -#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h>
arch/x86/cpu/tangier/sdram.c +1 -1
@@ -3,12 +3,12 @@* Copyright (c) 2017 Intel Corporation */ -#include <common.h> #include <init.h> #include <log.h> #include <asm/e820.h> #include <asm/global_data.h> #include <asm/sfi.h> +#include <asm/u-boot.h> #include <linux/printk.h> DECLARE_GLOBAL_DATA_PTR ;
arch/x86/cpu/tangier/sysreset.c +0 -1
@@ -5,7 +5,6 @@* Reset driver for tangier processor */ -#include <common.h> #include <dm.h> #include <sysreset.h> #include <asm/scu.h>
arch/x86/cpu/tangier/tangier.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2017 Intel Corporation */ -#include <common.h> #include <cpu_func.h> #include <init.h> #include <asm/u-boot-x86.h>
arch/x86/cpu/turbo.c +0 -1
@@ -5,7 +5,6 @@* Copyright (C) 2011 The Chromium Authors. */ -#include <common.h> #include <log.h> #include <asm/cpu.h> #include <asm/global_data.h>
arch/x86/cpu/x86_64/cpu.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <cpu_func.h> #include <debug_uart.h> #include <init.h>
arch/x86/cpu/x86_64/interrupts.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <irq_func.h> #include <asm/processor-flags.h>
arch/x86/cpu/x86_64/misc.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <init.h> DECLARE_GLOBAL_DATA_PTR ;
arch/x86/include/asm/arch-quark/mrc.h +2 -0
@@ -10,6 +10,8 @@#ifndef _MRC_H_#define _MRC_H_ +#include <linux/types.h> +#define MRC_VERSION 0x0111/* architectural definitions */
arch/x86/include/asm/arch-quark/msg_port.h +2 -0
@@ -34,6 +34,8 @@#ifndef __ASSEMBLY__ +#include <linux/types.h> +/** * msg_port_setup - set up the message port control register *
arch/x86/include/asm/arch-quark/quark.h +2 -0
@@ -71,6 +71,8 @@#ifndef __ASSEMBLY__ +#include <linux/types.h> +/* variable range MTRR usage */ enum { MTRR_VAR_ROM,
arch/x86/include/asm/cb_sysinfo.h +1 -0
@@ -9,6 +9,7 @@#define _COREBOOT_SYSINFO_H#include <asm/coreboot_tables.h> +#include <linux/types.h> /* Maximum number of memory range definitions */ #define SYSINFO_MAX_MEM_RANGES 32
arch/x86/include/asm/coreboot_tables.h +2 -0
@@ -8,6 +8,8 @@ #ifndef _COREBOOT_TABLES_H #define _COREBOOT_TABLES_H +#include <linux/types.h> + struct timestamp_entry { u32 entry_id; u64 entry_stamp;
arch/x86/include/asm/early_cmos.h +2 -0
@@ -6,6 +6,8 @@#ifndef __EARLY_CMOS_H#define __EARLY_CMOS_H +#include <linux/types.h> +/* CMOS actually resides in the RTC SRAM */ #define CMOS_IO_PORT 0x70
arch/x86/include/asm/handoff.h +2 -0
@@ -9,6 +9,8 @@#ifndef __x86_asm_handoff_h#define __x86_asm_handoff_h +#include <linux/types.h> +/** * struct arch_spl_handoff - architecture-specific handoff info *
arch/x86/include/asm/me_common.h +1 -0
@@ -13,6 +13,7 @@#define __ASM_ME_COMMON_H#include <linux/compiler.h> +#include <linux/string.h> #include <linux/types.h> #include <pci.h>
arch/x86/include/asm/mp.h +1 -0
@@ -11,6 +11,7 @@#include <asm/atomic.h> #include <asm/cache.h> #include <linux/bitops.h> +#include <linux/errno.h> struct udevice ;
arch/x86/lib/acpi.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2018, Bin Meng <[email protected]> */ -#include <common.h> #include <log.h> #include <acpi/acpi_table.h> #include <asm/io.h>
arch/x86/lib/acpi_nhlt.c +0 -1
@@ -7,7 +7,6 @@#define LOG_CATEGORY LOGC_ACPI -#include <common.h> #include <binman.h> #include <dm.h> #include <log.h>
arch/x86/lib/acpi_s3.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2017, Bin Meng <[email protected]> */ -#include <common.h> #include <acpi/acpi_s3.h> #include <acpi/acpi_table.h> #include <asm/acpi.h>
arch/x86/lib/acpi_table.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY LOGC_ACPI -#include <common.h> #include <bloblist.h> #include <cpu.h> #include <dm.h>
arch/x86/lib/acpigen.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2020 Google LLC */ -#include <common.h> #include <acpi/acpigen.h> #include <acpi/acpi_table.h> #include <asm/acpigen.h>
arch/x86/lib/asm-offsets.c +0 -1
@@ -11,7 +11,6 @@* #defines from the assembly-language output. */ -#include <common.h> #include <asm/global_data.h> #include <linux/kbuild.h>
arch/x86/lib/bdinfo.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2021 Google LLC */ -#include <common.h> #include <efi.h> #include <init.h> #include <asm/cpu.h>
arch/x86/lib/bios.c +0 -1
@@ -5,7 +5,6 @@* Copyright (C) 2007 Advanced Micro Devices, Inc. * Copyright (C) 2009-2010 coresystems GmbH */ -#include <common.h> #include <compiler.h> #include <bios_emul.h> #include <irq_func.h>
arch/x86/lib/bios_interrupts.c +0 -1
@@ -7,7 +7,6 @@* Copyright (C) 2007-2009 coresystems GmbH */ -#include <common.h> #include <log.h> #include <asm/pci.h> #include "bios_emul.h"
arch/x86/lib/bootm.c +0 -1
@@ -7,7 +7,6 @@* Copyright (C) 2001 Erik Mouw ([email protected]) */ -#include <common.h> #include <bootm.h> #include <bootstage.h> #include <command.h>
arch/x86/lib/cmd_boot.c +0 -1
@@ -14,7 +14,6 @@* Marius Groeger <[email protected]> */ -#include <common.h> #include <command.h> #include <malloc.h> #include <asm/global_data.h>
arch/x86/lib/coreboot/cb_support.c +1 -1
@@ -5,9 +5,9 @@* Copyright 2021 Google LLC */ -#include <common.h> #include <asm/cb_sysinfo.h> #include <asm/e820.h> +#include <linux/kernel.h> unsigned int cb_install_e820_map (unsigned int max_entries,struct e820_entry *entries)
arch/x86/lib/coreboot/cb_sysinfo.c +1 -1
@@ -6,12 +6,12 @@* Copyright (C) 2009 coresystems GmbH */ -#include <common.h> #include <asm/cb_sysinfo.h> #include <init.h> #include <mapmem.h> #include <net.h> #include <asm/global_data.h> +#include <linux/errno.h> DECLARE_GLOBAL_DATA_PTR ;
arch/x86/lib/coreboot_table.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2016, Bin Meng <[email protected]> */ -#include <common.h> #include <malloc.h> #include <net.h> #include <vesa.h>
arch/x86/lib/div64.c +1 -1
@@ -6,7 +6,7 @@* Copyright 2014 Google Inc. */ -#include <common.h> +#include <linux/types.h> union overlay64 {u64 longw;
arch/x86/lib/e820.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015, Bin Meng <[email protected]> */ -#include <common.h> #include <efi_loader.h> #include <asm/e820.h> #include <asm/global_data.h>
arch/x86/lib/early_cmos.c +0 -1
@@ -10,7 +10,6 @@* uclass write ops, that data is stored in little-endian mode. */ -#include <common.h> #include <asm/early_cmos.h> #include <asm/io.h>
arch/x86/lib/fsp/fsp_common.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2014, Bin Meng <[email protected]> */ -#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h>
arch/x86/lib/fsp/fsp_dram.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2014, Bin Meng <[email protected]> */ -#include <common.h> #include <handoff.h> #include <init.h> #include <log.h>
arch/x86/lib/fsp/fsp_graphics.c +0 -1
@@ -5,7 +5,6 @@#define LOG_CATEGORY UCLASS_VIDEO -#include <common.h> #include <dm.h> #include <init.h> #include <log.h>
arch/x86/lib/fsp/fsp_support.c +0 -1
@@ -4,7 +4,6 @@* Copyright (C) 2014, Bin Meng <[email protected]> */ -#include <common.h> #include <log.h> #include <asm/fsp/fsp_support.h> #include <asm/post.h>
arch/x86/lib/fsp1/fsp_common.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2014, Bin Meng <[email protected]> */ -#include <common.h> #include <dm.h> #include <errno.h> #include <init.h>
arch/x86/lib/fsp1/fsp_dram.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2014, Bin Meng <[email protected]> */ -#include <common.h> #include <init.h> #include <asm/fsp/fsp_support.h> #include <asm/global_data.h>
arch/x86/lib/fsp1/fsp_support.c +0 -1
@@ -4,7 +4,6 @@* Copyright (C) 2014, Bin Meng <[email protected]> */ -#include <common.h> #include <log.h> #include <asm/fsp1/fsp_support.h> #include <asm/post.h>
arch/x86/lib/fsp2/fsp_common.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <init.h> #include <asm/fsp/fsp_support.h>
arch/x86/lib/fsp2/fsp_dram.c +0 -1
@@ -6,7 +6,6 @@#define LOG_CATEGORY LOGC_ARCH -#include <common.h> #include <handoff.h> #include <init.h> #include <log.h>
arch/x86/lib/fsp2/fsp_init.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2019 Google LLC */ -#include <common.h> #include <binman.h> #include <binman_sym.h> #include <bootstage.h>
arch/x86/lib/fsp2/fsp_meminit.c +0 -1
@@ -6,7 +6,6 @@* Mostly taken from coreboot fsp2_0/memory_init.c */ -#include <common.h> #include <binman.h> #include <bootstage.h> #include <dm.h>
arch/x86/lib/fsp2/fsp_silicon_init.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY UCLASS_NORTHBRIDGE -#include <common.h> #include <binman.h> #include <bootstage.h> #include <dm.h>
arch/x86/lib/fsp2/fsp_support.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <dm.h> #include <init.h> #include <log.h>
arch/x86/lib/hob.c +0 -1
@@ -4,7 +4,6 @@* Copyright (C) 2014, Bin Meng <[email protected]> */ -#include <common.h> #include <asm/hob.h> /**
arch/x86/lib/i8254.c +1 -1
@@ -4,10 +4,10 @@* Daniel Engström, Omicron Ceti AB, <[email protected]> */ -#include <common.h> #include <asm/io.h> #include <asm/i8254.h> #include <asm/ibmpc.h> +#include <linux/errno.h> #define TIMER1_VALUE 18/* 15.6us */ #define BEEP_FREQUENCY_HZ 440
arch/x86/lib/i8259.c +0 -1
@@ -13,7 +13,6 @@* Programmable Interrupt Controllers. */ -#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/i8259.h>
arch/x86/lib/init_helpers.c +1 -1
@@ -4,11 +4,11 @@* Graeme Russ, <[email protected]> */ -#include <common.h> #include <init.h> #include <asm/global_data.h> #include <linux/errno.h> #include <asm/mtrr.h> +#include <asm/u-boot-x86.h> DECLARE_GLOBAL_DATA_PTR ;
arch/x86/lib/interrupts.c +0 -1
@@ -29,7 +29,6 @@* Daniel Engström */ -#include <common.h> #include <command.h> #include <irq_func.h> #include <asm/interrupt.h>
arch/x86/lib/lpc-uclass.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <dm.h> UCLASS_DRIVER (lpc) = {
arch/x86/lib/mpspec.c +0 -1
@@ -5,7 +5,6 @@* Adapted from coreboot src/arch/x86/boot/mpspec.c */ -#include <common.h> #include <cpu.h> #include <dm.h> #include <errno.h>
arch/x86/lib/mrccache.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY UCLASS_RAM -#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h>
arch/x86/lib/northbridge-uclass.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <dm.h> #include <dm/root.h>
arch/x86/lib/physmem.c +0 -1
@@ -8,7 +8,6 @@* Software Foundation. */ -#include <common.h> #include <log.h> #include <physmem.h> #include <asm/cpu.h>
arch/x86/lib/pinctrl_ich6.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2016 Google, Inc */ -#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h>
arch/x86/lib/pirq_routing.c +0 -1
@@ -5,7 +5,6 @@* Part of this file is ported from coreboot src/arch/x86/boot/pirq_routing.c */ -#include <common.h> #include <log.h> #include <pci.h> #include <asm/global_data.h>
arch/x86/lib/pmu.c +0 -1
@@ -2,7 +2,6 @@/* * Copyright (c) 2017 Intel Corporation */ -#include <common.h> #include <dm.h> #include <regmap.h> #include <syscon.h>
arch/x86/lib/ramtest.c +1 -1
@@ -5,9 +5,9 @@* From Coreboot src/lib/ramtest.c */ -#include <common.h> #include <asm/io.h> #include <asm/post.h> +#include <vsprintf.h> static void write_phys (unsigned long addr,u32 value) {
arch/x86/lib/reloc_ia32_efi.c +0 -1
@@ -7,7 +7,6 @@* All rights reserved. */ -#include <common.h> #include <efi.h> #include <elf.h>
arch/x86/lib/reloc_x86_64_efi.c +0 -1
@@ -9,7 +9,6 @@* All rights reserved. */ -#include <common.h> #include <efi.h> #include <elf.h>
arch/x86/lib/relocate.c +0 -1
@@ -14,7 +14,6 @@* Marius Groeger <[email protected]> */ -#include <common.h> #include <log.h> #include <relocate.h> #include <asm/global_data.h>
arch/x86/lib/scu.c +0 -1
@@ -9,7 +9,6 @@* * This driver enables IPC channel to SCU. */ -#include <common.h> #include <dm.h> #include <regmap.h> #include <syscon.h>
arch/x86/lib/sfi.c +0 -1
@@ -12,7 +12,6 @@* See https://simplefirmware.org/ for details */ -#include <common.h> #include <cpu.h> #include <dm.h> #include <asm/cpu.h>
arch/x86/lib/spl.c +1 -1
@@ -5,7 +5,6 @@#define LOG_CATEGORY LOGC_BOOT -#include <common.h> #include <cpu_func.h> #include <debug_uart.h> #include <dm.h>
@@ -29,6 +28,7 @@#include <asm/processor.h> #include <asm/qemu.h> #include <asm/spl.h> +#include <asm/u-boot-x86.h> #include <asm-generic/sections.h> DECLARE_GLOBAL_DATA_PTR ;
arch/x86/lib/tables.c +0 -1
@@ -5,7 +5,6 @@#define LOG_CATEGORY LOGC_ACPI -#include <common.h> #include <bloblist.h> #include <log.h> #include <malloc.h>
arch/x86/lib/tpl.c +0 -1
@@ -5,7 +5,6 @@#define LOG_CATEGORY LOGC_BOOT -#include <common.h> #include <debug_uart.h> #include <dm.h> #include <hang.h>
arch/x86/lib/zimage.c +0 -1
@@ -14,7 +14,6 @@#define LOG_CATEGORY LOGC_BOOT -#include <common.h> #include <bootm.h> #include <command.h> #include <env.h>
include/acpi/acpi_s3.h +3 -0
@@ -37,6 +37,9 @@#ifndef __ASSEMBLY__ +#include <linux/errno.h> +#include <linux/types.h> +extern char __wakeup[];extern int __wakeup_size;
Signature · 1 line
2.34.1
PATCH 9/18 powerpc: Remove <common.h> and add needed includes
In reply to Tom RiniRemove <common.h> from all powerpc architecture files and when needed add missing include files directly. This typically involves using <asm/u-boot.h> instead due to the difficult nested structure of the PowerPC includes themselves.
--- arch/powerpc/cpu/mpc83xx/cpu.c | 1 - arch/powerpc/cpu/mpc83xx/ecc.c | 1 - arch/powerpc/cpu/mpc83xx/fdt.c | 1 - arch/powerpc/cpu/mpc83xx/interrupts.c | 2 +- arch/powerpc/cpu/mpc83xx/law.c | 1 - arch/powerpc/cpu/mpc83xx/pci.c | 1 - arch/powerpc/cpu/mpc83xx/pcie.c | 2 +- arch/powerpc/cpu/mpc83xx/qe_io.c | 1 - arch/powerpc/cpu/mpc83xx/serdes.c | 1 - arch/powerpc/cpu/mpc83xx/spd_sdram.c | 2 +- arch/powerpc/cpu/mpc83xx/speed.c | 2 +- arch/powerpc/cpu/mpc83xx/spl_minimal.c | 2 +- arch/powerpc/cpu/mpc83xx/traps.c | 1 - arch/powerpc/cpu/mpc85xx/b4860_ids.c | 2 +- arch/powerpc/cpu/mpc85xx/b4860_serdes.c | 1 - arch/powerpc/cpu/mpc85xx/bsc9132_serdes.c | 1 - arch/powerpc/cpu/mpc85xx/c29x_serdes.c | 1 - arch/powerpc/cpu/mpc85xx/cmd_errata.c | 2 +- arch/powerpc/cpu/mpc85xx/cpu.c | 1 - arch/powerpc/cpu/mpc85xx/cpu_init_early.c | 3 ++- arch/powerpc/cpu/mpc85xx/fdt.c | 2 +- arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c | 2 +- arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c | 2 +- arch/powerpc/cpu/mpc85xx/interrupts.c | 2 +- arch/powerpc/cpu/mpc85xx/liodn.c | 2 +- arch/powerpc/cpu/mpc85xx/mp.c | 2 +- arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c | 1 - arch/powerpc/cpu/mpc85xx/mpc8544_serdes.c | 1 - arch/powerpc/cpu/mpc85xx/mpc8548_serdes.c | 1 - arch/powerpc/cpu/mpc85xx/p1010_serdes.c | 1 - arch/powerpc/cpu/mpc85xx/p1021_serdes.c | 1 - arch/powerpc/cpu/mpc85xx/p1023_serdes.c | 1 - arch/powerpc/cpu/mpc85xx/p2020_serdes.c | 1 - arch/powerpc/cpu/mpc85xx/p2041_ids.c | 2 +- arch/powerpc/cpu/mpc85xx/p2041_serdes.c | 2 +- arch/powerpc/cpu/mpc85xx/p3041_ids.c | 2 +- arch/powerpc/cpu/mpc85xx/p3041_serdes.c | 1 - arch/powerpc/cpu/mpc85xx/p4080_ids.c | 2 +- arch/powerpc/cpu/mpc85xx/p4080_serdes.c | 1 - arch/powerpc/cpu/mpc85xx/p5040_ids.c | 2 +- arch/powerpc/cpu/mpc85xx/p5040_serdes.c | 1 - arch/powerpc/cpu/mpc85xx/portals.c | 1 - arch/powerpc/cpu/mpc85xx/qe_io.c | 2 +- arch/powerpc/cpu/mpc85xx/speed.c | 2 +- arch/powerpc/cpu/mpc85xx/spl_minimal.c | 2 +- arch/powerpc/cpu/mpc85xx/t1024_ids.c | 2 +- arch/powerpc/cpu/mpc85xx/t1024_serdes.c | 2 +- arch/powerpc/cpu/mpc85xx/t1040_ids.c | 2 +- arch/powerpc/cpu/mpc85xx/t1040_serdes.c | 2 +- arch/powerpc/cpu/mpc85xx/t2080_ids.c | 2 +- arch/powerpc/cpu/mpc85xx/t2080_serdes.c | 2 +- arch/powerpc/cpu/mpc85xx/t4240_ids.c | 2 +- arch/powerpc/cpu/mpc85xx/t4240_serdes.c | 2 +- arch/powerpc/cpu/mpc85xx/tlb.c | 2 +- arch/powerpc/cpu/mpc85xx/traps.c | 2 +- arch/powerpc/cpu/mpc8xxx/cpu.c | 1 - arch/powerpc/cpu/mpc8xxx/fdt.c | 1 - arch/powerpc/cpu/mpc8xxx/fsl_lbc.c | 2 +- arch/powerpc/cpu/mpc8xxx/fsl_pamu.c | 2 +- arch/powerpc/cpu/mpc8xxx/law.c | 2 +- arch/powerpc/cpu/mpc8xxx/pamu_table.c | 2 +- arch/powerpc/cpu/mpc8xxx/srio.c | 3 +-- arch/powerpc/include/asm/cache.h | 2 ++ arch/powerpc/include/asm/fsl_dma.h | 2 +- arch/powerpc/include/asm/fsl_serdes.h | 1 + arch/powerpc/include/asm/immap_8xx.h | 2 ++ arch/powerpc/lib/bdinfo.c | 2 +- arch/powerpc/lib/bootm.c | 2 +- arch/powerpc/lib/cache.c | 1 - arch/powerpc/lib/extable.c | 1 - arch/powerpc/lib/interrupts.c | 2 +- arch/powerpc/lib/kgdb.c | 1 - arch/powerpc/lib/spl.c | 1 - arch/powerpc/lib/stack.c | 1 - arch/powerpc/lib/time.c | 1 - include/fsl_immap.h | 3 +++ 76 files changed, 50 insertions(+), 73 deletions(-)
arch/powerpc/cpu/mpc83xx/cpu.c +0 -1
@@ -9,7 +9,6 @@* Derived from the MPC8260 and MPC85xx. */ -#include <common.h> #include <cpu_func.h> #include <irq_func.h> #include <net.h>
arch/powerpc/cpu/mpc83xx/ecc.c +0 -1
@@ -6,7 +6,6 @@* based on the contribution of Marian Balakowicz <[email protected]> */ -#include <common.h> #include <irq_func.h> #include <mpc83xx.h> #include <command.h>
arch/powerpc/cpu/mpc83xx/fdt.c +0 -1
@@ -6,7 +6,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <clock_legacy.h> #include <asm/global_data.h> #include <linux/libfdt.h>
arch/powerpc/cpu/mpc83xx/interrupts.c +1 -1
@@ -6,7 +6,7 @@* Copyright 2004 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <asm/u-boot.h> #include <command.h> #include <irq_func.h> #include <mpc83xx.h>
arch/powerpc/cpu/mpc83xx/law.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2011 Freescale Semiconductor, Inc. */ -#include <common.h> #include <log.h> #include <asm/fsl_law.h> #include <asm/mmu.h>
arch/powerpc/cpu/mpc83xx/pci.c +0 -1
@@ -6,7 +6,6 @@* with some bits from older board-specific PCI initialization. */ -#include <common.h> #include <init.h> #include <pci.h> #include <asm/bitops.h>
arch/powerpc/cpu/mpc83xx/pcie.c +1 -1
@@ -7,7 +7,7 @@* Anton Vorontsov <[email protected]> */ -#include <common.h> +#include <asm/u-boot.h> #include <clock_legacy.h> #include <pci.h> #include <mpc83xx.h>
arch/powerpc/cpu/mpc83xx/qe_io.c +0 -1
@@ -6,7 +6,6 @@* based on source code of Shlomi Gridish */ -#include <common.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/immap_83xx.h>
arch/powerpc/cpu/mpc83xx/serdes.c +0 -1
@@ -9,7 +9,6 @@*/ #include <config.h> -#include <common.h> #include <asm/io.h> #include <asm/fsl_mpc83xx_serdes.h> #include <linux/delay.h>
arch/powerpc/cpu/mpc83xx/spd_sdram.c +1 -1
@@ -12,7 +12,7 @@#ifndef CONFIG_MPC83XX_SDRAM -#include <common.h> +#include <asm/u-boot.h> #include <cpu_func.h> #include <log.h> #include <time.h>
arch/powerpc/cpu/mpc83xx/speed.c +1 -1
@@ -8,7 +8,7 @@#ifndef CONFIG_CLK_MPC83XX -#include <common.h> +#include <asm/u-boot.h> #include <clock_legacy.h> #include <mpc83xx.h> #include <command.h>
arch/powerpc/cpu/mpc83xx/spl_minimal.c +1 -1
@@ -3,7 +3,7 @@* Copyright (C) 2004-2008 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <config.h> #include <asm-offsets.h> #include <clock_legacy.h> #include <mpc83xx.h>
arch/powerpc/cpu/mpc83xx/traps.c +0 -1
@@ -11,7 +11,6 @@* exceptions */ -#include <common.h> #include <asm/global_data.h> #include <asm/ptrace.h> #include <command.h>
arch/powerpc/cpu/mpc85xx/b4860_ids.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2012 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <config.h> #include <asm/fsl_portals.h> #include <asm/fsl_liodn.h>
arch/powerpc/cpu/mpc85xx/b4860_serdes.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2012 Freescale Semiconductor, Inc. */ -#include <common.h> #include <asm/fsl_serdes.h> #include <asm/processor.h> #include <asm/io.h>
arch/powerpc/cpu/mpc85xx/bsc9132_serdes.c +0 -1
@@ -5,7 +5,6 @@*/ #include <config.h> -#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/immap_85xx.h>
arch/powerpc/cpu/mpc85xx/c29x_serdes.c +0 -1
@@ -4,7 +4,6 @@*/ #include <config.h> -#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/immap_85xx.h>
arch/powerpc/cpu/mpc85xx/cmd_errata.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2010-2011 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <asm/u-boot.h> #include <command.h> #include <init.h> #include <linux/compiler.h>
arch/powerpc/cpu/mpc85xx/cpu.c +0 -1
@@ -9,7 +9,6 @@*/ #include <config.h> -#include <common.h> #include <cpu_func.h> #include <clock_legacy.h> #include <display_options.h>
arch/powerpc/cpu/mpc85xx/cpu_init_early.c +2 -1
@@ -3,8 +3,9 @@* Copyright 2009-2012 Freescale Semiconductor, Inc */ -#include <common.h> +#include <asm/ppc.h> #include <system-constants.h> +#include <linux/types.h> #include <asm-offsets.h> #include <asm/global_data.h> #include <asm/processor.h>
arch/powerpc/cpu/mpc85xx/fdt.c +1 -1
@@ -6,7 +6,7 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> +#include <config.h> #include <clock_legacy.h> #include <env.h> #include <log.h>
arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2012 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <asm/u-boot.h> #include <log.h> #include <asm/fsl_serdes.h> #include <asm/immap_85xx.h>
arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2009-2011 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <config.h> #include <env.h> #include <log.h> #include <time.h>
arch/powerpc/cpu/mpc85xx/interrupts.c +1 -1
@@ -10,7 +10,7 @@* Xianghua Xiao ([email protected]) */ -#include <common.h> +#include <asm/ppc.h> #include <irq_func.h> #include <log.h> #include <time.h>
arch/powerpc/cpu/mpc85xx/liodn.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2008-2011 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <config.h> #include <log.h> #include <linux/libfdt.h> #include <fdt_support.h>
arch/powerpc/cpu/mpc85xx/mp.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2008-2011 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <config.h> #include <cpu_func.h> #include <env.h> #include <log.h>
arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c +0 -1
@@ -5,7 +5,6 @@*/ #include <config.h> -#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/immap_85xx.h>
arch/powerpc/cpu/mpc85xx/mpc8544_serdes.c +0 -1
@@ -4,7 +4,6 @@*/ #include <config.h> -#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/immap_85xx.h>
arch/powerpc/cpu/mpc85xx/mpc8548_serdes.c +0 -1
@@ -4,7 +4,6 @@*/ #include <config.h> -#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/immap_85xx.h>
arch/powerpc/cpu/mpc85xx/p1010_serdes.c +0 -1
@@ -5,7 +5,6 @@*/ #include <config.h> -#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/immap_85xx.h>
arch/powerpc/cpu/mpc85xx/p1021_serdes.c +0 -1
@@ -4,7 +4,6 @@*/ #include <config.h> -#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/immap_85xx.h>
arch/powerpc/cpu/mpc85xx/p1023_serdes.c +0 -1
@@ -5,7 +5,6 @@*/ #include <config.h> -#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/immap_85xx.h>
arch/powerpc/cpu/mpc85xx/p2020_serdes.c +0 -1
@@ -4,7 +4,6 @@*/ #include <config.h> -#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/immap_85xx.h>
arch/powerpc/cpu/mpc85xx/p2041_ids.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2011 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <asm/u-boot.h> #include <asm/fsl_portals.h> #include <asm/fsl_liodn.h>
arch/powerpc/cpu/mpc85xx/p2041_serdes.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2010-2011 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <asm/u-boot.h> #include <asm/fsl_serdes.h> #include <asm/processor.h> #include <asm/io.h>
arch/powerpc/cpu/mpc85xx/p3041_ids.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2010-2011 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <config.h> #include <asm/fsl_portals.h> #include <asm/fsl_liodn.h>
arch/powerpc/cpu/mpc85xx/p3041_serdes.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2009-2011 Freescale Semiconductor, Inc. */ -#include <common.h> #include <asm/fsl_serdes.h> #include <asm/processor.h> #include <asm/io.h>
arch/powerpc/cpu/mpc85xx/p4080_ids.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2010-2011 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <config.h> #include <asm/fsl_portals.h> #include <asm/fsl_liodn.h>
arch/powerpc/cpu/mpc85xx/p4080_serdes.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2009-2010 Freescale Semiconductor, Inc. */ -#include <common.h> #include <asm/io.h> #include <asm/fsl_serdes.h> #include <asm/processor.h>
arch/powerpc/cpu/mpc85xx/p5040_ids.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2010-2011 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <config.h> #include <asm/fsl_portals.h> #include <asm/fsl_liodn.h>
arch/powerpc/cpu/mpc85xx/p5040_serdes.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2009-2011 Freescale Semiconductor, Inc. */ -#include <common.h> #include <asm/fsl_serdes.h> #include <asm/processor.h> #include <asm/io.h>
arch/powerpc/cpu/mpc85xx/portals.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2008-2011 Freescale Semiconductor, Inc. */ -#include <common.h> #include <linux/libfdt.h> #include <fdt_support.h>
arch/powerpc/cpu/mpc85xx/qe_io.c +1 -1
@@ -6,7 +6,7 @@* based on source code of Shlomi Gridish */ -#include <common.h> +#include <config.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/immap_85xx.h>
arch/powerpc/cpu/mpc85xx/speed.c +1 -1
@@ -9,7 +9,7 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> +#include <asm/u-boot.h> #include <cpu_func.h> #include <clock_legacy.h> #include <ppc_asm.tmpl>
arch/powerpc/cpu/mpc85xx/spl_minimal.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2009 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <asm/u-boot.h> #include <asm/processor.h> #include <asm/global_data.h> #include <fsl_ifc.h>
arch/powerpc/cpu/mpc85xx/t1024_ids.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2014 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <asm/u-boot.h> #include <asm/fsl_portals.h> #include <asm/fsl_liodn.h>
arch/powerpc/cpu/mpc85xx/t1024_serdes.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2014 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <asm/u-boot.h> #include <asm/fsl_serdes.h> #include <asm/processor.h> #include <asm/io.h>
arch/powerpc/cpu/mpc85xx/t1040_ids.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2012 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <asm/u-boot.h> #include <asm/fsl_portals.h> #include <asm/fsl_liodn.h>
arch/powerpc/cpu/mpc85xx/t1040_serdes.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2012 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <asm/u-boot.h> #include <asm/fsl_serdes.h> #include <asm/processor.h> #include <asm/io.h>
arch/powerpc/cpu/mpc85xx/t2080_ids.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2013 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <asm/u-boot.h> #include <asm/fsl_portals.h> #include <asm/fsl_liodn.h>
arch/powerpc/cpu/mpc85xx/t2080_serdes.c +1 -1
@@ -5,7 +5,7 @@* Shengzhou Liu <[email protected]> */ -#include <common.h> +#include <asm/u-boot.h> #include <asm/fsl_serdes.h> #include <asm/processor.h> #include "fsl_corenet2_serdes.h"
arch/powerpc/cpu/mpc85xx/t4240_ids.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2012 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <asm/u-boot.h> #include <asm/fsl_portals.h> #include <asm/fsl_liodn.h>
arch/powerpc/cpu/mpc85xx/t4240_serdes.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2012 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <asm/u-boot.h> #include <asm/fsl_serdes.h> #include <asm/processor.h> #include <asm/io.h>
arch/powerpc/cpu/mpc85xx/tlb.c +1 -1
@@ -6,7 +6,7 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> +#include <config.h> #include <display_options.h> #include <init.h> #include <asm/bitops.h>
arch/powerpc/cpu/mpc85xx/traps.c +1 -1
@@ -19,7 +19,7 @@* This file handles the architecture-dependent parts of hardware exceptions */ -#include <common.h> +#include <asm/ppc.h> #include <asm/global_data.h> #include <asm/ptrace.h> #include <command.h>
arch/powerpc/cpu/mpc8xxx/cpu.c +0 -1
@@ -8,7 +8,6 @@*/ #include <config.h> -#include <common.h> #include <command.h> #include <cpu_func.h> #include <init.h>
arch/powerpc/cpu/mpc8xxx/fdt.c +0 -1
@@ -8,7 +8,6 @@* cpu specific common code for 85xx/86xx processors. */ -#include <common.h> #include <cpu_func.h> #include <linux/libfdt.h> #include <fdt_support.h>
arch/powerpc/cpu/mpc8xxx/fsl_lbc.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2010-2011 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <asm/u-boot.h> #include <hang.h> #include <init.h> #include <asm/fsl_lbc.h>
arch/powerpc/cpu/mpc8xxx/fsl_pamu.c +1 -1
@@ -5,7 +5,7 @@* Copyright 2012-2016 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <asm/u-boot.h> #include <log.h> #include <linux/bitops.h> #include <linux/log2.h>
arch/powerpc/cpu/mpc8xxx/law.c +1 -1
@@ -6,7 +6,7 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> +#include <asm/u-boot.h> #include <display_options.h> #include <asm/bitops.h> #include <asm/global_data.h>
arch/powerpc/cpu/mpc8xxx/pamu_table.c +1 -1
@@ -3,7 +3,7 @@* Copyright 2012-2016 Freescale Semiconductor, Inc. */ -#include <common.h> +#include <asm/u-boot.h> #include <log.h> #include <asm/fsl_pamu.h> #include <asm/global_data.h>
arch/powerpc/cpu/mpc8xxx/srio.c +1 -2
@@ -3,8 +3,7 @@* Copyright 2011 Freescale Semiconductor, Inc. */ -#include <common.h> -#include <config.h> +#include <asm/u-boot.h> #include <log.h> #include <time.h> #include <asm/fsl_law.h>
arch/powerpc/include/asm/cache.h +2 -0
@@ -39,6 +39,8 @@#endif #if defined(__KERNEL__) && !defined(__ASSEMBLY__) +#include <linux/types.h> +extern void flush_dcache_range (unsigned long start,unsigned long stop);extern void clean_dcache_range (unsigned long start,unsigned long stop);extern void invalidate_dcache_range (unsigned long start,unsigned long stop);
arch/powerpc/include/asm/fsl_dma.h +1 -1
@@ -8,7 +8,7 @@ #ifndef _ASM_FSL_DMA_H_ #define _ASM_FSL_DMA_H_ -#include <asm/types.h> +#include <linux/types.h> #ifdef CONFIG_MPC83xx typedef struct fsl_dma {
arch/powerpc/include/asm/fsl_serdes.h +1 -0
@@ -7,6 +7,7 @@#define __FSL_SERDES_H#include <config.h> +#include <linux/types.h> enum srds_prtcl {/*
arch/powerpc/include/asm/immap_8xx.h +2 -0
@@ -12,6 +12,8 @@ #ifndef __IMMAP_8XX__ #define __IMMAP_8XX__ +#include <linux/types.h> + /* System configuration registers. */ typedef struct sys_conf {
arch/powerpc/lib/bdinfo.c +1 -1
@@ -6,9 +6,9 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <init.h> #include <asm/global_data.h> +#include <asm/u-boot.h> DECLARE_GLOBAL_DATA_PTR ;
arch/powerpc/lib/bootm.c +1 -1
@@ -7,7 +7,7 @@*/ -#include <common.h> +#include <config.h> #include <bootm.h> #include <bootstage.h> #include <cpu_func.h>
arch/powerpc/lib/cache.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <cpu_func.h> #include <asm/cache.h> #include <watchdog.h>
arch/powerpc/lib/extable.c +0 -1
@@ -5,7 +5,6 @@* (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <log.h> /*
arch/powerpc/lib/interrupts.c +1 -1
@@ -7,7 +7,7 @@* Gleb Natapov <[email protected]> */ -#include <common.h> +#include <asm/ppc.h> #include <irq_func.h> #include <asm/processor.h> #include <watchdog.h>
arch/powerpc/lib/kgdb.c +0 -1
@@ -1,4 +1,3 @@ -#include <common.h> #include <command.h> #include <kgdb.h> #include <asm/ptrace.h>
arch/powerpc/lib/spl.c +0 -1
@@ -2,7 +2,6 @@/* * Copyright 2012 Stefan Roese <[email protected]> */ -#include <common.h> #include <config.h> #include <log.h> #include <spl.h>
arch/powerpc/lib/stack.c +0 -1
@@ -10,7 +10,6 @@* Sysgo Real-Time Solutions, GmbH <www.elinos.com> * Marius Groeger <[email protected]> */ -#include <common.h> #include <init.h> #include <asm/global_data.h> #include <asm/mp.h>
arch/powerpc/lib/time.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <init.h> #include <time.h> #include <asm/io.h>
include/fsl_immap.h +3 -0
@@ -7,6 +7,9 @@#ifndef __FSL_IMMAP_H#define __FSL_IMMAP_H + +#include <linux/types.h> +/* * DDR memory controller registers * This structure works for mpc83xx (DDR2 and DDR3), mpc85xx, mpc86xx.
Signature · 1 line
2.34.1
PATCH 10/18 test: Remove <common.h> and add needed includes
In reply to Tom RiniRemove <common.h> from all "test/" files and when needed add missing include files directly.
--- include/adc.h | 2 ++ include/audio_codec.h | 2 ++ include/axi.h | 2 ++ include/bootmeth.h | 2 ++ include/bootstd.h | 2 ++ include/cedit.h | 3 +++ include/dm/test.h | 2 ++ test/bloblist.c | 1 - test/boot/bootdev.c | 1 - test/boot/bootflow.c | 1 - test/boot/bootmeth.c | 1 - test/boot/bootstd_common.c | 1 - test/boot/cedit.c | 1 - test/boot/expo.c | 1 - test/boot/image.c | 1 - test/boot/measurement.c | 1 - test/boot/vbe_fixup.c | 1 - test/boot/vbe_simple.c | 1 - test/bootm.c | 1 - test/cmd/addrmap.c | 1 - test/cmd/armffa.c | 1 - test/cmd/bdinfo.c | 1 - test/cmd/exit.c | 1 - test/cmd/fdt.c | 1 - test/cmd/font.c | 1 - test/cmd/history.c | 1 - test/cmd/loadm.c | 1 - test/cmd/mem.c | 1 - test/cmd/mem_search.c | 1 - test/cmd/pci_mps.c | 1 - test/cmd/pinmux.c | 1 - test/cmd/rw.c | 1 - test/cmd/seama.c | 1 - test/cmd/setexpr.c | 1 - test/cmd/temperature.c | 1 - test/cmd/test_echo.c | 1 - test/cmd/test_pause.c | 1 - test/cmd/wget.c | 1 - test/cmd_ut.c | 2 +- test/command_ut.c | 1 - test/common/cmd_ut_common.c | 1 - test/common/cread.c | 2 +- test/common/cyclic.c | 1 - test/common/event.c | 1 - test/common/test_autoboot.c | 1 - test/compression.c | 1 - test/dm/acpi.c | 1 - test/dm/acpi_dp.c | 1 - test/dm/acpigen.c | 1 - test/dm/adc.c | 1 - test/dm/audio.c | 1 - test/dm/axi.c | 1 - test/dm/blk.c | 1 - test/dm/blkmap.c | 1 - test/dm/bootcount.c | 1 - test/dm/bus.c | 1 - test/dm/button.c | 1 - test/dm/cache.c | 1 - test/dm/clk.c | 1 - test/dm/clk_ccf.c | 1 - test/dm/core.c | 1 - test/dm/cpu.c | 1 - test/dm/cros_ec.c | 1 - test/dm/cros_ec_pwm.c | 1 - test/dm/devres.c | 1 - test/dm/dma.c | 1 - test/dm/dsi_host.c | 1 - test/dm/efi_media.c | 1 - test/dm/eth.c | 1 - test/dm/fastboot.c | 1 - test/dm/fdtdec.c | 1 - test/dm/ffa.c | 1 - test/dm/firmware.c | 1 - test/dm/fwu_mdata.c | 1 - test/dm/gpio.c | 1 - test/dm/host.c | 1 - test/dm/hwspinlock.c | 1 - test/dm/i2c.c | 1 - test/dm/i2s.c | 1 - test/dm/iommu.c | 1 - test/dm/irq.c | 1 - test/dm/k210_pll.c | 1 - test/dm/led.c | 1 - test/dm/mailbox.c | 1 - test/dm/mdio.c | 1 - test/dm/mdio_mux.c | 1 - test/dm/misc.c | 1 - test/dm/mmc.c | 1 - test/dm/mux-cmd.c | 2 +- test/dm/mux-emul.c | 1 - test/dm/mux-mmio.c | 1 - test/dm/nop.c | 1 - test/dm/nvmxip.c | 1 - test/dm/of_extra.c | 1 - test/dm/of_platdata.c | 1 - test/dm/ofnode.c | 1 - test/dm/ofread.c | 1 - test/dm/osd.c | 1 - test/dm/p2sb.c | 1 - test/dm/panel.c | 1 - test/dm/part.c | 1 - test/dm/pch.c | 1 - test/dm/pci.c | 1 - test/dm/pci_ep.c | 1 - test/dm/phy.c | 1 - test/dm/phys2bus.c | 1 - test/dm/pinmux.c | 1 - test/dm/pmc.c | 1 - test/dm/pmic.c | 1 - test/dm/power-domain.c | 1 - test/dm/pwm.c | 1 - test/dm/qfw.c | 1 - test/dm/ram.c | 1 - test/dm/read.c | 1 - test/dm/reboot-mode.c | 1 - test/dm/regmap.c | 2 +- test/dm/regulator.c | 1 - test/dm/remoteproc.c | 3 ++- test/dm/reset.c | 1 - test/dm/rkmtd.c | 1 - test/dm/rng.c | 1 - test/dm/rtc.c | 1 - test/dm/scmi.c | 1 - test/dm/scsi.c | 1 - test/dm/serial.c | 1 - test/dm/sf.c | 1 - test/dm/simple-bus.c | 1 - test/dm/simple-pm-bus.c | 1 - test/dm/sm.c | 1 - test/dm/smem.c | 1 - test/dm/soc.c | 1 - test/dm/sound.c | 1 - test/dm/spi.c | 1 - test/dm/spmi.c | 1 - test/dm/syscon-reset.c | 1 - test/dm/syscon.c | 1 - test/dm/sysinfo-gpio.c | 1 - test/dm/sysinfo.c | 1 - test/dm/sysreset.c | 1 - test/dm/tag.c | 1 - test/dm/tee.c | 1 - test/dm/test-dm.c | 1 - test/dm/test-driver.c | 1 - test/dm/test-fdt.c | 1 - test/dm/test-uclass.c | 1 - test/dm/timer.c | 1 - test/dm/tpm.c | 1 - test/dm/usb.c | 1 - test/dm/video.c | 1 - test/dm/virtio.c | 1 - test/dm/virtio_device.c | 1 - test/dm/virtio_rng.c | 1 - test/dm/wdt.c | 2 +- test/env/attr.c | 1 - test/env/cmd_ut_env.c | 1 - test/env/fdt.c | 1 - test/env/hashtable.c | 2 +- test/fuzz/cmd_fuzz.c | 1 - test/fuzz/virtio.c | 1 - test/image/spl_load.c | 1 - test/image/spl_load_fs.c | 1 - test/image/spl_load_net.c | 1 - test/image/spl_load_nor.c | 1 - test/image/spl_load_os.c | 1 - test/image/spl_load_spi.c | 1 - test/lib/abuf.c | 1 - test/lib/asn1.c | 1 - test/lib/cmd_ut_lib.c | 1 - test/lib/efi_device_path.c | 1 - test/lib/efi_image_region.c | 1 - test/lib/getopt.c | 1 - test/lib/hexdump.c | 1 - test/lib/kconfig.c | 1 - test/lib/kconfig_spl.c | 1 - test/lib/lmb.c | 1 - test/lib/longjmp.c | 1 - test/lib/rsa.c | 1 - test/lib/sscanf.c | 1 - test/lib/string.c | 1 - test/lib/strlcat.c | 1 - test/lib/test_aes.c | 1 - test/lib/test_crypt.c | 1 - test/lib/test_errno_str.c | 1 - test/lib/test_print.c | 1 - test/lib/uuid.c | 1 - test/log/cont_test.c | 1 - test/log/log_filter.c | 1 - test/log/log_test.c | 1 - test/log/log_ut.c | 1 - test/log/nolog_ndebug.c | 1 - test/log/nolog_test.c | 1 - test/log/pr_cont_test.c | 1 - test/log/syslog_test.c | 1 - test/log/syslog_test_ndebug.c | 1 - test/optee/cmd_ut_optee.c | 1 - test/overlay/cmd_ut_overlay.c | 1 - test/print_ut.c | 1 - test/stdint/int-types.c | 2 +- test/str_ut.c | 1 - test/test-main.c | 1 - test/time_ut.c | 1 - test/unicode_ut.c | 1 - test/ut.c | 1 - 203 files changed, 24 insertions(+), 196 deletions(-)
include/adc.h +2 -0
@@ -7,6 +7,8 @@#ifndef _ADC_H_#define _ADC_H_ +#include <stdbool.h> +/* ADC_CHANNEL() - ADC channel bit mask, to select only required channels */ #define ADC_CHANNEL (x) (1 << x)
include/audio_codec.h +2 -0
@@ -7,6 +7,8 @@#ifndef __AUDIO_CODEC_H__#define __AUDIO_CODEC_H__ +#include <linux/types.h> +struct udevice ;/*
include/axi.h +2 -0
@@ -7,6 +7,8 @@#ifndef _AXI_H_#define _AXI_H_ +#include <linux/types.h> +struct udevice ;/**
include/bootmeth.h +2 -0
@@ -7,6 +7,8 @@#ifndef __bootmeth_h#define __bootmeth_h +#include <linux/bitops.h> +struct blk_desc ;struct bootflow ;struct bootflow_iter ;
include/bootstd.h +2 -0
@@ -10,6 +10,8 @@#define __bootstd_h#include <dm/ofnode_decl.h> +#include <linux/list.h> +#include <linux/types.h> struct udevice ;
include/cedit.h +3 -0
@@ -7,12 +7,15 @@#ifndef __CEDIT_H#define __CEDIT_H +#include <stdbool.h> #include <dm/ofnode_decl.h> +#include <linux/types.h> struct abuf ;struct expo ;struct scene ;struct video_priv ; +struct udevice ;enum { /* size increment for writing FDT */
include/dm/test.h +2 -0
@@ -6,6 +6,8 @@#ifndef __DM_TEST_H#define __DM_TEST_H +#include <linux/types.h> +struct udevice ;/**
test/bloblist.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2018, Google Inc. All rights reserved. */ -#include <common.h> #include <bloblist.h> #include <log.h> #include <mapmem.h>
test/boot/bootdev.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <bootstd.h> #include <dm.h> #include <bootdev.h>
test/boot/bootflow.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <bootdev.h> #include <bootflow.h> #include <bootmeth.h>
test/boot/bootmeth.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <bootmeth.h> #include <bootstd.h> #include <dm.h>
test/boot/bootstd_common.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <bootdev.h> #include <bootstd.h> #include <dm.h>
test/boot/cedit.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <cedit.h> #include <env.h> #include <expo.h>
test/boot/expo.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <expo.h>
test/boot/image.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <image.h> #include <test/suites.h> #include <test/ut.h>
test/boot/measurement.c +0 -1
@@ -6,7 +6,6 @@* Written by Eddie James <[email protected]> */ -#include <common.h> #include <bootm.h> #include <malloc.h> #include <test/suites.h>
test/boot/vbe_fixup.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <dm/ofnode.h> #include <linux/libfdt.h> #include <test/test.h>
test/boot/vbe_simple.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <bootmeth.h> #include <dm.h> #include <image.h>
test/bootm.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2020 Google LLC */ -#include <common.h> #include <bootm.h> #include <asm/global_data.h> #include <test/suites.h>
test/cmd/addrmap.c +0 -1
@@ -5,7 +5,6 @@* Copyright (C) 2021, Bin Meng <[email protected]> */ -#include <common.h> #include <console.h> #include <test/suites.h> #include <test/ut.h>
test/cmd/armffa.c +0 -1
@@ -8,7 +8,6 @@* Abdellatif El Khlifi <[email protected]> */ -#include <common.h> #include <string.h> #include <asm/sandbox_arm_ffa.h> #include <dm/test.h>
test/cmd/bdinfo.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2023 Marek Vasut <[email protected]> */ -#include <common.h> #include <console.h> #include <mapmem.h> #include <asm/global_data.h>
test/cmd/exit.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2022 Marek Vasut <[email protected]> */ -#include <common.h> #include <console.h> #include <mapmem.h> #include <asm/global_data.h>
test/cmd/fdt.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2022 Google LLC */ -#include <common.h> #include <console.h> #include <fdt_support.h> #include <mapmem.h>
test/cmd/font.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2022 Google LLC */ -#include <common.h> #include <console.h> #include <dm.h> #include <video_console.h>
test/cmd/history.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <cli.h> #include <command.h> #include <test/lib.h>
test/cmd/loadm.c +0 -1
@@ -9,7 +9,6 @@* Rui Miguel Silva <[email protected]> */ -#include <common.h> #include <console.h> #include <mapmem.h> #include <asm/global_data.h>
test/cmd/mem.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2020 Google LLC */ -#include <common.h> #include <command.h> #include <test/suites.h> #include <test/test.h>
test/cmd/mem_search.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <console.h> #include <mapmem.h> #include <dm/test.h>
test/cmd/pci_mps.c +0 -1
@@ -7,7 +7,6 @@* Written by Stephen Carlson <[email protected]> */ -#include <common.h> #include <console.h> #include <test/suites.h> #include <test/ut.h>
test/cmd/pinmux.c +0 -1
@@ -5,7 +5,6 @@* Copyright (C) 2021, STMicroelectronics - All Rights Reserved */ -#include <common.h> #include <command.h> #include <dm.h> #include <dm/test.h>
test/cmd/rw.c +0 -1
@@ -3,7 +3,6 @@* Tests for read and write commands */ -#include <common.h> #include <dm/test.h> #include <mapmem.h> #include <part.h>
test/cmd/seama.c +0 -1
@@ -5,7 +5,6 @@* Copyright (C) 2021 Linus Walleij <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <test/suites.h>
test/cmd/setexpr.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <console.h> #include <mapmem.h> #include <dm/test.h>
test/cmd/temperature.c +0 -1
@@ -5,7 +5,6 @@* Copyright (C) 2022 Sartura Ltd. */ -#include <common.h> #include <command.h> #include <dm.h> #include <dm/test.h>
test/cmd/test_echo.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2020, Heinrich Schuchadt <[email protected]> */ -#include <common.h> #include <command.h> #include <asm/global_data.h> #include <display_options.h>
test/cmd/test_pause.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2022, Samuel Dionne-Riel <[email protected]> */ -#include <common.h> #include <asm/global_data.h> #include <test/lib.h> #include <test/ut.h>
test/cmd/wget.c +0 -1
@@ -6,7 +6,6 @@* Ying-Chun Liu (PaulLiu) <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <env.h>
test/cmd_ut.c +1 -1
@@ -4,9 +4,9 @@* Joe Hershberger, National Instruments, [email protected] */ -#include <common.h> #include <command.h> #include <console.h> +#include <vsprintf.h> #include <test/suites.h> #include <test/test.h> #include <test/ut.h>
test/command_ut.c +0 -1
@@ -5,7 +5,6 @@#define DEBUG -#include <common.h> #include <command.h> #include <env.h> #include <log.h>
test/common/cmd_ut_common.c +0 -1
@@ -6,7 +6,6 @@* Unit tests for common functions */ -#include <common.h> #include <command.h> #include <test/common.h> #include <test/suites.h>
test/common/cread.c +1 -1
@@ -3,8 +3,8 @@* Copyright 2023 Google LLC */ -#include <common.h> #include <cli.h> +#include <time.h> #include <test/common.h> #include <test/test.h> #include <test/ut.h>
test/common/cyclic.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2022 Stefan Roese <[email protected]> */ -#include <common.h> #include <cyclic.h> #include <dm.h> #include <test/common.h>
test/common/event.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <dm.h> #include <event.h> #include <test/common.h>
test/common/test_autoboot.c +0 -1
@@ -6,7 +6,6 @@*/ #include <autoboot.h> -#include <common.h> #include <test/common.h> #include <test/test.h> #include <test/ut.h>
test/compression.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2013, The Chromium Authors */ -#include <common.h> #include <abuf.h> #include <bootm.h> #include <command.h>
test/dm/acpi.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <console.h> #include <dm.h> #include <malloc.h>
test/dm/acpi_dp.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <dm.h> #include <uuid.h> #include <acpi/acpigen.h>
test/dm/acpigen.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <dm.h> #include <irq.h> #include <malloc.h>
test/dm/adc.c +0 -1
@@ -6,7 +6,6 @@* Przemyslaw Marczak <[email protected]> */ -#include <common.h> #include <adc.h> #include <dm.h> #include <dm/root.h>
test/dm/audio.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <audio_codec.h> #include <dm.h> #include <dm/test.h>
test/dm/axi.c +0 -1
@@ -4,7 +4,6 @@* Mario Six, Guntermann & Drunck GmbH, [email protected] */ -#include <common.h> #include <axi.h> #include <dm.h> #include <log.h>
test/dm/blk.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015 Google, Inc */ -#include <common.h> #include <blk.h> #include <dm.h> #include <part.h>
test/dm/blkmap.c +0 -1
@@ -4,7 +4,6 @@* Author: Tobias Waldekranz <[email protected]> */ -#include <common.h> #include <blk.h> #include <blkmap.h> #include <dm.h>
test/dm/bootcount.c +0 -1
@@ -3,7 +3,6 @@* (C) 2018 Theobroma Systems Design und Consulting GmbH */ -#include <common.h> #include <dm.h> #include <bootcount.h> #include <log.h>
test/dm/bus.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2014 Google, Inc */ -#include <common.h> #ifdef CONFIG_SANDBOX #include <log.h> #include <os.h>
test/dm/button.c +0 -1
@@ -5,7 +5,6 @@* Based on led.c */ -#include <common.h> #include <dm.h> #include <adc.h> #include <button.h>
test/dm/cache.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2019 Intel Corporation <www.intel.com> */ -#include <common.h> #include <dm.h> #include <dm/test.h>
test/dm/clk.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015 Google, Inc */ -#include <common.h> #include <clk.h> #include <dm.h> #include <log.h>
test/dm/clk_ccf.c +0 -1
@@ -4,7 +4,6 @@* Lukasz Majewski, DENX Software Engineering, [email protected] */ -#include <common.h> #include <clk.h> #include <dm.h> #include <asm/clk.h>
test/dm/core.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2013 Google, Inc */ -#include <common.h> #include <errno.h> #include <dm.h> #include <fdtdec.h>
test/dm/cpu.c +0 -1
@@ -4,7 +4,6 @@* Mario Six, Guntermann & Drunck GmbH, [email protected] */ -#include <common.h> #include <dm.h> #include <log.h> #include <dm/test.h>
test/dm/cros_ec.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2021 Google LLC */ -#include <common.h> #include <cros_ec.h> #include <dm.h> #include <asm/test.h>
test/dm/cros_ec_pwm.c +0 -1
@@ -1,6 +1,5 @@// SPDX-License-Identifier: GPL-2.0+ -#include <common.h> #include <cros_ec.h> #include <dm.h> #include <pwm.h>
test/dm/devres.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2019 Google LLC */ -#include <common.h> #include <errno.h> #include <dm.h> #include <log.h>
test/dm/dma.c +0 -1
@@ -6,7 +6,6 @@* Grygorii Strashko <[email protected]> */ -#include <common.h> #include <dm.h> #include <malloc.h> #include <dm/test.h>
test/dm/dsi_host.c +0 -1
@@ -4,7 +4,6 @@* Author(s): Yannick Fertre <[email protected]> for STMicroelectronics. */ -#include <common.h> #include <dm.h> #include <dsi_host.h> #include <asm/state.h>
test/dm/efi_media.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2021 Google LLC */ -#include <common.h> #include <dm.h> #include <asm/test.h> #include <dm/test.h>
test/dm/eth.c +0 -1
@@ -6,7 +6,6 @@* Joe Hershberger <[email protected]> */ -#include <common.h> #include <dm.h> #include <env.h> #include <fdtdec.h>
test/dm/fastboot.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015 Google, Inc */ -#include <common.h> #include <dm.h> #include <fastboot.h> #include <fb_mmc.h>
test/dm/fdtdec.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2020 NXP */ -#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/of_extra.h>
test/dm/ffa.c +0 -1
@@ -8,7 +8,6 @@* Abdellatif El Khlifi <[email protected]> */ -#include <common.h> #include <console.h> #include <dm.h> #include <asm/sandbox_arm_ffa.h>
test/dm/firmware.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2018 Xilinx, Inc. */ -#include <common.h> #include <dm.h> #include <syscon.h> #include <asm/test.h>
test/dm/fwu_mdata.c +0 -1
@@ -5,7 +5,6 @@*/ #include <blk.h> -#include <common.h> #include <dm.h> #include <fwu.h> #include <fwu_mdata.h>
test/dm/gpio.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2013 Google, Inc */ -#include <common.h> #include <fdtdec.h> #include <dm.h> #include <log.h>
test/dm/host.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <blk.h> #include <dm.h> #include <fs.h>
test/dm/hwspinlock.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2018, STMicroelectronics - All Rights Reserved */ -#include <common.h> #include <dm.h> #include <hwspinlock.h> #include <asm/state.h>
test/dm/i2c.c +0 -1
@@ -5,7 +5,6 @@* Note: Test coverage does not include 10-bit addressing */ -#include <common.h> #include <dm.h> #include <fdtdec.h> #include <i2c.h>
test/dm/i2s.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <dm.h> #include <i2s.h> #include <asm/test.h>
test/dm/iommu.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2021 Mark Kettenis <[email protected]> */ -#include <common.h> #include <dm.h> #include <dm/test.h> #include <dm/uclass-internal.h>
test/dm/irq.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2019 Google LLC */ -#include <common.h> #include <dm.h> #include <irq.h> #include <acpi/acpi_device.h>
test/dm/k210_pll.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2020 Sean Anderson <[email protected]> */ -#include <common.h> /* For DIV_ROUND_DOWN_ULL, defined in linux/kernel.h */ #include <div64.h> #include <dm/test.h>
test/dm/led.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015 Google, Inc */ -#include <common.h> #include <dm.h> #include <led.h> #include <asm/gpio.h>
test/dm/mailbox.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2016, NVIDIA CORPORATION. */ -#include <common.h> #include <dm.h> #include <malloc.h> #include <dm/test.h>
test/dm/mdio.c +0 -1
@@ -4,7 +4,6 @@* Alex Marginean, NXP */ -#include <common.h> #include <dm.h> #include <log.h> #include <miiphy.h>
test/dm/mdio_mux.c +0 -1
@@ -4,7 +4,6 @@* Alex Marginean, NXP */ -#include <common.h> #include <dm.h> #include <miiphy.h> #include <misc.h>
test/dm/misc.c +0 -1
@@ -4,7 +4,6 @@* Mario Six, Guntermann & Drunck GmbH, [email protected] */ -#include <common.h> #include <dm.h> #include <dm/test.h> #include <misc.h>
test/dm/mmc.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015 Google, Inc */ -#include <common.h> #include <dm.h> #include <mmc.h> #include <part.h>
test/dm/mux-cmd.c +1 -1
@@ -3,7 +3,6 @@* Copyright (C) 2020 Texas Instruments Inc. * Pratyush Yadav <[email protected]> */ -#include <common.h> #include <dm.h> #include <mux.h> #include <mux-internal.h>
@@ -13,6 +12,7 @@#include <test/ut.h> #include <console.h> #include <rand.h> +#include <time.h> #define BUF_SIZE 256
test/dm/mux-emul.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ * Pratyush Yadav <[email protected]> */ -#include <common.h> #include <dm.h> #include <mux.h> #include <mux-internal.h>
test/dm/mux-mmio.c +0 -1
@@ -4,7 +4,6 @@* Jean-Jacques Hiblot <[email protected]> */ -#include <common.h> #include <dm.h> #include <mux.h> #include <regmap.h>
test/dm/nop.c +0 -1
@@ -6,7 +6,6 @@* Jean-Jacques Hiblot <[email protected]> */ -#include <common.h> #include <dm.h> #include <dm/ofnode.h> #include <dm/lists.h>
test/dm/nvmxip.c +0 -1
@@ -8,7 +8,6 @@* Abdellatif El Khlifi <[email protected]> */ -#include <common.h> #include <blk.h> #include <console.h> #include <dm.h>
test/dm/of_extra.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <dm.h> #include <dm/of_extra.h> #include <dm/test.h>
test/dm/of_platdata.c +0 -1
@@ -1,6 +1,5 @@// SPDX-License-Identifier: GPL-2.0+ -#include <common.h> #include <clk.h> #include <dm.h> #include <dt-structs.h>
test/dm/ofnode.c +0 -1
@@ -16,7 +16,6 @@* behaviour of each ofnode function, since that is done by the normal ones. */ -#include <common.h> #include <abuf.h> #include <dm.h> #include <log.h>
test/dm/ofread.c +0 -1
@@ -1,6 +1,5 @@// SPDX-License-Identifier: GPL-2.0+ -#include <common.h> #include <dm.h> #include <dm/test.h> #include <test/ut.h>
test/dm/osd.c +0 -1
@@ -4,7 +4,6 @@* Mario Six, Guntermann & Drunck GmbH, [email protected] */ -#include <common.h> #include <display_options.h> #include <dm.h> #include <video_osd.h>
test/dm/p2sb.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2019 Google LLC */ -#include <common.h> #include <dm.h> #include <p2sb.h> #include <asm/test.h>
test/dm/panel.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <backlight.h> #include <dm.h> #include <panel.h>
test/dm/part.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2020 Sean Anderson <[email protected]> */ -#include <common.h> #include <dm.h> #include <mmc.h> #include <part.h>
test/dm/pch.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2018 Google LLC */ -#include <common.h> #include <dm.h> #include <pch.h> #include <asm/test.h>
test/dm/pci.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015 Google, Inc */ -#include <common.h> #include <dm.h> #include <asm/io.h> #include <asm/test.h>
test/dm/pci_ep.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2019 Ramon Fried */ -#include <common.h> #include <dm.h> #include <hexdump.h> #include <pci_ep.h>
test/dm/phy.c +0 -1
@@ -4,7 +4,6 @@* Written by Jean-Jacques Hiblot <[email protected]> */ -#include <common.h> #include <dm.h> #include <generic-phy.h> #include <log.h>
test/dm/phys2bus.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2020 Nicolas Saenz Julienne <[email protected]> */ -#include <common.h> #include <dm.h> #include <mapmem.h> #include <phys2bus.h>
test/dm/pinmux.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2020 Sean Anderson <[email protected]> */ -#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dm/test.h>
test/dm/pmc.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2019 Google LLC */ -#include <common.h> #include <dm.h> #include <power/acpi_pmc.h> #include <dm/test.h>
test/dm/pmic.c +0 -1
@@ -6,7 +6,6 @@* Przemyslaw Marczak <[email protected]> */ -#include <common.h> #include <errno.h> #include <dm.h> #include <fdtdec.h>
test/dm/power-domain.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2016, NVIDIA CORPORATION. */ -#include <common.h> #include <dm.h> #include <malloc.h> #include <dm/test.h>
test/dm/pwm.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2017 Google, Inc */ -#include <common.h> #include <dm.h> #include <pwm.h> #include <asm/test.h>
test/dm/qfw.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2021 Asherah Connor <[email protected]> */ -#include <common.h> #include <qfw.h> #include <dm.h> #include <asm/test.h>
test/dm/ram.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015 Google, Inc */ -#include <common.h> #include <dm.h> #include <ram.h> #include <asm/global_data.h>
test/dm/read.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2020 Nicolas Saenz Julienne <[email protected]> */ -#include <common.h> #include <dm.h> #include <dm/device.h> #include <dm/ofnode.h>
test/dm/reboot-mode.c +0 -1
@@ -3,7 +3,6 @@* (C) 2018 Theobroma Systems Design und Consulting GmbH */ -#include <common.h> #include <dm.h> #include <reboot-mode/reboot-mode.h> #include <env.h>
test/dm/regmap.c +1 -1
@@ -3,13 +3,13 @@* Copyright (C) 2015 Google, Inc */ -#include <common.h> #include <dm.h> #include <log.h> #include <mapmem.h> #include <regmap.h> #include <syscon.h> #include <rand.h> +#include <time.h> #include <asm/test.h> #include <dm/test.h> #include <dm/devres.h>
test/dm/regulator.c +0 -1
@@ -6,7 +6,6 @@* Przemyslaw Marczak <[email protected]> */ -#include <common.h> #include <errno.h> #include <dm.h> #include <fdtdec.h>
test/dm/remoteproc.c +2 -1
@@ -3,7 +3,8 @@* (C) Copyright 2015 * Texas Instruments Incorporated - https://www.ti.com/ */ -#include <common.h> + +#include <config.h> #include <dm.h> #include <elf.h> #include <errno.h>
test/dm/reset.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2016, NVIDIA CORPORATION. */ -#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <log.h>
test/dm/rkmtd.c +0 -1
@@ -8,7 +8,6 @@* Copyright (C) 2023 Johan Jonker <[email protected]> */ -#include <common.h> #include <blk.h> #include <dm.h> #include <fs.h>
test/dm/rng.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2019, Linaro Limited */ -#include <common.h> #include <dm.h> #include <log.h> #include <rng.h>
test/dm/rtc.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <console.h> #include <dm.h> #include <i2c.h>
test/dm/scmi.c +0 -1
@@ -12,7 +12,6 @@* unknown SCMI protocol ID. */ -#include <common.h> #include <clk.h> #include <dm.h> #include <reset.h>
test/dm/scsi.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015 Google, Inc */ -#include <common.h> #include <dm.h> #include <part.h> #include <scsi.h>
test/dm/serial.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2018, STMicroelectronics */ -#include <common.h> #include <log.h> #include <serial.h> #include <dm.h>
test/dm/sf.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2013 Google, Inc */ -#include <common.h> #include <command.h> #include <dm.h> #include <fdtdec.h>
test/dm/simple-bus.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2021, Bin Meng <[email protected]> */ -#include <common.h> #include <dm.h> #include <dm/test.h> #include <dm/simple_bus.h>
test/dm/simple-pm-bus.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2020 Sean Anderson <[email protected]> */ -#include <common.h> #include <dm.h> #include <dm/test.h> #include <dm/device-internal.h>
test/dm/sm.c +0 -1
@@ -5,7 +5,6 @@* Author: Alexey Romanov <[email protected]> */ -#include <common.h> #include <dm.h> #include <sm.h> #include <sandbox-sm.h>
test/dm/smem.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2018 Ramon Fried <[email protected]> */ -#include <common.h> #include <dm.h> #include <smem.h> #include <dm/test.h>
test/dm/soc.c +0 -1
@@ -6,7 +6,6 @@* Dave Gerlach <[email protected]> */ -#include <common.h> #include <dm.h> #include <dm/test.h> #include <dm/uclass-internal.h>
test/dm/sound.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <dm.h> #include <sound.h> #include <dm/test.h>
test/dm/spi.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2013 Google, Inc */ -#include <common.h> #include <dm.h> #include <fdtdec.h> #include <spi.h>
test/dm/spmi.c +0 -1
@@ -3,7 +3,6 @@* (C) Copyright 2015 Mateusz Kulikowski <[email protected]> */ -#include <common.h> #include <fdtdec.h> #include <dm.h> #include <malloc.h>
test/dm/syscon-reset.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2020 Sean Anderson <[email protected]> */ -#include <common.h> #include <dm.h> #include <dm/test.h> #include <regmap.h>
test/dm/syscon.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015 Google, Inc */ -#include <common.h> #include <dm.h> #include <log.h> #include <syscon.h>
test/dm/sysinfo-gpio.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2021 Sean Anderson <[email protected]> */ -#include <common.h> #include <dm.h> #include <log.h> #include <sysinfo.h>
test/dm/sysinfo.c +0 -1
@@ -4,7 +4,6 @@* Mario Six, Guntermann & Drunck GmbH, [email protected] */ -#include <common.h> #include <dm.h> #include <log.h> #include <dm/test.h>
test/dm/sysreset.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015 Google, Inc */ -#include <common.h> #include <dm.h> #include <sysreset.h> #include <asm/state.h>
test/dm/tag.c +0 -1
@@ -6,7 +6,6 @@* Author: AKASHI Takahiro */ -#include <common.h> #include <dm/tag.h> #include <dm/test.h> /* DM_TEST() */ #include <test/test.h> /* struct unit_test_state */
test/dm/tee.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2018 Linaro Limited */ -#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h>
test/dm/test-dm.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2013 Google, Inc */ -#include <common.h> #include <test/suites.h> #include <test/test.h>
test/dm/test-driver.c +0 -1
@@ -6,7 +6,6 @@* Pavel Herrmann <[email protected]> */ -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h>
test/dm/test-fdt.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2013 Google, Inc */ -#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h>
test/dm/test-uclass.c +0 -1
@@ -6,7 +6,6 @@* Pavel Herrmann <[email protected]> */ -#include <common.h> #include <log.h> #include <malloc.h> #include <dm.h>
test/dm/timer.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015 Thomas Chou <[email protected]> */ -#include <common.h> #include <dm.h> #include <timer.h> #include <dm/test.h>
test/dm/tpm.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <dm.h> #include <tpm_api.h> #include <dm/test.h>
test/dm/usb.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2015 Google, Inc */ -#include <common.h> #include <console.h> #include <dm.h> #include <part.h>
test/dm/video.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <bzlib.h> #include <dm.h> #include <gzip.h>
test/dm/virtio.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2018, Bin Meng <[email protected]> */ -#include <common.h> #include <dm.h> #include <virtio_types.h> #include <virtio.h>
test/dm/virtio_device.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2018, Bin Meng <[email protected]> */ -#include <common.h> #include <dm.h> #include <virtio_types.h> #include <virtio.h>
test/dm/virtio_rng.c +0 -1
@@ -4,7 +4,6 @@* Written by Andrew Scull <[email protected]> */ -#include <common.h> #include <dm.h> #include <virtio_types.h> #include <virtio.h>
test/dm/wdt.c +1 -1
@@ -3,9 +3,9 @@* Copyright 2017 Google, Inc */ -#include <common.h> #include <cyclic.h> #include <dm.h> +#include <time.h> #include <wdt.h> #include <asm/gpio.h> #include <asm/state.h>
test/env/attr.c +0 -1
@@ -4,7 +4,6 @@* Joe Hershberger, National Instruments, [email protected] */ -#include <common.h> #include <command.h> #include <env_attr.h> #include <test/env.h>
test/env/cmd_ut_env.c +0 -1
@@ -4,7 +4,6 @@* Joe Hershberger, National Instruments, [email protected] */ -#include <common.h> #include <command.h> #include <test/env.h> #include <test/suites.h>
test/env/fdt.c +0 -1
@@ -1,4 +1,3 @@ -#include <common.h> #include <command.h> #include <env_attr.h> #include <test/env.h>
test/env/hashtable.c +1 -1
@@ -4,11 +4,11 @@* Roman Kapl, SYSGO, [email protected] */ -#include <common.h> #include <command.h> #include <log.h> #include <search.h> #include <stdio.h> +#include <vsprintf.h> #include <test/env.h> #include <test/ut.h>
test/fuzz/cmd_fuzz.c +0 -1
@@ -5,7 +5,6 @@*/ #include <command.h> -#include <common.h> #include <dm.h> #include <fuzzing_engine.h> #include <test/fuzz.h>
test/fuzz/virtio.c +0 -1
@@ -4,7 +4,6 @@* Written by Andrew Scull <[email protected]> */ -#include <common.h> #include <dm.h> #include <virtio.h> #include <virtio_ring.h>
test/image/spl_load.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2023 Sean Anderson <[email protected]> */ -#include <common.h> #include <image.h> #include <imx_container.h> #include <mapmem.h>
test/image/spl_load_fs.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2023 Sean Anderson <[email protected]> */ -#include <common.h> #include <blk.h> #include <ext_common.h> #include <ext4fs.h>
test/image/spl_load_net.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2023 Sean Anderson <[email protected]> */ -#include <common.h> #include <dm.h> #include <spl.h> #include <test/spl.h>
test/image/spl_load_nor.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2023 Sean Anderson <[email protected]> */ -#include <common.h> #include <dm.h> #include <spl.h> #include <asm/io.h>
test/image/spl_load_os.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <image.h> #include <os.h> #include <spl.h>
test/image/spl_load_spi.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2023 Sean Anderson <[email protected]> */ -#include <common.h> #include <dm.h> #include <spi_flash.h> #include <spl.h>
test/lib/abuf.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <abuf.h> #include <mapmem.h> #include <test/lib.h>
test/lib/asn1.c +0 -1
@@ -6,7 +6,6 @@* Unit test for asn1 compiler and asn1 decoder function via various parsers */ -#include <common.h> #include <command.h> #include <test/lib.h> #include <test/test.h>
test/lib/cmd_ut_lib.c +0 -1
@@ -5,7 +5,6 @@* Unit tests for library functions */ -#include <common.h> #include <command.h> #include <test/lib.h> #include <test/suites.h>
test/lib/efi_device_path.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2020 Heinrich Schuchardt <[email protected]> */ -#include <common.h> #include <efi_loader.h> #include <test/lib.h> #include <test/test.h>
test/lib/efi_image_region.c +0 -1
@@ -3,7 +3,6 @@* (C) Copyright 2020, Heinrich Schuchardt <[email protected]> */ -#include <common.h> #include <efi_loader.h> #include <test/lib.h> #include <test/test.h>
test/lib/getopt.c +0 -1
@@ -6,7 +6,6 @@* posix/tst-getopt-cancel.c */ -#include <common.h> #include <getopt.h> #include <test/lib.h> #include <test/test.h>
test/lib/hexdump.c +0 -1
@@ -4,7 +4,6 @@* Mario Six, Guntermann & Drunck GmbH, [email protected] */ -#include <common.h> #include <hexdump.h> #include <test/lib.h> #include <test/test.h>
test/lib/kconfig.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <test/lib.h> #include <test/test.h> #include <test/ut.h>
test/lib/kconfig_spl.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <test/lib.h> #include <test/test.h> #include <test/ut.h>
test/lib/lmb.c +0 -1
@@ -3,7 +3,6 @@* (C) Copyright 2018 Simon Goldschmidt */ -#include <common.h> #include <dm.h> #include <lmb.h> #include <log.h>
test/lib/longjmp.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2021, Heinrich Schuchardt <[email protected]> */ -#include <common.h> #include <test/lib.h> #include <test/test.h> #include <test/ut.h>
test/lib/rsa.c +0 -1
@@ -6,7 +6,6 @@* Unit test for rsa_verify() function */ -#include <common.h> #include <command.h> #include <image.h> #include <test/lib.h>
test/lib/sscanf.c +0 -1
@@ -9,7 +9,6 @@* Unit tests for sscanf() function */ -#include <common.h> #include <command.h> #include <log.h> #include <test/lib.h>
test/lib/string.c +0 -1
@@ -9,7 +9,6 @@* This has to be considered in testing. */ -#include <common.h> #include <command.h> #include <log.h> #include <test/lib.h>
test/lib/strlcat.c +0 -1
@@ -6,7 +6,6 @@* These tests adapted from glibc's string/test-strncat.c */ -#include <common.h> #include <test/lib.h> #include <test/test.h> #include <test/ut.h>
test/lib/test_aes.c +0 -1
@@ -5,7 +5,6 @@* Unit tests for aes functions */ -#include <common.h> #include <command.h> #include <hexdump.h> #include <rand.h>
test/lib/test_crypt.c +0 -1
@@ -5,7 +5,6 @@* Unit test for crypt-style password hashing */ -#include <common.h> #include <test/lib.h> #include <test/test.h> #include <test/ut.h>
test/lib/test_errno_str.c +0 -1
@@ -9,7 +9,6 @@* This has to be considered in testing. */ -#include <common.h> #include <command.h> #include <errno.h> #include <test/lib.h>
test/lib/test_print.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2020, Heinrich Schuchadt <[email protected]> */ -#include <common.h> #include <command.h> #include <display_options.h> #include <asm/global_data.h>
test/lib/uuid.c +0 -1
@@ -8,7 +8,6 @@* Abdellatif El Khlifi <[email protected]> */ -#include <common.h> #include <uuid.h> #include <test/lib.h> #include <test/test.h>
test/log/cont_test.c +0 -1
@@ -5,7 +5,6 @@* Test continuation of log messages. */ -#include <common.h> #include <console.h> #include <asm/global_data.h> #include <test/log.h>
test/log/log_filter.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2020 Sean Anderson <[email protected]> */ -#include <common.h> #include <console.h> #include <log.h> #include <asm/global_data.h>
test/log/log_test.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <command.h> #include <log.h> #include <asm/global_data.h>
test/log/log_ut.c +0 -1
@@ -5,7 +5,6 @@* Logging function tests. */ -#include <common.h> #include <console.h> #include <log.h> #include <test/log.h>
test/log/nolog_ndebug.c +0 -1
@@ -5,7 +5,6 @@* Logging function tests for CONFIG_LOG=n without #define DEBUG */ -#include <common.h> #include <console.h> #include <log.h> #include <asm/global_data.h>
test/log/nolog_test.c +0 -1
@@ -8,7 +8,6 @@/* Needed for testing log_debug() */ #define DEBUG 1 -#include <common.h> #include <console.h> #include <log.h> #include <asm/global_data.h>
test/log/pr_cont_test.c +0 -1
@@ -5,7 +5,6 @@* Test continuation of log messages using pr_cont(). */ -#include <common.h> #include <console.h> #include <test/log.h> #include <test/test.h>
test/log/syslog_test.c +0 -1
@@ -10,7 +10,6 @@/* Override CONFIG_LOG_MAX_LEVEL */ #define LOG_DEBUG -#include <common.h> #include <asm/global_data.h> #include <dm/device.h> #include <hexdump.h>
test/log/syslog_test_ndebug.c +0 -1
@@ -7,7 +7,6 @@* Invoke the test with: ./u-boot -d arch/sandbox/dts/test.dtb */ -#include <common.h> #include <asm/global_data.h> #include <dm/device.h> #include <hexdump.h>
test/optee/cmd_ut_optee.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2019, Theobroma Systems Design und Consulting GmbH */ -#include <common.h> #include <command.h> #include <errno.h> #include <fdt_support.h>
test/overlay/cmd_ut_overlay.c +0 -1
@@ -4,7 +4,6 @@* Copyright (c) 2016 Free Electrons */ -#include <common.h> #include <command.h> #include <errno.h> #include <fdt_support.h>
test/print_ut.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2012, The Chromium Authors */ -#include <common.h> #include <command.h> #include <efi_api.h> #include <display_options.h>
test/stdint/int-types.c +1 -1
@@ -1,4 +1,4 @@ -#include <common.h> +#include <linux/types.h> int test_types (void ) {
test/str_ut.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2020 Google LLC */ -#include <common.h> #include <vsprintf.h> #include <test/suites.h> #include <test/test.h>
test/test-main.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <blk.h> #include <console.h> #include <cyclic.h>
test/time_ut.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <command.h> #include <errno.h> #include <time.h>
test/unicode_ut.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2018 Heinrich Schuchardt <[email protected]> */ -#include <common.h> #include <charset.h> #include <command.h> #include <efi_loader.h>
test/ut.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2013 Google, Inc */ -#include <common.h> #include <console.h> #include <malloc.h> #ifdef CONFIG_SANDBOX
Signature · 1 line
2.34.1
PATCH 11/18 cmd: Remove <common.h> and add needed includes
In reply to Tom RiniRemove <common.h> from all "cmd/" files and when needed add missing include files directly.
--- cmd/2048.c | 2 +- cmd/ab_select.c | 1 - cmd/abootimg.c | 1 - cmd/acpi.c | 2 +- cmd/adc.c | 1 - cmd/addrmap.c | 1 - cmd/adtimg.c | 2 +- cmd/aes.c | 2 +- cmd/arm/exception64.c | 1 - cmd/armffa.c | 1 - cmd/armflash.c | 2 +- cmd/axi.c | 1 - cmd/bcb.c | 2 +- cmd/bdinfo.c | 1 - cmd/bind.c | 1 - cmd/binop.c | 2 +- cmd/blk_common.c | 2 +- cmd/blkcache.c | 2 +- cmd/blkmap.c | 1 - cmd/blob.c | 2 +- cmd/bloblist.c | 1 - cmd/bmp.c | 1 - cmd/boot.c | 2 +- cmd/bootcount.c | 1 - cmd/bootdev.c | 1 - cmd/bootflow.c | 1 - cmd/booti.c | 1 - cmd/bootm.c | 1 - cmd/bootmenu.c | 1 - cmd/bootmeth.c | 1 - cmd/bootstage.c | 2 +- cmd/bootz.c | 1 - cmd/broadcom/chimp_boot.c | 1 - cmd/broadcom/chimp_handshake.c | 1 - cmd/broadcom/nitro_image_load.c | 2 +- cmd/btrfs.c | 1 - cmd/button.c | 1 - cmd/cache.c | 1 - cmd/cat.c | 1 - cmd/cbfs.c | 2 +- cmd/cedit.c | 1 - cmd/clk.c | 1 - cmd/clone.c | 2 +- cmd/cls.c | 1 - cmd/config.c | 1 - cmd/conitrace.c | 1 - cmd/console.c | 1 - cmd/cpu.c | 1 - cmd/cramfs.c | 1 - cmd/cros_ec.c | 1 - cmd/cyclic.c | 3 ++- cmd/date.c | 1 - cmd/demo.c | 1 - cmd/dfu.c | 1 - cmd/diag.c | 1 - cmd/disk.c | 1 - cmd/dm.c | 1 - cmd/echo.c | 1 - cmd/eeprom.c | 2 +- cmd/efi.c | 1 - cmd/efi_common.c | 1 - cmd/eficonfig.c | 1 - cmd/eficonfig_sbkey.c | 1 - cmd/efidebug.c | 1 - cmd/elf.c | 1 - cmd/ethsw.c | 2 +- cmd/event.c | 1 - cmd/exit.c | 2 +- cmd/ext2.c | 1 - cmd/ext4.c | 1 - cmd/extension_board.c | 1 - cmd/fastboot.c | 1 - cmd/fat.c | 1 - cmd/fdt.c | 1 - cmd/flash.c | 2 +- cmd/font.c | 1 - cmd/fpga.c | 1 - cmd/fpgad.c | 2 +- cmd/fs.c | 1 - cmd/fs_uuid.c | 1 - cmd/fuse.c | 2 +- cmd/gettime.c | 2 +- cmd/gpio.c | 1 - cmd/gpt.c | 1 - cmd/hash.c | 1 - cmd/help.c | 1 - cmd/history.c | 1 - cmd/host.c | 1 - cmd/i2c.c | 1 - cmd/ide.c | 1 - cmd/ini.c | 2 +- cmd/io.c | 2 +- cmd/iotrace.c | 2 +- cmd/irq.c | 1 - cmd/itest.c | 2 +- cmd/jffs2.c | 1 - cmd/kaslrseed.c | 1 - cmd/led.c | 1 - cmd/legacy-mtd-utils.c | 1 - cmd/legacy_led.c | 3 +-- cmd/license.c | 1 - cmd/load.c | 1 - cmd/log.c | 1 - cmd/lsblk.c | 1 - cmd/lzmadec.c | 2 +- cmd/mbr.c | 2 +- cmd/mdio.c | 1 - cmd/mem.c | 2 +- cmd/meson/sm.c | 2 +- cmd/mii.c | 1 - cmd/misc.c | 1 - cmd/mmc.c | 2 +- cmd/mp.c | 2 +- cmd/mtd.c | 1 - cmd/mtdparts.c | 1 - cmd/mux.c | 1 - cmd/mvebu/bubt.c | 1 - cmd/mvebu/comphy_rx_training.c | 1 - cmd/nand.c | 1 - cmd/net.c | 1 - cmd/nvedit.c | 2 +- cmd/nvedit_efi.c | 1 - cmd/nvme.c | 1 - cmd/onenand.c | 1 - cmd/optee_rpmb.c | 1 - cmd/osd.c | 1 - cmd/panic.c | 2 +- cmd/part.c | 1 - cmd/pcap.c | 2 +- cmd/pci.c | 1 - cmd/pci_mps.c | 1 - cmd/pinmux.c | 1 - cmd/pmc.c | 1 - cmd/pmic.c | 1 - cmd/printf.c | 2 +- cmd/pvblock.c | 1 - cmd/pxe.c | 2 +- cmd/qfw.c | 1 - cmd/read.c | 2 +- cmd/reginfo.c | 1 - cmd/regulator.c | 1 - cmd/remoteproc.c | 1 - cmd/riscv/sbi.c | 1 - cmd/rkmtd.c | 1 - cmd/rng.c | 1 - cmd/rockusb.c | 1 - cmd/rtc.c | 1 - cmd/sata.c | 1 - cmd/sb.c | 1 - cmd/scp03.c | 1 - cmd/scsi.c | 1 - cmd/seama.c | 1 - cmd/setexpr.c | 3 ++- cmd/sf.c | 2 +- cmd/sha1sum.c | 1 - cmd/sleep.c | 3 ++- cmd/smccc.c | 2 +- cmd/sound.c | 1 - cmd/source.c | 1 - cmd/spi.c | 1 - cmd/spl.c | 1 - cmd/stackprot_test.c | 1 - cmd/strings.c | 2 +- cmd/sysboot.c | 2 +- cmd/temperature.c | 1 - cmd/terminal.c | 1 - cmd/test.c | 2 +- cmd/thordown.c | 1 - cmd/ti/ddr3.c | 1 - cmd/ti/pd.c | 1 - cmd/time.c | 1 - cmd/timer.c | 2 +- cmd/tlv_eeprom.c | 1 - cmd/tpm-common.c | 1 - cmd/tpm-v1.c | 2 +- cmd/tpm-v2.c | 1 - cmd/tpm_test.c | 2 +- cmd/trace.c | 2 +- cmd/tsi148.c | 2 +- cmd/ubi.c | 1 - cmd/ubifs.c | 2 +- cmd/ufs.c | 2 +- cmd/universe.c | 2 +- cmd/unlz4.c | 2 +- cmd/unzip.c | 2 +- cmd/usb.c | 1 - cmd/usb_gadget_sdp.c | 1 - cmd/usb_mass_storage.c | 1 - cmd/vbe.c | 1 - cmd/version.c | 1 - cmd/video.c | 1 - cmd/virtio.c | 1 - cmd/w1.c | 1 - cmd/wdt.c | 1 - cmd/wol.c | 2 +- cmd/x86/cbsysinfo.c | 1 - cmd/x86/fsp.c | 1 - cmd/x86/hob.c | 1 - cmd/x86/mtrr.c | 2 +- cmd/ximg.c | 1 - cmd/xxd.c | 1 - cmd/yaffs2.c | 1 - cmd/zfs.c | 1 - cmd/zip.c | 2 +- include/android_ab.h | 2 ++ 205 files changed, 65 insertions(+), 205 deletions(-)
cmd/2048.c +1 -1
@@ -3,10 +3,10 @@/* Console version of the game "2048" for GNU/Linux */ -#include <common.h> #include <cli.h> #include <command.h> #include <rand.h> +#include <vsprintf.h> #include <linux/delay.h> #define SIZE 4
cmd/ab_select.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2017 The Android Open Source Project */ -#include <common.h> #include <android_ab.h> #include <command.h> #include <env.h>
cmd/abootimg.c +0 -1
@@ -5,7 +5,6 @@*/ #include <android_image.h> -#include <common.h> #include <command.h> #include <image.h> #include <mapmem.h>
cmd/acpi.c +1 -1
@@ -3,7 +3,6 @@* Copyright 2019 Google LLC * Written by Simon Glass <[email protected]> */ -#include <common.h> #include <command.h> #include <display_options.h> #include <log.h>
@@ -11,6 +10,7 @@#include <acpi/acpi_table.h> #include <asm/acpi_table.h> #include <asm/global_data.h> +#include <linux/errno.h> #include <dm/acpi.h> DECLARE_GLOBAL_DATA_PTR ;
cmd/adc.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2018 BayLibre, SAS * Author: Neil Armstrong <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <adc.h>
cmd/addrmap.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2021, Bin Meng <[email protected]> */ -#include <common.h> #include <command.h> #include <addr_map.h>
cmd/adtimg.c +1 -1
@@ -7,8 +7,8 @@#include <command.h> #include <env.h> +#include <vsprintf.h> #include <image-android-dt.h> -#include <common.h> #define OPT_INDEX "--index"
cmd/aes.c +1 -1
@@ -5,13 +5,13 @@* Command for en/de-crypting block of memory with AES-[128/192/256]-CBC cipher. */ -#include <common.h> #include <command.h> #include <uboot_aes.h> #include <malloc.h> #include <asm/byteorder.h> #include <linux/compiler.h> #include <mapmem.h> +#include <vsprintf.h> u32 aes_get_key_len (char *command) {
cmd/arm/exception64.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2018, Heinrich Schuchardt <[email protected]> */ -#include <common.h> #include <command.h> #include <linux/bitops.h>
cmd/armffa.c +0 -1
@@ -5,7 +5,6 @@* Authors: * Abdellatif El Khlifi <[email protected]> */ -#include <common.h> #include <arm_ffa.h> #include <command.h> #include <dm.h>
cmd/armflash.c +1 -1
@@ -5,10 +5,10 @@* * Support for ARM Flash Partitions */ -#include <common.h> #include <command.h> #include <console.h> #include <flash.h> +#include <vsprintf.h> #include <asm/io.h> #define MAX_REGIONS 4
cmd/axi.c +0 -1
@@ -9,7 +9,6 @@* SPDX-License-Identifier: GPL-2.0+ */ -#include <common.h> #include <axi.h> #include <command.h> #include <console.h>
cmd/bcb.c +1 -1
@@ -8,12 +8,12 @@#include <android_bootloader_message.h> #include <bcb.h> #include <command.h> -#include <common.h> #include <display_options.h> #include <log.h> #include <part.h> #include <malloc.h> #include <memalign.h> +#include <vsprintf.h> #include <linux/err.h> enum bcb_cmd {
cmd/bdinfo.c +0 -1
@@ -6,7 +6,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <command.h> #include <dm.h> #include <env.h>
cmd/bind.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2018 JJ Hiblot <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <dm/device-internal.h>
cmd/binop.c +1 -1
@@ -1,11 +1,11 @@// SPDX-License-Identifier: GPL-2.0+ -#include <common.h> #include <command.h> #include <env.h> #include <hexdump.h> #include <malloc.h> #include <mapmem.h> +#include <vsprintf.h> #include <linux/ctype.h> enum {
cmd/blk_common.c +1 -1
@@ -8,10 +8,10 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <blk.h> #include <command.h> #include <mapmem.h> +#include <vsprintf.h> int blk_common_cmd (int argc,char *const argv[],enum uclass_id uclass_id,int *cur_devnump)
cmd/blkcache.c +1 -1
@@ -6,9 +6,9 @@*/ #include <command.h> #include <config.h> -#include <common.h> #include <malloc.h> #include <part.h> +#include <vsprintf.h> static int blkc_show (struct cmd_tbl *cmdtp,int flag,int argc,char *const argv[])
cmd/blkmap.c +0 -1
@@ -6,7 +6,6 @@#include <blk.h> #include <blkmap.h> -#include <common.h> #include <command.h> #include <malloc.h> #include <dm/device.h>
cmd/blob.c +1 -1
@@ -4,9 +4,9 @@* Command for encapsulating/decapsulating blob of memory. */ -#include <common.h> #include <command.h> #include <malloc.h> +#include <vsprintf.h> #include <asm/byteorder.h> #include <linux/compiler.h> #if defined(CONFIG_ARCH_MX6) || defined(CONFIG_ARCH_MX7) || \
cmd/bloblist.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <bloblist.h> #include <command.h> #include <asm/global_data.h>
cmd/bmp.c +0 -1
@@ -8,7 +8,6 @@* BMP handling routines */ -#include <common.h> #include <command.h> #include <image.h> #include <mapmem.h>
cmd/boot.c +1 -1
@@ -7,9 +7,9 @@/* * Misc boot support */ -#include <common.h> #include <command.h> #include <net.h> +#include <vsprintf.h> #ifdef CONFIG_CMD_GO
cmd/bootcount.c +0 -1
@@ -1,6 +1,5 @@// SPDX-License-Identifier: GPL-2.0+ -#include <common.h> #include <command.h> #include <bootcount.h>
cmd/bootdev.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <bootdev.h> #include <bootflow.h> #include <bootstd.h>
cmd/bootflow.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <bootdev.h> #include <bootflow.h> #include <bootm.h>
cmd/booti.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <bootm.h> #include <command.h> #include <image.h>
cmd/bootm.c +0 -1
@@ -7,7 +7,6 @@/* * Boot support */ -#include <common.h> #include <bootm.h> #include <command.h> #include <env.h>
cmd/bootmenu.c +0 -1
@@ -5,7 +5,6 @@#include <charset.h> #include <cli.h> -#include <common.h> #include <command.h> #include <ansi.h> #include <efi_config.h>
cmd/bootmeth.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <bootdev.h> #include <bootmeth.h> #include <bootstd.h>
cmd/bootstage.c +1 -1
@@ -3,9 +3,9 @@* Copyright (c) 2012, Google Inc. All rights reserved. */ -#include <common.h> #include <bootstage.h> #include <command.h> +#include <vsprintf.h> static int do_bootstage_report (struct cmd_tbl *cmdtp,int flag,int argc,char *const argv[])
cmd/bootz.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <bootm.h> #include <command.h> #include <image.h>
cmd/broadcom/chimp_boot.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2020 Broadcom */ -#include <common.h> #include <command.h> #include <broadcom/chimp.h>
cmd/broadcom/chimp_handshake.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2020 Broadcom */ -#include <common.h> #include <command.h> #include <broadcom/chimp.h>
cmd/broadcom/nitro_image_load.c +1 -1
@@ -3,8 +3,8 @@* Copyright 2020 Broadcom */ -#include <common.h> #include <command.h> +#include <vsprintf.h> #define FW_IMAGE_SIG 0xff123456#define CFG_IMAGE_SIG 0xcf54321a
cmd/btrfs.c +0 -1
@@ -3,7 +3,6 @@* 2017 by Marek Behún <[email protected]> */ -#include <common.h> #include <command.h> #include <btrfs.h> #include <fs.h>
cmd/button.c +0 -1
@@ -5,7 +5,6 @@* Based on led.c */ -#include <common.h> #include <command.h> #include <dm.h> #include <button.h>
cmd/cache.c +0 -1
@@ -7,7 +7,6 @@/* * Cache support: switch on or off, get status */ -#include <common.h> #include <command.h> #include <cpu_func.h> #include <linux/compiler.h>
cmd/cat.c +0 -1
@@ -4,7 +4,6 @@* Roger Knecht <[email protected]> */ -#include <common.h> #include <command.h> #include <fs.h> #include <malloc.h>
cmd/cbfs.c +1 -1
@@ -6,10 +6,10 @@/* * CBFS commands */ -#include <common.h> #include <command.h> #include <env.h> #include <cbfs.h> +#include <vsprintf.h> static int do_cbfs_init (struct cmd_tbl *cmdtp,int flag,int argc,char *const argv[])
cmd/cedit.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <abuf.h> #include <cedit.h> #include <command.h>
cmd/clk.c +0 -1
@@ -2,7 +2,6 @@/* * Copyright (C) 2013 Xilinx, Inc. */ -#include <common.h> #include <command.h> #include <clk.h> #if defined(CONFIG_DM ) && defined(CONFIG_CLK )
cmd/clone.c +1 -1
@@ -4,11 +4,11 @@* */ -#include <common.h> #include <command.h> #include <malloc.h> #include <part.h> #include <blk.h> +#include <time.h> #include <vsprintf.h> #define BUFSIZE (1 * 1024 * 1024)
cmd/cls.c +0 -1
@@ -5,7 +5,6 @@* * cls - clear screen command */ -#include <common.h> #include <command.h> #include <console.h> #include <dm.h>
cmd/config.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2017 Masahiro Yamada <[email protected]> */ -#include <common.h> #include <command.h> #include <gzip.h> #include <malloc.h>
cmd/conitrace.c +0 -1
@@ -5,7 +5,6 @@* * Copyright (c) 2018, Heinrich Schuchardt <[email protected]> */ -#include <common.h> #include <command.h> #include <linux/delay.h>
cmd/console.c +0 -1
@@ -7,7 +7,6 @@/* * Boot support */ -#include <common.h> #include <command.h> #include <iomux.h> #include <stdio_dev.h>
cmd/cpu.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2017 Álvaro Fernández Rojas <[email protected]> */ -#include <common.h> #include <command.h> #include <cpu.h> #include <display_options.h>
cmd/cramfs.c +0 -1
@@ -10,7 +10,6 @@/* * CRAMFS support */ -#include <common.h> #include <command.h> #include <env.h> #include <image.h>
cmd/cros_ec.c +0 -1
@@ -6,7 +6,6 @@* Copyright (c) 2016 National Instruments Corp */ -#include <common.h> #include <command.h> #include <cros_ec.h> #include <dm.h>
cmd/cyclic.c +2 -1
@@ -8,11 +8,12 @@* Copyright (C) 2022 Stefan Roese <[email protected]> */ -#include <common.h> #include <command.h> #include <cyclic.h> #include <div64.h> #include <malloc.h> +#include <time.h> +#include <vsprintf.h> #include <linux/delay.h> struct cyclic_demo_info {
cmd/date.c +0 -1
@@ -7,7 +7,6 @@/* * RTC, Date & Time support: get and set date & time */ -#include <common.h> #include <command.h> #include <dm.h> #include <rtc.h>
cmd/demo.c +0 -1
@@ -6,7 +6,6 @@* Pavel Herrmann <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <dm-demo.h>
cmd/dfu.c +0 -1
@@ -10,7 +10,6 @@* Lukasz Majewski <[email protected]> */ -#include <common.h> #include <command.h> #include <watchdog.h> #include <dfu.h>
cmd/diag.c +0 -1
@@ -7,7 +7,6 @@/* * Diagnostics support */ -#include <common.h> #include <command.h> #include <post.h>
cmd/disk.c +0 -1
@@ -3,7 +3,6 @@* (C) Copyright 2000-2011 * Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <bootstage.h> #include <command.h> #include <cpu_func.h>
cmd/dm.c +0 -1
@@ -6,7 +6,6 @@* Marek Vasut <[email protected]> */ -#include <common.h> #include <command.h> #include <dm/root.h> #include <dm/util.h>
cmd/echo.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <command.h> static int do_echo(struct cmd_tbl *cmdtp, int flag, int argc,
cmd/eeprom.c +1 -1
@@ -19,12 +19,12 @@* */ -#include <common.h> #include <config.h> #include <command.h> #include <eeprom.h> #include <i2c.h> #include <eeprom_layout.h> +#include <vsprintf.h> #include <linux/delay.h> #ifndef I2C_RXTX_LEN
cmd/efi.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <command.h> #include <efi.h> #include <efi_api.h>
cmd/efi_common.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <efi.h> #include <efi_api.h> #include <uuid.h>
cmd/eficonfig.c +0 -1
@@ -7,7 +7,6 @@#include <ansi.h> #include <cli.h> -#include <common.h> #include <charset.h> #include <efi_loader.h> #include <efi_load_initrd.h>
cmd/eficonfig_sbkey.c +0 -1
@@ -6,7 +6,6 @@*/ #include <ansi.h> -#include <common.h> #include <charset.h> #include <hexdump.h> #include <log.h>
cmd/efidebug.c +0 -1
@@ -6,7 +6,6 @@*/ #include <charset.h> -#include <common.h> #include <command.h> #include <dm/device.h> #include <efi_dt_fixup.h>
cmd/elf.c +0 -1
@@ -4,7 +4,6 @@* All rights reserved. */ -#include <common.h> #include <command.h> #include <cpu_func.h> #include <elf.h>
cmd/ethsw.c +1 -1
@@ -5,13 +5,13 @@* Ethernet Switch commands */ -#include <common.h> #include <command.h> #include <env.h> #include <errno.h> #include <env_flags.h> #include <ethsw.h> #include <net.h> +#include <vsprintf.h> static const char *ethsw_name;
cmd/event.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <command.h> #include <event.h>
cmd/exit.c +1 -1
@@ -4,8 +4,8 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <command.h> +#include <vsprintf.h> static int do_exit (struct cmd_tbl *cmdtp,int flag,int argc,char *const argv[])
cmd/ext2.c +0 -1
@@ -19,7 +19,6 @@/* * Ext2fs support */ -#include <common.h> #include <command.h> #include <fs.h>
cmd/ext4.c +0 -1
@@ -25,7 +25,6 @@* file in uboot. Added ext4fs ls load and write support. */ -#include <common.h> #include <part.h> #include <config.h> #include <command.h>
cmd/extension_board.c +0 -1
@@ -4,7 +4,6 @@* Köry Maincent, Bootlin, <[email protected]> */ -#include <common.h> #include <bootdev.h> #include <command.h> #include <dm.h>
cmd/fastboot.c +0 -1
@@ -6,7 +6,6 @@* (C) Copyright 2014 Linaro, Ltd. * Rob Herring <[email protected]> */ -#include <common.h> #include <command.h> #include <console.h> #include <g_dnl.h>
cmd/fat.c +0 -1
@@ -7,7 +7,6 @@/* * Boot support */ -#include <common.h> #include <command.h> #include <mapmem.h> #include <fat.h>
cmd/fdt.c +0 -1
@@ -7,7 +7,6 @@* Matthew McClintock <[email protected]> */ -#include <common.h> #include <command.h> #include <env.h> #include <image.h>
cmd/flash.c +1 -1
@@ -7,9 +7,9 @@/* * FLASH support */ -#include <common.h> #include <command.h> #include <log.h> +#include <vsprintf.h> #include <uuid.h> #if defined(CONFIG_CMD_MTDPARTS )
cmd/font.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <video.h>
cmd/fpga.c +0 -1
@@ -7,7 +7,6 @@/* * FPGA support */ -#include <common.h> #include <command.h> #include <env.h> #include <fpga.h>
cmd/fpgad.c +1 -1
@@ -8,10 +8,10 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <command.h> #include <console.h> #include <display_options.h> +#include <vsprintf.h> #include <gdsys_fpga.h>
cmd/fs.c +0 -1
@@ -5,7 +5,6 @@* Inspired by cmd_ext_common.c, cmd_fat.c. */ -#include <common.h> #include <command.h> #include <fs.h>
cmd/fs_uuid.c +0 -1
@@ -5,7 +5,6 @@* Copyright (C) 2014, Bachmann electronic GmbH */ -#include <common.h> #include <command.h> #include <fs.h>
cmd/fuse.c +1 -1
@@ -8,11 +8,11 @@* Martha Marx <[email protected]> */ -#include <common.h> #include <command.h> #include <console.h> #include <fuse.h> #include <mapmem.h> +#include <vsprintf.h> #include <linux/errno.h> static int strtou32 (const char *str,unsigned int base,u32 *result)
cmd/gettime.c +1 -1
@@ -11,8 +11,8 @@/* * Get Timer overflows after 2^32 / CONFIG_SYS_HZ (32Khz) = 131072 sec */ -#include <common.h> #include <command.h> +#include <time.h> static int do_gettime (struct cmd_tbl *cmdtp,int flag,int argc,char *const argv[])
cmd/gpio.c +0 -1
@@ -6,7 +6,6 @@* Licensed under the GPL-2 or later. */ -#include <common.h> #include <command.h> #include <errno.h> #include <dm.h>
cmd/gpt.c +0 -1
@@ -10,7 +10,6 @@* author: Piotr Wilczek <[email protected]> */ -#include <common.h> #include <blk.h> #include <env.h> #include <log.h>
cmd/hash.c +0 -1
@@ -9,7 +9,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <command.h> #include <hash.h> #include <linux/ctype.h>
cmd/help.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <command.h> static int do_help(struct cmd_tbl *cmdtp, int flag, int argc,
cmd/history.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <command.h> #include <cli.h>
cmd/host.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2012, Google Inc. */ -#include <common.h> #include <command.h> #include <dm.h> #include <fs.h>
cmd/i2c.c +0 -1
@@ -64,7 +64,6 @@* Adapted from cmd_mem.c which is copyright Wolfgang Denk ([email protected]). */ -#include <common.h> #include <bootretry.h> #include <cli.h> #include <command.h>
cmd/ide.c +0 -1
@@ -8,7 +8,6 @@* IDE support */ -#include <common.h> #include <blk.h> #include <dm.h> #include <config.h>
cmd/ini.c +1 -1
@@ -11,9 +11,9 @@* http://code.google.com/p/inih/ */ -#include <common.h> #include <command.h> #include <env.h> +#include <vsprintf.h> #include <linux/ctype.h> #include <linux/string.h>
cmd/io.c +1 -1
@@ -7,9 +7,9 @@* IO space access commands. */ -#include <common.h> #include <command.h> #include <display_options.h> +#include <vsprintf.h> #include <asm/io.h> /* Display values from last command */
cmd/iotrace.c +1 -1
@@ -3,9 +3,9 @@* Copyright (c) 2014 Google, Inc */ -#include <common.h> #include <command.h> #include <iotrace.h> +#include <vsprintf.h> static void do_print_stats (void ) {
cmd/irq.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2008 Freescale Semiconductor, Inc. */ -#include <common.h> #include <config.h> #include <command.h> #include <irq_func.h>
cmd/itest.c +1 -1
@@ -11,11 +11,11 @@* A few parts were lifted from bash 'test' command */ -#include <common.h> #include <config.h> #include <command.h> #include <env.h> #include <mapmem.h> +#include <vsprintf.h> #include <asm/io.h>
cmd/jffs2.c +0 -1
@@ -70,7 +70,6 @@/* * JFFS2/CRAMFS support */ -#include <common.h> #include <command.h> #include <env.h> #if defined(CONFIG_CMD_FLASH )
cmd/kaslrseed.c +0 -1
@@ -6,7 +6,6 @@* Copyright (c) 2021, Chris Morgan <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <hexdump.h>
cmd/led.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <led.h>
cmd/legacy-mtd-utils.c +0 -1
@@ -1,6 +1,5 @@// SPDX-License-Identifier: GPL-2.0+ -#include <common.h> #include <jffs2/jffs2.h> #include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h>
cmd/legacy_led.c +1 -2
@@ -9,10 +9,9 @@* Ulf Samuelsson <[email protected]> */ -#include <common.h> -#include <config.h> #include <command.h> #include <status_led.h> +#include <vsprintf.h> struct led_tbl_s {char *string;/* String for use in the command */
cmd/license.c +0 -1
@@ -4,7 +4,6 @@* Author: Harald Welte <[email protected]> */ -#include <common.h> #include <command.h> #include <gzip.h> #include <malloc.h>
cmd/load.c +0 -1
@@ -7,7 +7,6 @@/* * Serial up- and download support */ -#include <common.h> #include <command.h> #include <console.h> #include <cpu_func.h>
cmd/log.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <getopt.h>
cmd/lsblk.c +0 -1
@@ -4,7 +4,6 @@* Niel Fourie, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <blk.h> #include <command.h> #include <dm.h>
cmd/lzmadec.c +1 -1
@@ -9,10 +9,10 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <command.h> #include <env.h> #include <mapmem.h> +#include <vsprintf.h> #include <asm/io.h> #include <lzma/LzmaTools.h>
cmd/mbr.c +1 -1
@@ -8,11 +8,11 @@* based on the gpt command. */ -#include <common.h> #include <blk.h> #include <command.h> #include <malloc.h> #include <part.h> +#include <vsprintf.h> /** * extract_val() - Extract a value from the key=value pair list
cmd/mdio.c +0 -1
@@ -8,7 +8,6 @@* MDIO Commands */ -#include <common.h> #include <command.h> #include <dm.h> #include <miiphy.h>
cmd/mem.c +1 -1
@@ -10,7 +10,6 @@* Copied from FADS ROM, Dan Malek ([email protected]) */ -#include <common.h> #include <console.h> #include <bootretry.h> #include <cli.h>
@@ -24,6 +23,7 @@#include <log.h> #include <mapmem.h> #include <rand.h> +#include <time.h> #include <watchdog.h> #include <asm/global_data.h> #include <asm/io.h>
cmd/meson/sm.c +1 -1
@@ -9,11 +9,11 @@*/ #include <command.h> -#include <common.h> #include <env.h> #include <asm/arch/sm.h> #include <stdlib.h> #include <display_options.h> +#include <vsprintf.h> static int do_sm_serial (struct cmd_tbl *cmdtp,int flag,int argc,char *const argv[])
cmd/mii.c +0 -1
@@ -8,7 +8,6 @@* MII Utilities */ -#include <common.h> #include <command.h> #include <dm.h> #include <miiphy.h>
cmd/misc.c +0 -1
@@ -8,7 +8,6 @@* A command interface to access misc devices with MISC uclass driver APIs. */ -#include <common.h> #include <command.h> #include <dm.h> #include <errno.h>
cmd/mmc.c +1 -1
@@ -4,7 +4,6 @@* Kyle Harris, [email protected] */ -#include <common.h> #include <blk.h> #include <command.h> #include <console.h>
@@ -14,6 +13,7 @@#include <part.h> #include <sparse_format.h> #include <image-sparse.h> +#include <vsprintf.h> static int curr_device =-1 ;
cmd/mp.c +1 -1
@@ -3,9 +3,9 @@* Copyright 2008-2009 Freescale Semiconductor, Inc. */ -#include <common.h> #include <command.h> #include <cpu_func.h> +#include <vsprintf.h> static int cpu_status_all (void ) {
cmd/mtd.c +0 -1
@@ -9,7 +9,6 @@*/ #include <command.h> -#include <common.h> #include <console.h> #if CONFIG_IS_ENABLED (CMD_MTD_OTP )#include <hexdump.h>
cmd/mtdparts.c +0 -1
@@ -70,7 +70,6 @@* */ -#include <common.h> #include <command.h> #include <env.h> #include <log.h>
cmd/mux.c +0 -1
@@ -6,7 +6,6 @@* Author: Pratyush Yadav <[email protected]> */ -#include <common.h> #include <command.h> #include <errno.h> #include <dm.h>
cmd/mvebu/bubt.c +0 -1
@@ -5,7 +5,6 @@*/ #include <config.h> -#include <common.h> #include <command.h> #include <env.h> #include <image.h>
cmd/mvebu/comphy_rx_training.c +0 -1
@@ -5,7 +5,6 @@* SPDX-License-Identifier: GPL-2.0 */ -#include <common.h> #include <command.h> #include <console.h> #include <dm.h>
cmd/nand.c +0 -1
@@ -23,7 +23,6 @@* only */ -#include <common.h> #include <bootstage.h> #include <image.h> #include <asm/cache.h>
cmd/net.c +0 -1
@@ -9,7 +9,6 @@/* * Boot support */ -#include <common.h> #include <bootstage.h> #include <command.h> #include <dm.h>
cmd/nvedit.c +1 -1
@@ -23,7 +23,7 @@* environment. After that, we use a hash table. */ -#include <common.h> +#include <config.h> #include <cli.h> #include <command.h> #include <console.h>
cmd/nvedit_efi.c +0 -1
@@ -6,7 +6,6 @@*/ #include <charset.h> -#include <common.h> #include <command.h> #include <efi_loader.h> #include <efi_variable.h>
cmd/nvme.c +0 -1
@@ -4,7 +4,6 @@* Copyright (C) 2017 Bin Meng <[email protected]> */ -#include <common.h> #include <blk.h> #include <command.h> #include <dm.h>
cmd/onenand.c +0 -1
@@ -9,7 +9,6 @@* published by the Free Software Foundation. */ -#include <common.h> #include <command.h> #include <malloc.h> #include <linux/printk.h>
cmd/optee_rpmb.c +0 -1
@@ -4,7 +4,6 @@*/ #include <command.h> -#include <common.h> #include <env.h> #include <errno.h> #include <image.h>
cmd/osd.c +0 -1
@@ -9,7 +9,6 @@* Dirk Eibach, Guntermann & Drunck GmbH, [email protected] */ -#include <common.h> #include <command.h> #include <dm.h> #include <hexdump.h>
cmd/panic.c +1 -1
@@ -3,7 +3,7 @@* Copyright (c) 2020 Theobroma Systems Design und Consulting GmbH */ -#include <common.h> +#include <vsprintf.h> #include <command.h> static int do_panic(struct cmd_tbl *cmdtp, int flag, int argc,
cmd/part.c +0 -1
@@ -15,7 +15,6 @@* Pavel Bartusek <[email protected]> */ -#include <common.h> #include <config.h> #include <command.h> #include <env.h>
cmd/pcap.c +1 -1
@@ -4,8 +4,8 @@* Ramon Fried <[email protected]> */ -#include <common.h> #include <command.h> +#include <vsprintf.h> #include <net.h> #include <net/pcap.h>
cmd/pci.c +0 -1
@@ -12,7 +12,6 @@* PCI routines */ -#include <common.h> #include <bootretry.h> #include <cli.h> #include <command.h>
cmd/pci_mps.c +0 -1
@@ -6,7 +6,6 @@* PCI Express Maximum Packet Size (MPS) configuration */ -#include <common.h> #include <bootretry.h> #include <cli.h> #include <command.h>
cmd/pinmux.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2018, STMicroelectronics - All Rights Reserved */ -#include <common.h> #include <command.h> #include <dm.h> #include <errno.h>
cmd/pmc.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2019 Google LLC */ -#include <common.h> #include <command.h> #include <dm.h> #include <power/acpi_pmc.h>
cmd/pmic.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2014-2015 Samsung Electronics * Przemyslaw Marczak <[email protected]> */ -#include <common.h> #include <command.h> #include <errno.h> #include <dm.h>
cmd/printf.c +1 -1
@@ -84,12 +84,12 @@* We try to be compatible. */ -#include <common.h> #include <ctype.h> #include <errno.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> +#include <vsprintf.h> #define WANT_HEX_ESCAPES 0#define PRINT_CONVERSION_ERROR 1
cmd/pvblock.c +0 -1
@@ -6,7 +6,6 @@*/ #include <blk.h> -#include <common.h> #include <command.h> /* Current I/O Device */
cmd/pxe.c +1 -1
@@ -4,12 +4,12 @@* Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. */ -#include <common.h> #include <command.h> #include <fs.h> #include <net.h> #include <net6.h> #include <malloc.h> +#include <vsprintf.h> #include "pxe_utils.h"
cmd/qfw.c +0 -1
@@ -3,7 +3,6 @@* (C) Copyright 2015 Miao Yan <[email protected]> */ -#include <common.h> #include <command.h> #include <env.h> #include <errno.h>
cmd/read.c +1 -1
@@ -8,10 +8,10 @@* Software Foundation. */ -#include <common.h> #include <command.h> #include <mapmem.h> #include <part.h> +#include <vsprintf.h> static int do_rw (struct cmd_tbl *cmdtp,int flag,int argc,char *const argv[])
cmd/reginfo.c +0 -1
@@ -4,7 +4,6 @@* Subodh Nijsure, SkyStream Networks, [email protected] */ -#include <common.h> #include <command.h> #include <asm/ppc.h>
cmd/regulator.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2014-2015 Samsung Electronics * Przemyslaw Marczak <[email protected]> */ -#include <common.h> #include <command.h> #include <errno.h> #include <dm.h>
cmd/remoteproc.c +0 -1
@@ -3,7 +3,6 @@* (C) Copyright 2015 * Texas Instruments Incorporated - https://www.ti.com/ */ -#include <common.h> #include <command.h> #include <dm.h> #include <errno.h>
cmd/riscv/sbi.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2020, Heinrich Schuchardt <[email protected]> */ -#include <common.h> #include <command.h> #include <asm/sbi.h>
cmd/rkmtd.c +0 -1
@@ -8,7 +8,6 @@* Copyright (C) 2023 Johan Jonker <[email protected]> */ -#include <common.h> #include <blk.h> #include <command.h> #include <dm.h>
cmd/rng.c +0 -1
@@ -4,7 +4,6 @@* * Copyright (c) 2019, Heinrich Schuchardt <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <hexdump.h>
cmd/rockusb.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2017 Eddie Cai <[email protected]> */ -#include <common.h> #include <command.h> #include <console.h> #include <g_dnl.h>
cmd/rtc.c +0 -1
@@ -1,6 +1,5 @@// SPDX-License-Identifier: GPL-2.0+ -#include <common.h> #include <command.h> #include <display_options.h> #include <dm.h>
cmd/sata.c +0 -1
@@ -9,7 +9,6 @@* Dave Liu <[email protected]> */ -#include <common.h> #include <ahci.h> #include <blk.h> #include <dm.h>
cmd/sb.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <spl.h>
cmd/scp03.c +0 -1
@@ -4,7 +4,6 @@* */ -#include <common.h> #include <command.h> #include <env.h> #include <scp03.h>
cmd/scsi.c +0 -1
@@ -7,7 +7,6 @@/* * SCSI support. */ -#include <common.h> #include <blk.h> #include <command.h> #include <scsi.h>
cmd/seama.c +0 -1
@@ -4,7 +4,6 @@* Support for the "SEAttle iMAge" SEAMA NAND image format */ -#include <common.h> #include <command.h> #include <nand.h>
cmd/setexpr.c +2 -1
@@ -8,7 +8,6 @@* This file provides a shell like 'expr' function to return. */ -#include <common.h> #include <config.h> #include <command.h> #include <ctype.h>
@@ -16,6 +15,8 @@#include <log.h> #include <malloc.h> #include <mapmem.h> +#include <vsprintf.h> +#include <linux/errno.h> #include <linux/sizes.h> #include "printf.h"
cmd/sf.c +1 -1
@@ -5,7 +5,6 @@* Copyright (C) 2008 Atmel Corporation */ -#include <common.h> #include <command.h> #include <display_options.h> #include <div64.h>
@@ -14,6 +13,7 @@#include <malloc.h> #include <mapmem.h> #include <spi.h> +#include <time.h> #include <spi_flash.h> #include <asm/cache.h> #include <jffs2/jffs2.h>
cmd/sha1sum.c +0 -1
@@ -7,7 +7,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <command.h> #include <hash.h> #include <u-boot/sha1.h>
cmd/sleep.c +2 -1
@@ -4,9 +4,10 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <command.h> #include <console.h> +#include <time.h> +#include <vsprintf.h> #include <linux/delay.h> static int do_sleep(struct cmd_tbl *cmdtp, int flag, int argc,
cmd/smccc.c +1 -1
@@ -4,8 +4,8 @@* Michalis Pappas <[email protected]> */ #include <asm/psci.h> -#include <common.h> #include <command.h> +#include <vsprintf.h> #include <linux/arm-smccc.h> #include <linux/compiler.h> #include <linux/psci.h>
cmd/sound.c +0 -1
@@ -4,7 +4,6 @@* Rajeshwari Shinde <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <fdtdec.h>
cmd/source.c +0 -1
@@ -14,7 +14,6 @@/* #define DEBUG */ -#include <common.h> #include <command.h> #include <env.h> #include <image.h>
cmd/spi.c +0 -1
@@ -8,7 +8,6 @@* SPI Read/Write Utilities */ -#include <common.h> #include <command.h> #include <dm.h> #include <errno.h>
cmd/spl.c +0 -1
@@ -4,7 +4,6 @@* Corscience GmbH & Co. KG - Simon Schwarz <[email protected]> */ -#include <common.h> #include <command.h> #include <cmd_spl.h> #include <env.h>
cmd/stackprot_test.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2021 Broadcom */ -#include <common.h> #include <command.h> static int do_test_stackprot_fail(struct cmd_tbl *cmdtp, int flag, int argc,
cmd/strings.c +1 -1
@@ -7,8 +7,8 @@*/ #include <config.h> -#include <common.h> #include <command.h> +#include <vsprintf.h> static char *start_addr, *last_addr;
cmd/sysboot.c +1 -1
@@ -1,10 +1,10 @@// SPDX-License-Identifier: GPL-2.0+ -#include <common.h> #include <command.h> #include <env.h> #include <fs.h> #include <pxe_utils.h> +#include <vsprintf.h> /** * struct sysboot_info - useful information for sysboot helpers
cmd/temperature.c +0 -1
@@ -5,7 +5,6 @@* Written by Robert Marko <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <thermal.h>
cmd/terminal.c +0 -1
@@ -7,7 +7,6 @@/* * Boot support */ -#include <common.h> #include <command.h> #include <stdio_dev.h> #include <serial.h>
cmd/test.c +1 -1
@@ -4,10 +4,10 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <command.h> #include <fs.h> #include <log.h> +#include <vsprintf.h> #define OP_INVALID 0#define OP_NOT 1
cmd/thordown.c +0 -1
@@ -6,7 +6,6 @@* All rights reserved. */ -#include <common.h> #include <command.h> #include <thor.h> #include <dfu.h>
cmd/ti/ddr3.c +0 -1
@@ -12,7 +12,6 @@#include <asm/arch/hardware.h> #include <asm/cache.h> #include <asm/emif.h> -#include <common.h> #include <command.h> #include <asm/global_data.h>
cmd/ti/pd.c +0 -1
@@ -5,7 +5,6 @@* Copyright (C) 2020 Texas Instruments Incorporated, <www.ti.com> */ -#include <common.h> #include <command.h> #include <dm.h> #include <k3-dev.h>
cmd/time.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2011 The Chromium OS Authors. */ -#include <common.h> #include <command.h> static void report_time (ulong cycles)
cmd/timer.c +1 -1
@@ -4,8 +4,8 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <command.h> +#include <time.h> static int do_timer (struct cmd_tbl *cmdtp,int flag,int argc,char *const argv[])
cmd/tlv_eeprom.c +0 -1
@@ -9,7 +9,6 @@* Copyright (C) 2014,2016 david_yang <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <i2c.h>
cmd/tpm-common.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2013 The Chromium OS Authors. */ -#include <common.h> #include <command.h> #include <dm.h> #include <env.h>
cmd/tpm-v1.c +1 -1
@@ -3,10 +3,10 @@* Copyright (c) 2013 The Chromium OS Authors. */ -#include <common.h> #include <command.h> #include <env.h> #include <malloc.h> +#include <vsprintf.h> #include <asm/unaligned.h> #include <tpm-common.h> #include <tpm-v1.h>
cmd/tpm-v2.c +0 -1
@@ -4,7 +4,6 @@* Author: Miquel Raynal <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <log.h>
cmd/tpm_test.c +1 -1
@@ -3,10 +3,10 @@* Copyright (c) 2015 Google, Inc */ -#include <common.h> #include <command.h> #include <cpu_func.h> #include <log.h> +#include <time.h> #include <tpm-v1.h> #include <linux/printk.h> #include "tpm-user-utils.h"
cmd/trace.c +1 -1
@@ -3,11 +3,11 @@* Copyright (c) 2011 The Chromium OS Authors. */ -#include <common.h> #include <command.h> #include <env.h> #include <mapmem.h> #include <trace.h> +#include <vsprintf.h> #include <asm/io.h> static int get_args(int argc, char *const argv[], char **buff,
cmd/tsi148.c +1 -1
@@ -7,10 +7,10 @@* (C) Copyright 2003 Stefan Roese, [email protected] */ -#include <common.h> #include <command.h> #include <log.h> #include <malloc.h> +#include <vsprintf.h> #include <asm/io.h> #include <pci.h>
cmd/ubi.c +0 -1
@@ -11,7 +11,6 @@* published by the Free Software Foundation. */ -#include <common.h> #include <command.h> #include <env.h> #include <exports.h>
cmd/ubifs.c +1 -1
@@ -11,11 +11,11 @@#undef DEBUG -#include <common.h> #include <config.h> #include <command.h> #include <log.h> #include <ubifs_uboot.h> +#include <vsprintf.h> static int ubifs_initialized;static int ubifs_mounted;
cmd/ufs.c +1 -1
@@ -5,9 +5,9 @@* Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com * */ -#include <common.h> #include <command.h> #include <ufs.h> +#include <vsprintf.h> static int do_ufs (struct cmd_tbl *cmdtp,int flag,int argc,char *const argv[]) {
cmd/universe.c +1 -1
@@ -3,9 +3,9 @@* (C) Copyright 2003 Stefan Roese, [email protected] */ -#include <common.h> #include <command.h> #include <malloc.h> +#include <vsprintf.h> #include <asm/io.h> #include <pci.h>
cmd/unlz4.c +1 -1
@@ -4,9 +4,9 @@* FUJITSU COMPUTERTECHNOLOGIES LIMITED. All rights reserved. */ -#include <common.h> #include <command.h> #include <env.h> +#include <vsprintf.h> #include <u-boot/lz4.h> static int do_unlz4(struct cmd_tbl *cmdtp, int flag, int argc,
cmd/unzip.c +1 -1
@@ -4,12 +4,12 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <command.h> #include <env.h> #include <gzip.h> #include <mapmem.h> #include <part.h> +#include <vsprintf.h> static int do_unzip (struct cmd_tbl *cmdtp,int flag,int argc,char *const argv[])
cmd/usb.c +0 -1
@@ -10,7 +10,6 @@* project. */ -#include <common.h> #include <blk.h> #include <bootstage.h> #include <command.h>
cmd/usb_gadget_sdp.c +0 -1
@@ -6,7 +6,6 @@* Author: Stefan Agner <[email protected]> */ -#include <common.h> #include <command.h> #include <g_dnl.h> #include <sdp.h>
cmd/usb_mass_storage.c +0 -1
@@ -6,7 +6,6 @@* Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. */ -#include <common.h> #include <blk.h> #include <command.h> #include <console.h>
cmd/vbe.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <bloblist.h> #include <bootmeth.h> #include <bootstd.h>
cmd/version.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <command.h> #include <display_options.h> #include <version_string.h>
cmd/video.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <video.h>
cmd/virtio.c +0 -1
@@ -4,7 +4,6 @@* Copyright (C) 2018, Bin Meng <[email protected]> */ -#include <common.h> #include <blk.h> #include <command.h> #include <dm.h>
cmd/w1.c +0 -1
@@ -4,7 +4,6 @@* Microchip Technology, Inc. * Eugen Hristev <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <w1.h>
cmd/wdt.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2019 Michael Walle <[email protected]> */ -#include <common.h> #include <command.h> #include <dm.h> #include <wdt.h>
cmd/wol.c +1 -1
@@ -7,9 +7,9 @@/* * Wake-on-LAN support */ -#include <common.h> #include <command.h> #include <net.h> +#include <vsprintf.h> #if defined(CONFIG_CMD_WOL )void wol_set_timeout (ulong );
cmd/x86/cbsysinfo.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <asm/cb_sysinfo.h> #include <command.h> #include <console.h>
cmd/x86/fsp.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2014-2015, Bin Meng <[email protected]> */ -#include <common.h> #include <command.h> #include <asm/fsp/fsp_support.h> #include <asm/global_data.h>
cmd/x86/hob.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2014-2015, Bin Meng <[email protected]> */ -#include <common.h> #include <command.h> #include <efi.h> #include <uuid.h>
cmd/x86/mtrr.c +1 -1
@@ -3,9 +3,9 @@* (C) Copyright 2014 Google, Inc */ -#include <common.h> #include <command.h> #include <log.h> +#include <vsprintf.h> #include <asm/msr.h> #include <asm/mp.h> #include <asm/mtrr.h>
cmd/ximg.c +0 -1
@@ -11,7 +11,6 @@/* * Multi Image extract */ -#include <common.h> #include <command.h> #include <cpu_func.h> #include <env.h>
cmd/xxd.c +0 -1
@@ -4,7 +4,6 @@* Roger Knecht <[email protected]> */ -#include <common.h> #include <command.h> #include <display_options.h> #include <fs.h>
cmd/yaffs2.c +0 -1
@@ -13,7 +13,6 @@* ... */ -#include <common.h> #include <config.h> #include <command.h>
cmd/zfs.c +0 -1
@@ -8,7 +8,6 @@* made from existing GRUB Sources by Sun, GNU and others. */ -#include <common.h> #include <part.h> #include <config.h> #include <command.h>
cmd/zip.c +1 -1
@@ -4,10 +4,10 @@* Lei Wen <[email protected]>, Marvell Inc. */ -#include <common.h> #include <command.h> #include <env.h> #include <gzip.h> +#include <vsprintf.h> static int do_zip (struct cmd_tbl *cmdtp,int flag,int argc,char *const argv[]) {
include/android_ab.h +2 -0
@@ -6,6 +6,8 @@#ifndef __ANDROID_AB_H#define __ANDROID_AB_H +#include <stdbool.h> +struct blk_desc ;struct disk_partition ;
Signature · 1 line
2.34.1
PATCH 12/18 common: Remove <common.h> and add needed includes
In reply to Tom RiniRemove <common.h> from all "commmon/" files and when needed add missing include files directly.
--- common/autoboot.c | 3 ++- common/bloblist.c | 1 - common/board_f.c | 2 +- common/board_info.c | 1 - common/board_r.c | 2 +- common/bootstage.c | 1 - common/bouncebuf.c | 1 - common/cli.c | 1 - common/cli_getch.c | 4 +++- common/cli_hush.c | 1 - common/cli_readline.c | 2 +- common/cli_simple.c | 1 - common/command.c | 3 ++- common/console.c | 1 - common/cros_ec.c | 1 - common/ddr_spd.c | 2 +- common/dfu.c | 1 - common/dlmalloc.c | 1 - common/edid.c | 1 - common/eeprom/eeprom_field.c | 3 ++- common/eeprom/eeprom_layout.c | 2 +- common/event.c | 2 +- common/exports.c | 1 - common/flash.c | 2 +- common/hash.c | 1 - common/hwconfig.c | 1 - common/init/board_init.c | 2 +- common/init/handoff.c | 2 +- common/iomux.c | 1 - common/iotrace.c | 1 - common/kallsyms.c | 1 - common/kgdb.c | 1 - common/kgdb_stubs.c | 1 - common/log.c | 1 - common/log_console.c | 1 - common/log_syslog.c | 1 - common/main.c | 1 - common/malloc_simple.c | 1 - common/memsize.c | 2 +- common/menu.c | 1 - common/miiphyutil.c | 1 - common/s_record.c | 1 - common/scp03.c | 3 ++- common/spl/spl.c | 2 +- common/spl/spl_atf.c | 1 - common/spl/spl_blk_fs.c | 1 - common/spl/spl_bootrom.c | 1 - common/spl/spl_dfu.c | 1 - common/spl/spl_ext.c | 1 - common/spl/spl_fat.c | 1 - common/spl/spl_fit.c | 1 - common/spl/spl_imx_container.c | 1 - common/spl/spl_legacy.c | 1 - common/spl/spl_mmc.c | 1 - common/spl/spl_nand.c | 1 - common/spl/spl_net.c | 1 - common/spl/spl_nor.c | 2 +- common/spl/spl_nvme.c | 1 - common/spl/spl_onenand.c | 1 - common/spl/spl_opensbi.c | 1 - common/spl/spl_ram.c | 1 - common/spl/spl_sata.c | 1 - common/spl/spl_sdp.c | 1 - common/spl/spl_semihosting.c | 1 - common/spl/spl_spi.c | 2 +- common/spl/spl_ubi.c | 1 - common/spl/spl_usb.c | 1 - common/spl/spl_xip.c | 2 +- common/spl/spl_ymodem.c | 1 - common/splash.c | 3 ++- common/splash_source.c | 1 - common/stackprot.c | 1 - common/stdio.c | 1 - common/update.c | 1 - common/usb.c | 1 - common/usb_hub.c | 2 +- common/usb_kbd.c | 2 +- common/usb_onboard_hub.c | 1 - common/usb_storage.c | 1 - common/xyzModem.c | 3 ++- include/atf_common.h | 2 ++ include/autoboot.h | 1 + include/bmp_layout.h | 2 ++ include/ddr_spd.h | 2 ++ include/flash.h | 2 ++ include/gzip.h | 2 ++ include/handoff.h | 1 + include/nand.h | 2 -- include/s_record.h | 2 ++ 89 files changed, 45 insertions(+), 82 deletions(-)
common/autoboot.c +2 -1
@@ -4,13 +4,14 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> +#include <config.h> #include <autoboot.h> #include <bootretry.h> #include <cli.h> #include <command.h> #include <console.h> #include <env.h> +#include <errno.h> #include <fdtdec.h> #include <hash.h> #include <log.h>
common/bloblist.c +0 -1
@@ -6,7 +6,6 @@#define LOG_CATEGORY LOGC_BLOBLIST -#include <common.h> #include <bloblist.h> #include <display_options.h> #include <log.h>
common/board_f.c +1 -1
@@ -9,7 +9,7 @@* Marius Groeger <[email protected]> */ -#include <common.h> +#include <config.h> #include <bloblist.h> #include <bootstage.h> #include <clock_legacy.h>
common/board_info.c +0 -1
@@ -1,6 +1,5 @@// SPDX-License-Identifier: GPL-2.0+ -#include <common.h> #include <dm.h> #include <init.h> #include <sysinfo.h>
common/board_r.c +1 -1
@@ -9,7 +9,7 @@* Marius Groeger <[email protected]> */ -#include <common.h> +#include <config.h> #include <api.h> #include <bootstage.h> #include <cpu_func.h>
common/bootstage.c +0 -1
@@ -11,7 +11,6 @@#define LOG_CATEGORY LOGC_BOOT -#include <common.h> #include <bootstage.h> #include <hang.h> #include <log.h>
common/bouncebuf.c +0 -1
@@ -5,7 +5,6 @@* Copyright (C) 2012 Marek Vasut <[email protected]> */ -#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h>
common/cli.c +0 -1
@@ -10,7 +10,6 @@#define pr_fmt (fmt) "cli: %s: " fmt, __func__ -#include <common.h> #include <ansi.h> #include <bootstage.h> #include <cli.h>
common/cli_getch.c +3 -1
@@ -6,8 +6,10 @@* Copyright 2022 Google LLC */ -#include <common.h> #include <cli.h> +#include <stdio.h> +#include <string.h> +#include <linux/errno.h> /** * enum cli_esc_state_t - indicates what to do with an escape character
common/cli_hush.c +0 -1
@@ -75,7 +75,6 @@#define __U_BOOT__#ifdef __U_BOOT__ -#include <common.h> /* readline */ #include <env.h> #include <malloc.h> /* malloc, free, realloc*/ #include <linux/ctype.h> /* isalpha, isdigit */
common/cli_readline.c +1 -1
@@ -8,7 +8,6 @@* JinHua Luo, GuangDong Linux Center, <[email protected]> */ -#include <common.h> #include <bootretry.h> #include <cli.h> #include <command.h>
@@ -16,6 +15,7 @@#include <malloc.h> #include <time.h> #include <watchdog.h> +#include <linux/errno.h> #include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR ;
common/cli_simple.c +0 -1
@@ -8,7 +8,6 @@* JinHua Luo, GuangDong Linux Center, <[email protected]> */ -#include <common.h> #include <bootretry.h> #include <cli.h> #include <command.h>
common/command.c +2 -1
@@ -8,7 +8,7 @@* Command Processor Table */ -#include <common.h> +#include <config.h> #include <compiler.h> #include <command.h> #include <console.h>
@@ -16,6 +16,7 @@#include <image.h> #include <log.h> #include <mapmem.h> +#include <time.h> #include <asm/global_data.h> #include <linux/ctype.h>
common/console.c +0 -1
@@ -4,7 +4,6 @@* Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), [email protected] */ -#include <common.h> #include <console.h> #include <debug_uart.h> #include <display_options.h>
common/cros_ec.c +0 -1
@@ -8,7 +8,6 @@* Software Foundation. */ -#include <common.h> #include <cros_ec.h> #include <dm.h> #include <errno.h>
common/ddr_spd.c +1 -1
@@ -3,8 +3,8 @@* Copyright 2008-2014 Freescale Semiconductor, Inc. */ -#include <common.h> #include <ddr_spd.h> +#include <stdio.h> /* used for ddr1 and ddr2 spd */ static int
common/dfu.c +0 -1
@@ -10,7 +10,6 @@* Lukasz Majewski <[email protected]> */ -#include <common.h> #include <command.h> #include <log.h> #include <watchdog.h>
common/dlmalloc.c +0 -1
@@ -12,7 +12,6 @@#define DEBUG #endif -#include <common.h> #include <log.h> #include <asm/global_data.h>
common/edid.c +0 -1
@@ -9,7 +9,6 @@* Copyright (C) Nalin Dahyabhai <[email protected]> */ -#include <common.h> #include <edid.h> #include <errno.h> #include <fdtdec.h>
common/eeprom/eeprom_field.c +2 -1
@@ -6,7 +6,8 @@* Igor Grinberg <[email protected]> */ -#include <common.h> +#include <stdio.h> +#include <vsprintf.h> #include <linux/string.h> #include <eeprom_field.h>
common/eeprom/eeprom_layout.c +1 -1
@@ -6,8 +6,8 @@* Igor Grinberg <[email protected]> */ -#include <common.h> #include <linux/kernel.h> +#include <linux/string.h> #include <eeprom_layout.h> #include <eeprom_field.h>
common/event.c +1 -1
@@ -9,13 +9,13 @@#define LOG_CATEGORY LOGC_EVENT -#include <common.h> #include <event.h> #include <event_internal.h> #include <log.h> #include <linker_lists.h> #include <malloc.h> #include <asm/global_data.h> +#include <linux/errno.h> #include <linux/list.h> #include <relocate.h>
common/exports.c +0 -1
@@ -1,4 +1,3 @@ -#include <common.h> #include <command.h> #include <exports.h> #include <malloc.h>
common/flash.c +1 -1
@@ -6,10 +6,10 @@/* #define DEBUG */ -#include <common.h> #include <flash.h> #include <log.h> #include <uuid.h> +#include <linux/string.h> #include <mtd/cfi_flash.h>
common/hash.c +0 -1
@@ -10,7 +10,6 @@*/ #ifndef USE_HOSTCC -#include <common.h> #include <command.h> #include <env.h> #include <log.h>
common/hwconfig.c +0 -1
@@ -10,7 +10,6 @@#ifndef HWCONFIG_TEST #include <config.h> -#include <common.h> #include <env.h> #include <exports.h> #include <hwconfig.h>
common/init/board_init.c +1 -1
@@ -6,7 +6,7 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> +#include <config.h> #include <bootstage.h> #include <init.h> #include <asm/global_data.h>
common/init/handoff.c +1 -1
@@ -5,9 +5,9 @@* Copyright 2018 Google, Inc */ -#include <common.h> #include <handoff.h> #include <asm/global_data.h> +#include <asm/u-boot.h> DECLARE_GLOBAL_DATA_PTR ;
common/iomux.c +0 -1
@@ -4,7 +4,6 @@* Gary Jennejohn, DENX Software Engineering GmbH, [email protected]. */ -#include <common.h> #include <console.h> #include <serial.h> #include <malloc.h>
common/iotrace.c +0 -1
@@ -5,7 +5,6 @@#define IOTRACE_IMPL -#include <common.h> #include <mapmem.h> #include <time.h> #include <asm/global_data.h>
common/kallsyms.c +0 -1
@@ -5,7 +5,6 @@* Licensed under the GPL-2 or later. */ -#include <common.h> /* We need the weak marking as this symbol is provided specially */ extern const char system_map[] __attribute__((weak));
common/kgdb.c +0 -1
@@ -87,7 +87,6 @@* ****************************************************************************/ -#include <common.h> #include <asm/ptrace.h> #include <kgdb.h>
common/kgdb_stubs.c +0 -1
@@ -7,7 +7,6 @@* Licensed under the GPL-2 or later. */ -#include <common.h> #include <cpu_func.h> #include <kgdb.h> #include <serial.h>
common/log.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <display_options.h> #include <log.h> #include <malloc.h>
common/log_console.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <log.h> #include <asm/global_data.h>
common/log_syslog.c +0 -1
@@ -5,7 +5,6 @@* Copyright (c) 2020, Heinrich Schuchardt <[email protected]> */ -#include <common.h> #include <log.h> #include <net.h> #include <asm/global_data.h>
common/main.c +0 -1
@@ -6,7 +6,6 @@/* #define DEBUG */ -#include <common.h> #include <autoboot.h> #include <button.h> #include <bootstage.h>
common/malloc_simple.c +0 -1
@@ -7,7 +7,6 @@#define LOG_CATEGORY LOGC_ALLOC -#include <common.h> #include <log.h> #include <malloc.h> #include <mapmem.h>
common/memsize.c +1 -1
@@ -4,7 +4,7 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> +#include <config.h> #include <init.h> #include <asm/global_data.h> #include <cpu_func.h>
common/menu.c +0 -1
@@ -5,7 +5,6 @@*/ #include <ansi.h> -#include <common.h> #include <cli.h> #include <malloc.h> #include <errno.h>
common/miiphyutil.c +0 -1
@@ -9,7 +9,6 @@* channel. */ -#include <common.h> #include <dm.h> #include <log.h> #include <miiphy.h>
common/s_record.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <s_record.h> static int hex1_bin (char c);
common/scp03.c +2 -1
@@ -4,10 +4,11 @@* */ -#include <common.h> #include <scp03.h> #include <tee.h> #include <tee/optee_ta_scp03.h> +#include <linux/errno.h> +#include <linux/string.h> static int scp03_enable (bool provision) {
common/spl/spl.c +1 -1
@@ -6,7 +6,7 @@* Aneesh V <[email protected]> */ -#include <common.h> +#include <config.h> #include <bloblist.h> #include <binman_sym.h> #include <bootstage.h>
common/spl/spl_atf.c +0 -1
@@ -9,7 +9,6 @@* Copyright (C) 2017 Theobroma Systems Design und Consulting GmbH */ -#include <common.h> #include <atf_common.h> #include <cpu_func.h> #include <errno.h>
common/spl/spl_blk_fs.c +0 -1
@@ -5,7 +5,6 @@* */ -#include <common.h> #include <spl.h> #include <spl_load.h> #include <image.h>
common/spl/spl_bootrom.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2017 Theobroma Systems Design und Consulting GmH */ -#include <common.h> #include <spl.h> __weak int board_return_to_bootrom(struct spl_image_info *spl_image,
common/spl/spl_dfu.c +0 -1
@@ -5,7 +5,6 @@* * Ravi B <[email protected]> */ -#include <common.h> #include <env.h> #include <spl.h> #include <linux/compiler.h>
common/spl/spl_ext.c +0 -1
@@ -1,6 +1,5 @@// SPDX-License-Identifier: GPL-2.0+ -#include <common.h> #include <env.h> #include <part.h> #include <spl.h>
common/spl/spl_fat.c +0 -1
@@ -8,7 +8,6 @@* FAT Image Functions copied from spl_mmc.c */ -#include <common.h> #include <env.h> #include <log.h> #include <spl.h>
common/spl/spl_fit.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <errno.h> #include <fpga.h> #include <gzip.h>
common/spl/spl_imx_container.c +0 -1
@@ -4,7 +4,6 @@*/ #define LOG_CATEGORY LOGC_ARCH -#include <common.h> #include <stdlib.h> #include <errno.h> #include <imx_container.h>
common/spl/spl_legacy.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2020 Stefan Roese <[email protected]> */ -#include <common.h> #include <image.h> #include <log.h> #include <malloc.h>
common/spl/spl_mmc.c +0 -1
@@ -5,7 +5,6 @@* * Aneesh V <[email protected]> */ -#include <common.h> #include <dm.h> #include <log.h> #include <part.h>
common/spl/spl_nand.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2011 * Corscience GmbH & Co. KG - Simon Schwarz <[email protected]> */ -#include <common.h> #include <config.h> #include <fdt_support.h> #include <image.h>
common/spl/spl_net.c +0 -1
@@ -6,7 +6,6 @@* (C) Copyright 2012 * Ilya Yanok <[email protected]> */ -#include <common.h> #include <env.h> #include <errno.h> #include <image.h>
common/spl/spl_nor.c +1 -1
@@ -3,7 +3,7 @@* Copyright (C) 2012 Stefan Roese <[email protected]> */ -#include <common.h> +#include <config.h> #include <image.h> #include <imx_container.h> #include <log.h>
common/spl/spl_nvme.c +0 -1
@@ -5,7 +5,6 @@* */ -#include <common.h> #include <spl.h> #include <nvme.h>
common/spl/spl_onenand.c +0 -1
@@ -7,7 +7,6 @@* Copyright (C) 2011 * Corscience GmbH & Co. KG - Simon Schwarz <[email protected]> */ -#include <common.h> #include <config.h> #include <image.h> #include <log.h>
common/spl/spl_opensbi.c +0 -1
@@ -5,7 +5,6 @@* * Based on common/spl/spl_atf.c */ -#include <common.h> #include <cpu_func.h> #include <errno.h> #include <hang.h>
common/spl/spl_ram.c +0 -1
@@ -9,7 +9,6 @@* Michal Simek <[email protected]> * Stefan Agner <[email protected]> */ -#include <common.h> #include <binman_sym.h> #include <image.h> #include <log.h>
common/spl/spl_sata.c +0 -1
@@ -8,7 +8,6 @@* Derived work from spl_usb.c */ -#include <common.h> #include <spl.h> #include <asm/u-boot.h> #include <sata.h>
common/spl/spl_sdp.c +0 -1
@@ -4,7 +4,6 @@* Author: Stefan Agner <[email protected]> */ -#include <common.h> #include <log.h> #include <spl.h> #include <usb.h>
common/spl/spl_semihosting.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2022 Sean Anderson <[email protected]> */ -#include <common.h> #include <image.h> #include <log.h> #include <semihosting.h>
common/spl/spl_spi.c +1 -1
@@ -8,7 +8,7 @@* Heiko Schocher, DENX Software Engineering, [email protected]. */ -#include <common.h> +#include <config.h> #include <image.h> #include <imx_container.h> #include <log.h>
common/spl/spl_ubi.c +0 -1
@@ -4,7 +4,6 @@* Ladislav Michl <[email protected]> */ -#include <common.h> #include <config.h> #include <image.h> #include <nand.h>
common/spl/spl_usb.c +0 -1
@@ -8,7 +8,6 @@* Derived work from spl_mmc.c */ -#include <common.h> #include <log.h> #include <spl.h> #include <asm/u-boot.h>
common/spl/spl_xip.c +1 -1
@@ -4,7 +4,7 @@* Author(s): Vikas Manocha, <[email protected]> for STMicroelectronics. */ -#include <common.h> +#include <config.h> #include <image.h> #include <log.h> #include <spl.h>
common/spl/spl_ymodem.c +0 -1
@@ -8,7 +8,6 @@* * Matt Porter <[email protected]> */ -#include <common.h> #include <gzip.h> #include <image.h> #include <log.h>
common/splash.c +2 -1
@@ -20,11 +20,12 @@* */ -#include <common.h> #include <display_options.h> #include <env.h> #include <splash.h> #include <video.h> +#include <vsprintf.h> +#include <linux/kernel.h> static struct splash_location default_splash_locations[] = { {
common/splash_source.c +0 -1
@@ -5,7 +5,6 @@* Authors: Igor Grinberg <[email protected]> */ -#include <common.h> #include <bmp_layout.h> #include <command.h> #include <env.h>
common/stackprot.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2021 Broadcom */ -#include <common.h> #include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR ;
common/stdio.c +0 -1
@@ -9,7 +9,6 @@*/ #include <config.h> -#include <common.h> #include <dm.h> #include <errno.h> #include <log.h>
common/update.c +0 -1
@@ -6,7 +6,6 @@* Bartlomiej Sieka <[email protected]> */ -#include <common.h> #include <cpu_func.h> #include <image.h> #include <linux/printk.h>
common/usb.c +0 -1
@@ -25,7 +25,6 @@* * For each transfer (except "Interrupt") we wait for completion. */ -#include <common.h> #include <command.h> #include <dm.h> #include <dm/device_compat.h>
common/usb_hub.c +1 -1
@@ -21,7 +21,6 @@* Probes device for being a hub and configurate it */ -#include <common.h> #include <command.h> #include <dm.h> #include <env.h>
@@ -29,6 +28,7 @@#include <log.h> #include <malloc.h> #include <memalign.h> +#include <time.h> #include <asm/processor.h> #include <asm/unaligned.h> #include <linux/ctype.h>
common/usb_kbd.c +1 -1
@@ -6,7 +6,6 @@* Part of this source has been derived from the Linux USB * project. */ -#include <common.h> #include <console.h> #include <dm.h> #include <env.h>
@@ -15,6 +14,7 @@#include <malloc.h> #include <memalign.h> #include <stdio_dev.h> +#include <time.h> #include <watchdog.h> #include <asm/byteorder.h> #ifdef CONFIG_SANDBOX
common/usb_onboard_hub.c +0 -1
@@ -7,7 +7,6 @@* Mostly inspired by Linux kernel v6.1 onboard_usb_hub driver */ -#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <power/regulator.h>
common/usb_storage.c +0 -1
@@ -32,7 +32,6 @@*/ -#include <common.h> #include <blk.h> #include <bootdev.h> #include <command.h>
common/xyzModem.c +2 -1
@@ -21,12 +21,13 @@* *========================================================================== */ -#include <common.h> #include <xyzModem.h> #include <stdarg.h> +#include <time.h> #include <u-boot/crc.h> #include <watchdog.h> #include <env.h> +#include <vsprintf.h> /* Assumption - run xyzModem protocol over the console port */
include/atf_common.h +2 -0
@@ -74,6 +74,8 @@#ifndef __ASSEMBLY__ +#include <linux/types.h> +/******************************************************************************* * Structure used for telling the next BL how much of a particular type of * memory is available for its use and how much is already used.
include/autoboot.h +1 -0
@@ -12,6 +12,7 @@#define __AUTOBOOT_H#include <stdbool.h> +#include <stddef.h> #ifdef CONFIG_SANDBOX
include/bmp_layout.h +2 -0
@@ -10,6 +10,8 @@#ifndef _BMP_H_#define _BMP_H_ +#include <linux/compiler.h> +struct __packed bmp_color_table_entry {__u8 blue;__u8 green;
include/ddr_spd.h +2 -0
@@ -6,6 +6,8 @@#ifndef _DDR_SPD_H_#define _DDR_SPD_H_ +#include <linux/types.h> +/* * Format from "JEDEC Standard No. 21-C, * Appendix D: Rev 1.0: SPD's for DDR SDRAM
include/flash.h +2 -0
@@ -7,6 +7,8 @@#ifndef _FLASH_H_#define _FLASH_H_ +#include <linux/types.h> +/*----------------------------------------------------------------------- * FLASH Info: contains chip specific data, per FLASH bank */
include/gzip.h +2 -0
@@ -7,6 +7,8 @@#ifndef __GZIP_H#define __GZIP_H +#include <linux/types.h> +struct blk_desc ;/**
include/handoff.h +1 -0
@@ -10,6 +10,7 @@#if CONFIG_IS_ENABLED (HANDOFF ) +#include <linux/types.h> #include <asm/handoff.h> /**
include/nand.h +0 -2
@@ -8,8 +8,6 @@#ifndef _NAND_H_#define _NAND_H_ -#include <config.h> -extern void nand_init (void );void nand_reinit (void );unsigned long nand_size (void );
include/s_record.h +2 -0
@@ -4,6 +4,8 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ +#include <linux/types.h> +/*-------------------------------------------------------------------------- * * Motorola S-Record Format:
Signature · 1 line
2.34.1
PATCH 13/18 part: Remove <common.h> and add needed includes
In reply to Tom RiniRemove <common.h> from all "part/" files and when needed add missing include files directly.
--- disk/disk-uclass.c | 1 - disk/part.c | 1 - disk/part_amiga.c | 2 +- disk/part_dos.c | 2 +- disk/part_efi.c | 1 - disk/part_iso.c | 1 - disk/part_mac.c | 1 - 7 files changed, 2 insertions(+), 7 deletions(-)
disk/disk-uclass.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY UCLASS_PARTITION -#include <common.h> #include <blk.h> #include <dm.h> #include <log.h>
disk/part.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <blk.h> #include <command.h> #include <env.h>
disk/part_amiga.c +1 -1
@@ -4,12 +4,12 @@* Hans-Joerg Frieden, Hyperion Entertainment * [email protected] */ -#include <common.h> #include <command.h> #include <env.h> #include <ide.h> #include "part_amiga.h" #include <part.h> +#include <vsprintf.h> #undef AMIGA_DEBUG
disk/part_dos.c +1 -1
@@ -13,11 +13,11 @@* http://developer.apple.com/techpubs/mac/Devices/Devices-126.html#MARKER-14-92 */ -#include <common.h> #include <blk.h> #include <command.h> #include <ide.h> #include <memalign.h> +#include <vsprintf.h> #include <asm/unaligned.h> #include <linux/compiler.h> #include "part_dos.h"
disk/part_efi.c +0 -1
@@ -12,7 +12,6 @@#define LOG_CATEGORY LOGC_FS -#include <common.h> #include <blk.h> #include <log.h> #include <part.h>
disk/part_iso.c +0 -1
@@ -4,7 +4,6 @@* Denis Peter, MPL AG Switzerland, [email protected]. */ -#include <common.h> #include <blk.h> #include <command.h> #include <part.h>
disk/part_mac.c +0 -1
@@ -12,7 +12,6 @@* http://developer.apple.com/techpubs/mac/Devices/Devices-126.html#MARKER-14-92 */ -#include <common.h> #include <command.h> #include <log.h> #include <memalign.h>
Signature · 1 line
2.34.1
PATCH 14/18 boot: Remove <common.h> and add needed includes
In reply to Tom RiniRemove <common.h> from all "boot/" files and when needed add missing include files directly.
--- boot/android_ab.c | 1 - boot/boot_fit.c | 1 - boot/bootdev-uclass.c | 1 - boot/bootflow.c | 1 - boot/bootflow_menu.c | 1 - boot/bootm.c | 1 - boot/bootm_os.c | 1 - boot/bootmeth-uclass.c | 1 - boot/bootmeth_cros.c | 1 - boot/bootmeth_efi.c | 1 - boot/bootmeth_efi_mgr.c | 1 - boot/bootmeth_extlinux.c | 1 - boot/bootmeth_pxe.c | 1 - boot/bootmeth_qfw.c | 1 - boot/bootmeth_sandbox.c | 1 - boot/bootmeth_script.c | 1 - boot/bootretry.c | 3 ++- boot/bootstd-uclass.c | 1 - boot/cedit.c | 1 - boot/common_fit.c | 1 - boot/expo.c | 1 - boot/expo_build.c | 1 - boot/fdt_simplefb.c | 1 - boot/fdt_support.c | 1 - boot/image-android-dt.c | 1 - boot/image-android.c | 1 - boot/image-board.c | 2 +- boot/image-cipher.c | 1 - boot/image-fdt.c | 1 - boot/image-fit-sig.c | 1 - boot/image-fit.c | 1 - boot/image-pre-load.c | 1 - boot/image-sig.c | 1 - boot/image.c | 1 - boot/pxe_utils.c | 1 - boot/scene.c | 1 - boot/scene_menu.c | 1 - boot/scene_textline.c | 4 +++- boot/vbe.c | 1 - boot/vbe_request.c | 1 - boot/vbe_simple.c | 1 - boot/vbe_simple_fw.c | 1 - boot/vbe_simple_os.c | 1 - 43 files changed, 6 insertions(+), 43 deletions(-)
boot/android_ab.c +0 -1
@@ -2,7 +2,6 @@/* * Copyright (C) 2017 The Android Open Source Project */ -#include <common.h> #include <android_ab.h> #include <android_bootloader_message.h> #include <blk.h>
boot/boot_fit.c +0 -1
@@ -7,7 +7,6 @@*/ #include <boot_fit.h> -#include <common.h> #include <errno.h> #include <image.h> #include <log.h>
boot/bootdev-uclass.c +0 -1
@@ -6,7 +6,6 @@#define LOG_CATEGORY UCLASS_BOOTSTD -#include <common.h> #include <dm.h> #include <bootdev.h> #include <bootflow.h>
boot/bootflow.c +0 -1
@@ -6,7 +6,6 @@#define LOG_CATEGORY UCLASS_BOOTSTD -#include <common.h> #include <bootdev.h> #include <bootflow.h> #include <bootmeth.h>
boot/bootflow_menu.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY UCLASS_BOOTSTD -#include <common.h> #include <bootflow.h> #include <bootstd.h> #include <cli.h>
boot/bootm.c +0 -1
@@ -5,7 +5,6 @@*/ #ifndef USE_HOSTCC -#include <common.h> #include <bootm.h> #include <bootstage.h> #include <cli.h>
boot/bootm_os.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <bootm.h> #include <bootstage.h> #include <cpu_func.h>
boot/bootmeth-uclass.c +0 -1
@@ -6,7 +6,6 @@#define LOG_CATEGORY UCLASS_BOOTSTD -#include <common.h> #include <blk.h> #include <bootflow.h> #include <bootmeth.h>
boot/bootmeth_cros.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY UCLASS_BOOTSTD -#include <common.h> #include <blk.h> #include <bootdev.h> #include <bootflow.h>
boot/bootmeth_efi.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY UCLASS_BOOTSTD -#include <common.h> #include <bootdev.h> #include <bootflow.h> #include <bootmeth.h>
boot/bootmeth_efi_mgr.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY UCLASS_BOOTSTD -#include <common.h> #include <bootdev.h> #include <bootflow.h> #include <bootmeth.h>
boot/bootmeth_extlinux.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY UCLASS_BOOTSTD -#include <common.h> #include <bootdev.h> #include <bootflow.h> #include <bootmeth.h>
boot/bootmeth_pxe.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY UCLASS_BOOTSTD -#include <common.h> #include <bootdev.h> #include <bootflow.h> #include <bootmeth.h>
boot/bootmeth_qfw.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY UCLASS_BOOTSTD -#include <common.h> #include <command.h> #include <bootdev.h> #include <bootflow.h>
boot/bootmeth_sandbox.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY UCLASS_BOOTSTD -#include <common.h> #include <bootdev.h> #include <bootflow.h> #include <bootmeth.h>
boot/bootmeth_script.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY UCLASS_BOOTSTD -#include <common.h> #include <blk.h> #include <bootflow.h> #include <bootmeth.h>
boot/bootretry.c +2 -1
@@ -4,12 +4,13 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> +#include <stdio.h> #include <bootretry.h> #include <cli.h> #include <env.h> #include <errno.h> #include <time.h> +#include <vsprintf.h> #include <watchdog.h> static uint64_t endtime;/* must be set, default is instant timeout */
boot/bootstd-uclass.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <bootflow.h> #include <bootstd.h> #include <dm.h>
boot/cedit.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY LOGC_EXPO -#include <common.h> #include <abuf.h> #include <cedit.h> #include <cli.h>
boot/common_fit.c +0 -1
@@ -4,7 +4,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <errno.h> #include <image.h> #include <log.h>
boot/expo.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY LOGC_EXPO -#include <common.h> #include <dm.h> #include <expo.h> #include <malloc.h>
boot/expo_build.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY LOGC_EXPO -#include <common.h> #include <expo.h> #include <fdtdec.h> #include <log.h>
boot/fdt_simplefb.c +0 -1
@@ -6,7 +6,6 @@* Stephen Warren <[email protected]> */ -#include <common.h> #include <dm.h> #include <fdt_support.h> #include <asm/global_data.h>
boot/fdt_support.c +0 -1
@@ -6,7 +6,6 @@* Copyright 2010-2011 Freescale Semiconductor, Inc. */ -#include <common.h> #include <abuf.h> #include <env.h> #include <log.h>
boot/image-android-dt.c +0 -1
@@ -6,7 +6,6 @@#include <image-android-dt.h> #include <dt_table.h> -#include <common.h> #include <linux/libfdt.h> #include <mapmem.h>
boot/image-android.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2011 Sebastian Andrzej Siewior <[email protected]> */ -#include <common.h> #include <env.h> #include <image.h> #include <image-android-dt.h>
boot/image-board.c +1 -1
@@ -8,7 +8,7 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> +#include <config.h> #include <bootstage.h> #include <cpu_func.h> #include <display_options.h>
boot/image-cipher.c +0 -1
@@ -7,7 +7,6 @@#include "mkimage.h" #include <time.h> #else -#include <common.h> #include <malloc.h> #include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR ;
boot/image-fdt.c +0 -1
@@ -8,7 +8,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <command.h> #include <fdt_support.h> #include <fdtdec.h>
boot/image-fit-sig.c +0 -1
@@ -7,7 +7,6 @@#include "mkimage.h" #include <time.h> #else -#include <common.h> #include <log.h> #include <malloc.h> #include <asm/global_data.h>
boot/image-fit.c +0 -1
@@ -19,7 +19,6 @@#else #include <linux/compiler.h> #include <linux/sizes.h> -#include <common.h> #include <errno.h> #include <log.h> #include <mapmem.h>
boot/image-pre-load.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2021 Philippe Reynes <[email protected]> */ -#include <common.h> #include <asm/global_data.h> DECLARE_GLOBAL_DATA_PTR ;#include <image.h>
boot/image-sig.c +0 -1
@@ -3,7 +3,6 @@* Copyright (c) 2013, Google Inc. */ -#include <common.h> #include <log.h> #include <malloc.h> #include <asm/global_data.h>
boot/image.c +0 -1
@@ -7,7 +7,6 @@*/ #ifndef USE_HOSTCC -#include <common.h> #include <env.h> #include <display_options.h> #include <init.h>
boot/pxe_utils.c +0 -1
@@ -4,7 +4,6 @@* Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. */ -#include <common.h> #include <command.h> #include <dm.h> #include <env.h>
boot/scene.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY LOGC_EXPO -#include <common.h> #include <dm.h> #include <expo.h> #include <malloc.h>
boot/scene_menu.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY LOGC_EXPO -#include <common.h> #include <dm.h> #include <expo.h> #include <malloc.h>
boot/scene_textline.c +3 -1
@@ -8,10 +8,12 @@#define LOG_CATEGORY LOGC_EXPO -#include <common.h> #include <expo.h> #include <menu.h> +#include <log.h> #include <video_console.h> +#include <linux/errno.h> +#include <linux/string.h> #include "scene_internal.h" int scene_textline(struct scene *scn, const char *name, uint id, uint max_chars,
boot/vbe.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <bootmeth.h> #include <bootstd.h> #include <dm.h>
boot/vbe_request.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY LOGC_BOOT -#include <common.h> #include <dm.h> #include <event.h> #include <image.h>
boot/vbe_simple.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY LOGC_BOOT -#include <common.h> #include <bootdev.h> #include <bootflow.h> #include <bootmeth.h>
boot/vbe_simple_fw.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY LOGC_BOOT -#include <common.h> #include <bloblist.h> #include <bootdev.h> #include <bootflow.h>
boot/vbe_simple_os.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY LOGC_BOOT -#include <common.h> #include <dm.h> #include <bootflow.h> #include <vbe.h>
Signature · 1 line
2.34.1
PATCH 15/18 env: Remove <common.h> and add needed includes
In reply to Tom RiniRemove <common.h> from all "env/" files and when needed add missing include files directly.
--- env/attr.c | 4 ++-- env/callback.c | 1 - env/common.c | 1 - env/eeprom.c | 1 - env/env.c | 2 +- env/ext4.c | 1 - env/fat.c | 1 - env/flags.c | 4 ++-- env/flash.c | 1 - env/mmc.c | 1 - env/nand.c | 1 - env/nowhere.c | 1 - env/nvram.c | 1 - env/onenand.c | 1 - env/remote.c | 2 +- env/sf.c | 1 - env/ubi.c | 1 - include/env_callback.h | 1 + include/env_default.h | 1 + include/env_flags.h | 2 ++ 20 files changed, 10 insertions(+), 19 deletions(-)
env/attr.c +2 -2
@@ -4,13 +4,13 @@* Joe Hershberger, National Instruments, [email protected] */ +#include <stdio.h> #ifdef USE_HOSTCC /* Eliminate "ANSI does not permit..." warnings */ #include <stdint.h> -#include <stdio.h> #include <linux/linux_string.h> #else -#include <common.h> #include <slre.h> +#include <vsprintf.h> #endif #include <env_attr.h>
env/callback.c +0 -1
@@ -4,7 +4,6 @@* Joe Hershberger, National Instruments, [email protected] */ -#include <common.h> #include <env.h> #include <env_internal.h> #include <asm/global_data.h>
env/common.c +0 -1
@@ -7,7 +7,6 @@* Andreas Heppel <[email protected]> */ -#include <common.h> #include <bootstage.h> #include <command.h> #include <env.h>
env/eeprom.c +0 -1
@@ -7,7 +7,6 @@* Andreas Heppel <[email protected]> */ -#include <common.h> #include <command.h> #include <eeprom.h> #include <env.h>
env/env.c +1 -1
@@ -4,13 +4,13 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <env.h> #include <env_internal.h> #include <log.h> #include <asm/global_data.h> #include <linux/bitops.h> #include <linux/bug.h> +#include <linux/errno.h> DECLARE_GLOBAL_DATA_PTR ;
env/ext4.c +0 -1
@@ -18,7 +18,6 @@* Manjunatha C Achar <[email protected]> */ -#include <common.h> #include <part.h> #include <command.h>
env/fat.c +0 -1
@@ -6,7 +6,6 @@* Maximilian Schwerin <[email protected]> */ -#include <common.h> #include <command.h> #include <env.h> #include <env_internal.h>
env/flags.c +2 -2
@@ -8,9 +8,9 @@#include <linux/string.h> #include <linux/ctype.h> +#include <stdio.h> #ifdef USE_HOSTCC /* Eliminate "ANSI does not permit..." warnings */ #include <stdint.h> -#include <stdio.h> #include "fw_env_private.h" #include "fw_env.h" #include <env_attr.h>
@@ -18,7 +18,7 @@#define env_get fw_getenv#define ARRAY_SIZE (x) (sizeof(x) / sizeof((x)[0]))#else -#include <common.h> +#include <linux/kernel.h> #include <env_internal.h> #endif
env/flash.c +0 -1
@@ -9,7 +9,6 @@/* #define DEBUG */ -#include <common.h> #include <command.h> #include <env.h> #include <env_internal.h>
env/mmc.c +0 -1
@@ -5,7 +5,6 @@/* #define DEBUG */ -#include <common.h> #include <asm/global_data.h> #include <command.h>
env/nand.c +0 -1
@@ -13,7 +13,6 @@* Andreas Heppel <[email protected]> */ -#include <common.h> #include <command.h> #include <env.h> #include <env_internal.h>
env/nowhere.c +0 -1
@@ -7,7 +7,6 @@* Andreas Heppel <[email protected]> */ -#include <common.h> #include <command.h> #include <env.h> #include <env_internal.h>
env/nvram.c +0 -1
@@ -7,7 +7,6 @@* Andreas Heppel <[email protected]> */ -#include <common.h> #include <command.h> #include <env.h> #include <env_internal.h>
env/onenand.c +0 -1
@@ -7,7 +7,6 @@* Kyungmin Park <[email protected]> */ -#include <common.h> #include <command.h> #include <env_internal.h> #include <asm/global_data.h>
env/remote.c +1 -1
@@ -5,10 +5,10 @@/* #define DEBUG */ -#include <common.h> #include <command.h> #include <env_internal.h> #include <asm/global_data.h> +#include <linux/errno.h> #include <linux/stddef.h> #include <u-boot/crc.h>
env/sf.c +0 -1
@@ -8,7 +8,6 @@* * (C) Copyright 2008 Atmel Corporation */ -#include <common.h> #include <dm.h> #include <env.h> #include <env_internal.h>
env/ubi.c +0 -1
@@ -4,7 +4,6 @@* Joe Hershberger <[email protected]> */ -#include <common.h> #include <asm/global_data.h> #include <command.h>
include/env_callback.h +1 -0
@@ -7,6 +7,7 @@#ifndef __ENV_CALLBACK_H__#define __ENV_CALLBACK_H__ +#include <config.h> #include <env_flags.h> #include <linker_lists.h> #include <search.h>
include/env_default.h +1 -0
@@ -7,6 +7,7 @@* Andreas Heppel <[email protected]> */ +#include <config.h> #include <env_callback.h> #include <linux/stringify.h>
include/env_flags.h +2 -0
@@ -7,6 +7,8 @@#ifndef __ENV_FLAGS_H__#define __ENV_FLAGS_H__ +#include <config.h> +enum env_flags_vartype { env_flags_vartype_string, env_flags_vartype_decimal,
Signature · 1 line
2.34.1
PATCH 16/18 net: Remove <common.h> and add needed includes
In reply to Tom RiniRemove <common.h> from all "net/" files and when needed add missing include files directly.
--- net/arp.c | 2 +- net/bootp.c | 1 - net/cdp.c | 1 - net/dhcpv6.c | 1 - net/dns.c | 1 - net/eth-uclass.c | 1 - net/eth_bootdev.c | 1 - net/eth_common.c | 1 - net/fastboot_tcp.c | 1 - net/fastboot_udp.c | 1 - net/link_local.c | 1 - net/mdio-mux-uclass.c | 1 - net/mdio-uclass.c | 1 - net/ndisc.c | 1 - net/net.c | 1 - net/net6.c | 2 +- net/nfs.c | 1 - net/pcap.c | 2 +- net/ping6.c | 1 - net/rarp.c | 1 - net/sntp.c | 1 - net/tcp.c | 1 - net/tftp.c | 1 - net/udp.c | 1 - net/wget.c | 1 - net/wol.c | 1 - 26 files changed, 3 insertions(+), 26 deletions(-)
net/arp.c +1 -1
@@ -9,10 +9,10 @@* Copyright 2000-2002 Wolfgang Denk, [email protected] */ -#include <common.h> #include <env.h> #include <log.h> #include <net.h> +#include <vsprintf.h> #include <linux/delay.h> #include "arp.h"
net/bootp.c +0 -1
@@ -8,7 +8,6 @@* Copyright 2000-2004 Wolfgang Denk, [email protected] */ -#include <common.h> #include <bootstage.h> #include <command.h> #include <env.h>
net/cdp.c +0 -1
@@ -9,7 +9,6 @@* Copyright 2000-2002 Wolfgang Denk, [email protected] */ -#include <common.h> #include <net.h> #include "cdp.h"
net/dhcpv6.c +0 -1
@@ -7,7 +7,6 @@/* Simple DHCP6 network layer implementation. */ -#include <common.h> #include <net6.h> #include <malloc.h> #include <linux/delay.h>
net/dns.c +0 -1
@@ -22,7 +22,6 @@* this stuff is worth it, you can buy me a beer in return. */ -#include <common.h> #include <command.h> #include <env.h> #include <log.h>
net/eth-uclass.c +0 -1
@@ -7,7 +7,6 @@#define LOG_CATEGORY UCLASS_ETH -#include <common.h> #include <bootdev.h> #include <bootstage.h> #include <dm.h>
net/eth_bootdev.c +0 -1
@@ -8,7 +8,6 @@#define LOG_CATEGORY UCLASS_BOOTSTD -#include <common.h> #include <bootdev.h> #include <bootflow.h> #include <command.h>
net/eth_common.c +0 -1
@@ -5,7 +5,6 @@* Joe Hershberger, National Instruments */ -#include <common.h> #include <bootstage.h> #include <dm.h> #include <env.h>
net/fastboot_tcp.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2023 The Android Open Source Project */ -#include <common.h> #include <fastboot.h> #include <net.h> #include <net/fastboot_tcp.h>
net/fastboot_udp.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2016 The Android Open Source Project */ -#include <common.h> #include <command.h> #include <fastboot.h> #include <net.h>
net/link_local.c +0 -1
@@ -11,7 +11,6 @@* Licensed under the GPL v2 or later */ -#include <common.h> #include <env.h> #include <log.h> #include <net.h>
net/mdio-mux-uclass.c +0 -1
@@ -4,7 +4,6 @@* Alex Marginean, NXP */ -#include <common.h> #include <dm.h> #include <log.h> #include <miiphy.h>
net/mdio-uclass.c +0 -1
@@ -4,7 +4,6 @@* Alex Marginean, NXP */ -#include <common.h> #include <dm.h> #include <dm/lists.h> #include <eth_phy.h>
net/ndisc.c +0 -1
@@ -9,7 +9,6 @@/* Neighbour Discovery for IPv6 */ -#include <common.h> #include <net.h> #include <net6.h> #include <ndisc.h>
net/net.c +0 -1
@@ -81,7 +81,6 @@*/ -#include <common.h> #include <bootstage.h> #include <command.h> #include <console.h>
net/net6.c +1 -1
@@ -9,12 +9,12 @@/* Simple IPv6 network layer implementation */ -#include <common.h> #include <env_internal.h> #include <malloc.h> #include <net.h> #include <net6.h> #include <ndisc.h> +#include <vsprintf.h> /* NULL IPv6 address */ struct in6_addr const net_null_addr_ip6 =ZERO_IPV6_ADDR ;
net/nfs.c +0 -1
@@ -30,7 +30,6 @@* September 27, 2018. As of now, NFSv3 is the default choice. If the server * does not support NFSv3, we fall back to versions 2 or 1. */ -#include <common.h> #include <command.h> #include <display_options.h> #ifdef CONFIG_SYS_DIRECT_FLASH_NFS
net/pcap.c +1 -1
@@ -3,10 +3,10 @@* Copyright 2019 Ramon Fried <[email protected]> */ -#include <common.h> #include <net.h> #include <net/pcap.h> #include <time.h> +#include <linux/errno.h> #include <asm/io.h> #define LINKTYPE_ETHERNET 1
net/ping6.c +0 -1
@@ -9,7 +9,6 @@/* Simple ping6 implementation */ -#include <common.h> #include <net.h> #include <net6.h> #include "ndisc.h"
net/rarp.c +0 -1
@@ -4,7 +4,6 @@* Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <common.h> #include <command.h> #include <log.h> #include <net.h>
net/sntp.c +0 -1
@@ -5,7 +5,6 @@* */ -#include <common.h> #include <command.h> #include <dm.h> #include <log.h>
net/tcp.c +0 -1
@@ -17,7 +17,6 @@* - TCP application (eg wget) * Next Step HTTPS? */ -#include <common.h> #include <command.h> #include <console.h> #include <env_internal.h>
net/tftp.c +0 -1
@@ -5,7 +5,6 @@* Copyright 2011 Comelit Group SpA, * Luca Ceresoli <[email protected]> */ -#include <common.h> #include <command.h> #include <display_options.h> #include <efi_loader.h>
net/udp.c +0 -1
@@ -3,7 +3,6 @@* Copyright (C) 2020 Philippe Reynes <[email protected]> */ -#include <common.h> #include <net.h> #include <net/udp.h>
net/wget.c +0 -1
@@ -6,7 +6,6 @@#include <asm/global_data.h> #include <command.h> -#include <common.h> #include <display_options.h> #include <env.h> #include <image.h>
net/wol.c +0 -1
@@ -3,7 +3,6 @@* Copyright 2018 Lothar Felten, [email protected] */ -#include <common.h> #include <command.h> #include <env.h> #include <net.h>
Signature · 1 line
2.34.1
PATCH 17/18 fs: Remove <common.h> and add needed includes
In reply to Tom RiniRemove <common.h> from all "fs/" files and when needed add missing include files directly.
--- fs/btrfs/dev.c | 1 - fs/btrfs/disk-io.c | 1 - fs/btrfs/volumes.c | 2 +- fs/cbfs/cbfs.c | 2 +- fs/cramfs/cramfs.c | 2 +- fs/cramfs/uncompress.c | 2 +- fs/ext4/dev.c | 1 - fs/ext4/ext4_common.c | 1 - fs/ext4/ext4_journal.c | 1 - fs/ext4/ext4_write.c | 1 - fs/ext4/ext4fs.c | 1 - fs/fat/fat.c | 1 - fs/fat/fat_write.c | 1 - fs/fs.c | 2 +- fs/fs_internal.c | 1 - fs/jffs2/compr_zlib.c | 2 -- fs/jffs2/jffs2_1pass.c | 1 - fs/jffs2/mergesort.c | 1 - fs/sandbox/host_bootdev.c | 1 - fs/sandbox/sandboxfs.c | 2 +- fs/semihostingfs.c | 2 +- fs/ubifs/super.c | 1 - fs/ubifs/ubifs.c | 1 - fs/yaffs2/yaffs_mtdif.c | 1 - fs/yaffs2/yaffs_mtdif2.c | 1 - fs/yaffs2/yaffs_uboot_glue.c | 1 - fs/zfs/dev.c | 1 - fs/zfs/zfs.c | 1 - fs/zfs/zfs_fletcher.c | 1 - fs/zfs/zfs_lzjb.c | 1 - fs/zfs/zfs_sha256.c | 1 - include/jffs2/load_kernel.h | 1 + 32 files changed, 8 insertions(+), 32 deletions(-)
fs/btrfs/dev.c +0 -1
@@ -5,7 +5,6 @@* 2017 Marek Behún, CZ.NIC, [email protected] */ -#include <common.h> #include <blk.h> #include <compiler.h> #include <fs_internal.h>
fs/btrfs/disk-io.c +0 -1
@@ -1,5 +1,4 @@// SPDX-License-Identifier: GPL-2.0+ -#include <common.h> #include <fs_internal.h> #include <log.h> #include <uuid.h>
fs/btrfs/volumes.c +1 -1
@@ -1,6 +1,6 @@// SPDX-License-Identifier: GPL-2.0+ #include <stdlib.h> -#include <common.h> +#include <errno.h> #include <fs_internal.h> #include "ctree.h" #include "disk-io.h"
fs/cbfs/cbfs.c +1 -1
@@ -3,10 +3,10 @@* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. */ -#include <common.h> #include <cbfs.h> #include <log.h> #include <malloc.h> +#include <linux/errno.h> #include <asm/byteorder.h> /* Offset of master header from the start of a coreboot ROM */
fs/cramfs/cramfs.c +1 -1
@@ -24,7 +24,7 @@* The actual compression is based on zlib, see the other files. */ -#include <common.h> +#include <stdio.h> #include <malloc.h> #include <asm/byteorder.h> #include <linux/stat.h>
fs/cramfs/uncompress.c +1 -1
@@ -20,7 +20,7 @@* then is used by multiple filesystems. */ -#include <common.h> +#include <stdio.h> #include <cyclic.h> #include <malloc.h> #include <watchdog.h>
fs/ext4/dev.c +0 -1
@@ -22,7 +22,6 @@* fs/ext2/dev.c file in uboot. */ -#include <common.h> #include <blk.h> #include <config.h> #include <fs_internal.h>
fs/ext4/ext4_common.c +0 -1
@@ -18,7 +18,6 @@* ext4write : Based on generic ext4 protocol. */ -#include <common.h> #include <blk.h> #include <ext_common.h> #include <ext4fs.h>
fs/ext4/ext4_journal.c +0 -1
@@ -13,7 +13,6 @@* Copyright 1998-2000 Red Hat, Inc --- All Rights Reserved */ -#include <common.h> #include <blk.h> #include <ext4fs.h> #include <log.h>
fs/ext4/ext4_write.c +0 -1
@@ -21,7 +21,6 @@*/ -#include <common.h> #include <blk.h> #include <log.h> #include <malloc.h>
fs/ext4/ext4fs.c +0 -1
@@ -20,7 +20,6 @@* ext4write : Based on generic ext4 protocol. */ -#include <common.h> #include <blk.h> #include <ext_common.h> #include <ext4fs.h>
fs/fat/fat.c +0 -1
@@ -10,7 +10,6 @@#define LOG_CATEGORY LOGC_FS -#include <common.h> #include <blk.h> #include <config.h> #include <exports.h>
fs/fat/fat_write.c +0 -1
@@ -7,7 +7,6 @@#define LOG_CATEGORY LOGC_FS -#include <common.h> #include <command.h> #include <config.h> #include <div64.h>
fs/fs.c +1 -1
@@ -9,7 +9,6 @@#include <config.h> #include <display_options.h> #include <errno.h> -#include <common.h> #include <env.h> #include <lmb.h> #include <log.h>
@@ -21,6 +20,7 @@#include <fs.h> #include <sandboxfs.h> #include <semihostingfs.h> +#include <time.h> #include <ubifs_uboot.h> #include <btrfs.h> #include <asm/global_data.h>
fs/fs_internal.c +0 -1
@@ -7,7 +7,6 @@#define LOG_CATEGORY LOGC_CORE -#include <common.h> #include <blk.h> #include <compiler.h> #include <log.h>
fs/jffs2/compr_zlib.c +0 -2
@@ -35,8 +35,6 @@* */ -#include <common.h> -#include <config.h> #include <jffs2/jffs2.h> #include <jffs2/mini_inflate.h>
fs/jffs2/jffs2_1pass.c +0 -1
@@ -111,7 +111,6 @@*/ -#include <common.h> #include <config.h> #include <malloc.h> #include <div64.h>
fs/jffs2/mergesort.c +0 -1
@@ -7,7 +7,6 @@* http://www.chiark.greenend.org.uk/~sgtatham/algorithms/listsort.html */ -#include <common.h> #include "jffs2_private.h" int sort_list (struct b_list *list)
fs/sandbox/host_bootdev.c +0 -1
@@ -6,7 +6,6 @@* Written by Simon Glass <[email protected]> */ -#include <common.h> #include <bootdev.h> #include <bootflow.h> #include <bootmeth.h>
fs/sandbox/sandboxfs.c +1 -1
@@ -3,7 +3,7 @@* Copyright (c) 2012, Google Inc. */ -#include <common.h> +#include <stdio.h> #include <fs.h> #include <malloc.h> #include <os.h>
fs/semihostingfs.c +1 -1
@@ -4,7 +4,7 @@* Copyright (c) 2012, Google Inc. */ -#include <common.h> +#include <stdio.h> #include <fs.h> #include <malloc.h> #include <os.h>
fs/ubifs/super.c +0 -1
@@ -29,7 +29,6 @@#include <linux/writeback.h> #else -#include <common.h> #include <malloc.h> #include <memalign.h> #include <linux/bitops.h>
fs/ubifs/ubifs.c +0 -1
@@ -11,7 +11,6 @@* Adrian Hunter */ -#include <common.h> #include <env.h> #include <gzip.h> #include <log.h>
fs/yaffs2/yaffs_mtdif.c +0 -1
@@ -12,7 +12,6 @@*/ /* XXX U-BOOT XXX */ -#include <common.h> #include "yportenv.h"
fs/yaffs2/yaffs_mtdif2.c +0 -1
@@ -14,7 +14,6 @@/* mtd interface for YAFFS2 */ /* XXX U-BOOT XXX */ -#include <common.h> #include <linux/bug.h> #include <linux/errno.h>
fs/yaffs2/yaffs_uboot_glue.c +0 -1
@@ -19,7 +19,6 @@* This version now uses the ydevconfig mechanism to set up partitions. */ -#include <common.h> #include <div64.h> #include <malloc.h> #include <linux/printk.h>
fs/zfs/dev.c +0 -1
@@ -8,7 +8,6 @@*/ -#include <common.h> #include <config.h> #include <fs_internal.h> #include <zfs_common.h>
fs/zfs/zfs.c +0 -1
@@ -10,7 +10,6 @@* Copyright 2004 Sun Microsystems, Inc. */ -#include <common.h> #include <log.h> #include <malloc.h> #include <linux/stat.h>
fs/zfs/zfs_fletcher.c +0 -1
@@ -8,7 +8,6 @@* Use is subject to license terms. */ -#include <common.h> #include <malloc.h> #include <linux/stat.h> #include <linux/time.h>
fs/zfs/zfs_lzjb.c +0 -1
@@ -8,7 +8,6 @@* Use is subject to license terms. */ -#include <common.h> #include <malloc.h> #include <linux/stat.h> #include <linux/time.h>
fs/zfs/zfs_sha256.c +0 -1
@@ -8,7 +8,6 @@* Use is subject to license terms. */ -#include <common.h> #include <malloc.h> #include <linux/stat.h> #include <linux/time.h>
include/jffs2/load_kernel.h +1 -0
@@ -10,6 +10,7 @@*-----------------------------------------------------------------------*/ #include <linux/list.h> +#include <linux/string.h> /* mtd device types */ #define MTD_DEV_TYPE_NOR 0x0001
Signature · 1 line
2.34.1