From 8823ba167318e87f74717d0c32e29b58a1ed3eca Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Mon, 5 Dec 2022 08:48:50 +0100 Subject: treewide: Include instead of ` chain-include `: https://doc.coreboot.org/contributing/coding_style.html#headers-and-includes Also sort includes while on it. Change-Id: Ie62e4295ce735a6ca74fbe2499b41aab2e76d506 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/70291 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/device/xhci.c | 2 +- src/drivers/emulation/qemu/bochs.c | 8 ++++---- src/drivers/intel/ptt/ptt.c | 6 +++--- src/drivers/siemens/nc_fpga/nc_fpga_early.c | 2 +- src/include/cpu/x86/lapic.h | 2 +- src/mainboard/google/dedede/fw_config.c | 2 +- src/mainboard/google/dedede/variants/bugzzy/ramstage.c | 6 +++--- src/mainboard/protectli/vault_bsw/mainboard.c | 2 +- src/mainboard/scaleway/tagada/hsio.c | 6 +++--- src/mainboard/siemens/mc_ehl/romstage_fsp_params.c | 2 +- src/northbridge/intel/x4x/bootblock.c | 2 +- src/security/intel/txt/common.c | 4 ++-- src/security/intel/txt/logging.c | 2 +- src/security/intel/txt/ramstage.c | 2 +- src/security/intel/txt/romstage.c | 2 +- src/soc/amd/common/block/acpi/ivrs.c | 2 +- src/soc/amd/common/block/psp/psb.c | 5 +++-- src/soc/amd/common/block/psp/psp_efs.c | 2 +- src/soc/amd/common/block/spi/fch_spi.c | 2 +- src/soc/amd/picasso/agesa_acpi.c | 2 +- src/soc/intel/alderlake/bootblock/update_descriptor.c | 2 +- src/southbridge/intel/lynxpoint/uart_init.c | 2 +- 22 files changed, 34 insertions(+), 33 deletions(-) (limited to 'src') diff --git a/src/device/xhci.c b/src/device/xhci.c index 4523b56adc..f7c5958a6c 100644 --- a/src/device/xhci.c +++ b/src/device/xhci.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ -#include #include +#include #include #include #include diff --git a/src/drivers/emulation/qemu/bochs.c b/src/drivers/emulation/qemu/bochs.c index d3b9007abe..4634021b67 100644 --- a/src/drivers/emulation/qemu/bochs.c +++ b/src/drivers/emulation/qemu/bochs.c @@ -1,16 +1,16 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include #include -#include #include #include +#include #include -#include #include +#include +#include #include #include -#include +#include /* VGA init. We use the Bochs VESA VBE extensions */ #define VBE_DISPI_IOPORT_INDEX 0x01CE diff --git a/src/drivers/intel/ptt/ptt.c b/src/drivers/intel/ptt/ptt.c index 5b0918bada..76b8ed6c91 100644 --- a/src/drivers/intel/ptt/ptt.c +++ b/src/drivers/intel/ptt/ptt.c @@ -1,10 +1,10 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include -#include -#include #include +#include +#include #include +#include #include #include "ptt.h" diff --git a/src/drivers/siemens/nc_fpga/nc_fpga_early.c b/src/drivers/siemens/nc_fpga/nc_fpga_early.c index 44ed97a49f..8cdc1f9106 100644 --- a/src/drivers/siemens/nc_fpga/nc_fpga_early.c +++ b/src/drivers/siemens/nc_fpga/nc_fpga_early.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include +#include #include #include #include diff --git a/src/include/cpu/x86/lapic.h b/src/include/cpu/x86/lapic.h index cfb9c9098b..f7fecf1342 100644 --- a/src/include/cpu/x86/lapic.h +++ b/src/include/cpu/x86/lapic.h @@ -3,10 +3,10 @@ #ifndef CPU_X86_LAPIC_H #define CPU_X86_LAPIC_H -#include #include #include #include +#include #include #include diff --git a/src/mainboard/google/dedede/fw_config.c b/src/mainboard/google/dedede/fw_config.c index 7e5d8fa2e2..d176283c2a 100644 --- a/src/mainboard/google/dedede/fw_config.c +++ b/src/mainboard/google/dedede/fw_config.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include #include +#include #include #include #include diff --git a/src/mainboard/google/dedede/variants/bugzzy/ramstage.c b/src/mainboard/google/dedede/variants/bugzzy/ramstage.c index 7844b6e360..8fb448dd45 100644 --- a/src/mainboard/google/dedede/variants/bugzzy/ramstage.c +++ b/src/mainboard/google/dedede/variants/bugzzy/ramstage.c @@ -1,13 +1,13 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ +#include #include -#include #include -#include #include +#include #include -#include #include +#include static void panel_power_on(uintptr_t igd_bar) { diff --git a/src/mainboard/protectli/vault_bsw/mainboard.c b/src/mainboard/protectli/vault_bsw/mainboard.c index 3c9c45c476..ec4f81635e 100644 --- a/src/mainboard/protectli/vault_bsw/mainboard.c +++ b/src/mainboard/protectli/vault_bsw/mainboard.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ -#include #include +#include #include #define BIOS_CONTROL_REG 0xFC diff --git a/src/mainboard/scaleway/tagada/hsio.c b/src/mainboard/scaleway/tagada/hsio.c index d305427f02..d6fb676ba0 100644 --- a/src/mainboard/scaleway/tagada/hsio.c +++ b/src/mainboard/scaleway/tagada/hsio.c @@ -1,12 +1,12 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include #include -#include +#include +#include #include +#include #include #include -#include #ifdef __RAMSTAGE__ static void update_hsio_info_for_m2_slots(size_t num_of_entry, BL_HSIO_INFORMATION *config) diff --git a/src/mainboard/siemens/mc_ehl/romstage_fsp_params.c b/src/mainboard/siemens/mc_ehl/romstage_fsp_params.c index 7befa4a9db..506bcc6824 100644 --- a/src/mainboard/siemens/mc_ehl/romstage_fsp_params.c +++ b/src/mainboard/siemens/mc_ehl/romstage_fsp_params.c @@ -1,9 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include #include #include #include +#include #include #include #include diff --git a/src/northbridge/intel/x4x/bootblock.c b/src/northbridge/intel/x4x/bootblock.c index 71a0609e55..123385961f 100644 --- a/src/northbridge/intel/x4x/bootblock.c +++ b/src/northbridge/intel/x4x/bootblock.c @@ -1,8 +1,8 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ #include -#include #include +#include #include #include diff --git a/src/security/intel/txt/common.c b/src/security/intel/txt/common.c index b88062d42b..b78394add2 100644 --- a/src/security/intel/txt/common.c +++ b/src/security/intel/txt/common.c @@ -1,12 +1,12 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include -#include #include +#include #include #include #include #include +#include #include #include #include diff --git a/src/security/intel/txt/logging.c b/src/security/intel/txt/logging.c index e3fcb5e274..6485b867e2 100644 --- a/src/security/intel/txt/logging.c +++ b/src/security/intel/txt/logging.c @@ -1,8 +1,8 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include #include #include +#include #include #include "txt.h" diff --git a/src/security/intel/txt/ramstage.c b/src/security/intel/txt/ramstage.c index 744b05e410..8a266a4230 100644 --- a/src/security/intel/txt/ramstage.c +++ b/src/security/intel/txt/ramstage.c @@ -1,13 +1,13 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include -#include #include #include #include #include #include #include +#include #include #include #include diff --git a/src/security/intel/txt/romstage.c b/src/security/intel/txt/romstage.c index e045c9d6fb..e1329dd957 100644 --- a/src/security/intel/txt/romstage.c +++ b/src/security/intel/txt/romstage.c @@ -1,11 +1,11 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include -#include #include #include #include #include +#include #include #include #include diff --git a/src/soc/amd/common/block/acpi/ivrs.c b/src/soc/amd/common/block/acpi/ivrs.c index 1b4257a2fc..0c5853a2c0 100644 --- a/src/soc/amd/common/block/acpi/ivrs.c +++ b/src/soc/amd/common/block/acpi/ivrs.c @@ -6,11 +6,11 @@ #include #include #include -#include #include #include #include #include +#include #include #include #include diff --git a/src/soc/amd/common/block/psp/psb.c b/src/soc/amd/common/block/psp/psb.c index 58b957d4d7..be5d43b40d 100644 --- a/src/soc/amd/common/block/psp/psb.c +++ b/src/soc/amd/common/block/psp/psb.c @@ -1,12 +1,13 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include -#include #include #include +#include #include #include +#include #include + #include "psp_def.h" #define PSB_STATUS_OFFSET 0x10994 diff --git a/src/soc/amd/common/block/psp/psp_efs.c b/src/soc/amd/common/block/psp/psp_efs.c index eacd5f637c..709273e8d8 100644 --- a/src/soc/amd/common/block/psp/psp_efs.c +++ b/src/soc/amd/common/block/psp/psp_efs.c @@ -1,10 +1,10 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include -#include #include #include #include +#include #include static struct embedded_firmware *efs; diff --git a/src/soc/amd/common/block/spi/fch_spi.c b/src/soc/amd/common/block/spi/fch_spi.c index 4a8482e97e..d9708b1eb0 100644 --- a/src/soc/amd/common/block/spi/fch_spi.c +++ b/src/soc/amd/common/block/spi/fch_spi.c @@ -4,8 +4,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/src/soc/amd/picasso/agesa_acpi.c b/src/soc/amd/picasso/agesa_acpi.c index 839d7c0652..1e6a6d4765 100644 --- a/src/soc/amd/picasso/agesa_acpi.c +++ b/src/soc/amd/picasso/agesa_acpi.c @@ -7,11 +7,11 @@ #include #include #include -#include #include #include #include #include +#include #include #include #include diff --git a/src/soc/intel/alderlake/bootblock/update_descriptor.c b/src/soc/intel/alderlake/bootblock/update_descriptor.c index 9c8ce9c732..11e7ccddfe 100644 --- a/src/soc/intel/alderlake/bootblock/update_descriptor.c +++ b/src/soc/intel/alderlake/bootblock/update_descriptor.c @@ -1,11 +1,11 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ -#include #include #include #include #include #include +#include #include #include #include diff --git a/src/southbridge/intel/lynxpoint/uart_init.c b/src/southbridge/intel/lynxpoint/uart_init.c index 66b9e01981..5048e5d545 100644 --- a/src/southbridge/intel/lynxpoint/uart_init.c +++ b/src/southbridge/intel/lynxpoint/uart_init.c @@ -1,9 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include -#include #include #include +#include #include #include #include -- cgit v1.2.3