From 5c29daa150c5ba0a8acbdec90013f6526ac8d1f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Wed, 30 Nov 2016 14:53:24 +0200 Subject: buildsystem: Promote rules.h to default include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Does not fix 3rdparty/, *.S or *.ld or yet. Change-Id: I66b48013dd89540b35ab219d2b64bc13f5f19cda Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/17656 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- Makefile.inc | 1 + src/arch/arm64/boot.c | 1 - src/arch/riscv/boot.c | 1 - src/arch/riscv/stages.c | 1 - src/arch/x86/acpi_s3.c | 1 - src/arch/x86/exception.c | 1 - src/arch/x86/include/arch/acpi.h | 1 - src/arch/x86/include/arch/cpu.h | 1 - src/arch/x86/include/arch/early_variables.h | 1 - src/arch/x86/include/arch/exception.h | 1 - src/arch/x86/include/arch/io.h | 1 - src/arch/x86/include/arch/memlayout.h | 1 - src/arch/x86/rdrand.c | 1 - src/commonlib/storage/pci_sdhci.c | 1 - src/console/console.c | 1 - src/console/init.c | 1 - src/console/post.c | 1 - src/cpu/intel/microcode/microcode.c | 1 - src/cpu/x86/32bit/entry32.inc | 1 - src/cpu/x86/pae/pgtbl.c | 1 - src/drivers/intel/fsp1_1/cache_as_ram.inc | 1 - src/drivers/intel/fsp1_1/include/fsp/util.h | 1 - src/drivers/intel/fsp2_0/include/fsp/info_header.h | 1 - src/drivers/net/ne2k.c | 1 - src/drivers/spi/spi_flash.c | 1 - src/drivers/uart/uart8250io.c | 1 - src/drivers/uart/uart8250mem.c | 1 - src/include/bootstate.h | 1 - src/include/cbmem.h | 1 - src/include/console/cbmem_console.h | 1 - src/include/console/console.h | 1 - src/include/console/flash.h | 1 - src/include/console/ne2k.h | 1 - src/include/console/qemu_debugcon.h | 1 - src/include/console/spi.h | 1 - src/include/console/spkmodem.h | 1 - src/include/console/uart.h | 1 - src/include/console/usb.h | 1 - src/include/device/device.h | 1 - src/include/device/pci.h | 1 - src/include/device/pnp.h | 1 - src/include/memlayout.h | 1 - src/include/stddef.h | 1 - src/lib/bootmode.c | 1 - src/lib/cbmem_common.c | 1 - src/lib/ext_stage_cache.c | 1 - src/lib/imd_cbmem.c | 1 - src/lib/prog_loaders.c | 1 - src/lib/romstage_handoff.c | 1 - src/lib/timestamp.c | 1 - src/mainboard/google/cyan/chromeos.c | 1 - src/mainboard/google/dragonegg/chromeos.c | 1 - src/mainboard/google/eve/chromeos.c | 1 - src/mainboard/google/fizz/chromeos.c | 1 - src/mainboard/google/glados/chromeos.c | 1 - src/mainboard/google/kahlee/ec.c | 1 - src/mainboard/google/octopus/ec.c | 1 - src/mainboard/google/poppy/chromeos.c | 1 - src/mainboard/google/reef/ec.c | 1 - src/mainboard/google/sarien/chromeos.c | 1 - src/mainboard/google/storm/mmu.c | 1 - src/mainboard/intel/cannonlake_rvp/chromeos.c | 1 - src/mainboard/intel/coffeelake_rvp/chromeos.c | 1 - src/mainboard/intel/glkrvp/ec.c | 1 - src/mainboard/intel/icelake_rvp/chromeos.c | 1 - src/mainboard/intel/kblrvp/chromeos.c | 1 - src/mainboard/intel/kunimitsu/chromeos.c | 1 - src/mainboard/intel/strago/chromeos.c | 1 - src/northbridge/intel/fsp_rangeley/northbridge.h | 1 - src/northbridge/intel/gm45/gm45.h | 1 - src/northbridge/intel/sandybridge/sandybridge.h | 1 - src/security/vboot/bootmode.c | 1 - src/security/vboot/vboot_common.c | 1 - src/security/vboot/vboot_loader.c | 1 - src/soc/amd/common/block/pi/agesawrapper.c | 1 - src/soc/amd/stoneyridge/include/soc/pci_devs.h | 1 - src/soc/amd/stoneyridge/include/soc/southbridge.h | 1 - src/soc/intel/apollolake/include/soc/pci_devs.h | 1 - src/soc/intel/apollolake/pmutil.c | 1 - src/soc/intel/braswell/acpi.c | 1 - src/soc/intel/braswell/include/soc/iosf.h | 1 - src/soc/intel/braswell/include/soc/nvs.h | 1 - src/soc/intel/braswell/include/soc/smm.h | 1 - src/soc/intel/braswell/pmutil.c | 1 - src/soc/intel/braswell/spi.c | 1 - src/soc/intel/braswell/tsc_freq.c | 1 - src/soc/intel/cannonlake/include/soc/pci_devs.h | 1 - src/soc/intel/cannonlake/pmutil.c | 1 - src/soc/intel/common/block/p2sb/p2sb.c | 1 - src/soc/intel/denverton_ns/include/soc/pci_devs.h | 1 - src/soc/intel/icelake/include/soc/pci_devs.h | 1 - src/soc/intel/icelake/pmutil.c | 1 - src/soc/intel/skylake/include/soc/nvs.h | 1 - src/soc/intel/skylake/include/soc/pch.h | 1 - src/soc/intel/skylake/include/soc/pci_devs.h | 1 - src/soc/intel/skylake/pmutil.c | 1 - src/southbridge/amd/rs780/rs780.h | 1 - src/southbridge/intel/bd82x6x/early_pch_common.c | 1 - 98 files changed, 1 insertion(+), 97 deletions(-) diff --git a/Makefile.inc b/Makefile.inc index ddebe5e92a8e..594ef36ad7f6 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -383,6 +383,7 @@ CPPFLAGS_common += -Isrc/device/oprom/include VBOOT_SOURCE ?= 3rdparty/vboot CPPFLAGS_common += -I$(VBOOT_SOURCE)/firmware/include CPPFLAGS_common += -include $(src)/include/kconfig.h +CPPFLAGS_common += -include $(src)/include/rules.h CPPFLAGS_common += -include $(src)/commonlib/include/commonlib/compiler.h CPPFLAGS_common += -I3rdparty CPPFLAGS_common += -D__BUILD_DIR__=\"$(obj)\" diff --git a/src/arch/arm64/boot.c b/src/arch/arm64/boot.c index 54a33e0daf00..c2119f389033 100644 --- a/src/arch/arm64/boot.c +++ b/src/arch/arm64/boot.c @@ -19,7 +19,6 @@ #include #include #include -#include #include static void run_payload(struct prog *prog) diff --git a/src/arch/riscv/boot.c b/src/arch/riscv/boot.c index 04fba07234d2..3d8d5d623ebf 100644 --- a/src/arch/riscv/boot.c +++ b/src/arch/riscv/boot.c @@ -17,7 +17,6 @@ #include #include #include -#include #include #include diff --git a/src/arch/riscv/stages.c b/src/arch/riscv/stages.c index 4fe040934e4e..5e7fa4f75b0a 100644 --- a/src/arch/riscv/stages.c +++ b/src/arch/riscv/stages.c @@ -28,7 +28,6 @@ #include #include #include -#include void stage_entry(void) { diff --git a/src/arch/x86/acpi_s3.c b/src/arch/x86/acpi_s3.c index ad9fe0066b41..b5a94982a6ba 100644 --- a/src/arch/x86/acpi_s3.c +++ b/src/arch/x86/acpi_s3.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #if ENV_RAMSTAGE || ENV_POSTCAR diff --git a/src/arch/x86/exception.c b/src/arch/x86/exception.c index 0f42fdf79fab..700eb84cd0d4 100644 --- a/src/arch/x86/exception.c +++ b/src/arch/x86/exception.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include diff --git a/src/arch/x86/include/arch/acpi.h b/src/arch/x86/include/arch/acpi.h index cd86e83120a3..a061a271e85c 100644 --- a/src/arch/x86/include/arch/acpi.h +++ b/src/arch/x86/include/arch/acpi.h @@ -57,7 +57,6 @@ #if !defined(__ASSEMBLER__) && !defined(__ACPI__) && !defined(__ROMCC__) #include -#include #include #include #include diff --git a/src/arch/x86/include/arch/cpu.h b/src/arch/x86/include/arch/cpu.h index b50fef2b56b3..3ee5cea7618b 100644 --- a/src/arch/x86/include/arch/cpu.h +++ b/src/arch/x86/include/arch/cpu.h @@ -16,7 +16,6 @@ #include #include -#include /* * EFLAGS bits diff --git a/src/arch/x86/include/arch/early_variables.h b/src/arch/x86/include/arch/early_variables.h index 2cf76ad94a4b..2b74544d5c16 100644 --- a/src/arch/x86/include/arch/early_variables.h +++ b/src/arch/x86/include/arch/early_variables.h @@ -18,7 +18,6 @@ #include #include -#include #if ENV_CACHE_AS_RAM && !IS_ENABLED(CONFIG_NO_CAR_GLOBAL_MIGRATION) asm(".section .car.global_data,\"w\",@nobits"); diff --git a/src/arch/x86/include/arch/exception.h b/src/arch/x86/include/arch/exception.h index 8f7213d27eb0..08aedef79742 100644 --- a/src/arch/x86/include/arch/exception.h +++ b/src/arch/x86/include/arch/exception.h @@ -31,7 +31,6 @@ #define _ARCH_EXCEPTION_H #include -#include #if IS_ENABLED(CONFIG_IDT_IN_EVERY_STAGE) || ENV_RAMSTAGE asmlinkage void exception_init(void); diff --git a/src/arch/x86/include/arch/io.h b/src/arch/x86/include/arch/io.h index e4e3067a7578..4050a4798a19 100644 --- a/src/arch/x86/include/arch/io.h +++ b/src/arch/x86/include/arch/io.h @@ -16,7 +16,6 @@ #include #include -#include #include /* diff --git a/src/arch/x86/include/arch/memlayout.h b/src/arch/x86/include/arch/memlayout.h index 83e5b90c2a19..f93dece08653 100644 --- a/src/arch/x86/include/arch/memlayout.h +++ b/src/arch/x86/include/arch/memlayout.h @@ -16,7 +16,6 @@ #ifndef __ARCH_MEMLAYOUT_H #define __ARCH_MEMLAYOUT_H -#include #if ENV_BOOTBLOCK || ENV_ROMSTAGE || ENV_VERSTAGE /* No .data or .bss sections. Cache as RAM is handled separately. */ diff --git a/src/arch/x86/rdrand.c b/src/arch/x86/rdrand.c index 97aabd4ab5c8..35aac710a862 100644 --- a/src/arch/x86/rdrand.c +++ b/src/arch/x86/rdrand.c @@ -14,7 +14,6 @@ */ #include -#include /* * Intel recommends that applications attempt 10 retries in a tight loop diff --git a/src/commonlib/storage/pci_sdhci.c b/src/commonlib/storage/pci_sdhci.c index 5ecd89b4770e..9f7c521918ac 100644 --- a/src/commonlib/storage/pci_sdhci.c +++ b/src/commonlib/storage/pci_sdhci.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */ -#include #if ENV_RAMSTAGE #define __SIMPLE_DEVICE__ 1 #endif diff --git a/src/console/console.c b/src/console/console.c index 16c041e7b185..1a6aec12857d 100644 --- a/src/console/console.c +++ b/src/console/console.c @@ -22,7 +22,6 @@ #include #include #include -#include void console_hw_init(void) { diff --git a/src/console/init.c b/src/console/init.c index 0bafdbe3f086..ff1d61639a0b 100644 --- a/src/console/init.c +++ b/src/console/init.c @@ -20,7 +20,6 @@ #include #include #include -#include #include /* Mutable console log level only allowed when RAM comes online. */ diff --git a/src/console/post.c b/src/console/post.c index 323a1910f911..4c3753561bad 100644 --- a/src/console/post.c +++ b/src/console/post.c @@ -20,7 +20,6 @@ #include #include #include -#include /* Write POST information */ diff --git a/src/cpu/intel/microcode/microcode.c b/src/cpu/intel/microcode/microcode.c index d217cfd0bf13..abaeeb6be8b8 100644 --- a/src/cpu/intel/microcode/microcode.c +++ b/src/cpu/intel/microcode/microcode.c @@ -27,7 +27,6 @@ #include #include #include -#include #if !defined(__PRE_RAM__) #include diff --git a/src/cpu/x86/32bit/entry32.inc b/src/cpu/x86/32bit/entry32.inc index ae7cc019d937..837bccf87a19 100644 --- a/src/cpu/x86/32bit/entry32.inc +++ b/src/cpu/x86/32bit/entry32.inc @@ -15,7 +15,6 @@ #include #include -#include #include .code32 diff --git a/src/cpu/x86/pae/pgtbl.c b/src/cpu/x86/pae/pgtbl.c index 2cc9ba629fb8..278d50f833dc 100644 --- a/src/cpu/x86/pae/pgtbl.c +++ b/src/cpu/x86/pae/pgtbl.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include diff --git a/src/drivers/intel/fsp1_1/cache_as_ram.inc b/src/drivers/intel/fsp1_1/cache_as_ram.inc index 16712133e9f1..70e1ad716fd6 100644 --- a/src/drivers/intel/fsp1_1/cache_as_ram.inc +++ b/src/drivers/intel/fsp1_1/cache_as_ram.inc @@ -24,7 +24,6 @@ * performs the final stage of initialization. */ -#include #define LHLT_DELAY 0x50000 /* I/O delay between post codes on failure */ diff --git a/src/drivers/intel/fsp1_1/include/fsp/util.h b/src/drivers/intel/fsp1_1/include/fsp/util.h index ffc43bc01cd0..0ad7a4117a79 100644 --- a/src/drivers/intel/fsp1_1/include/fsp/util.h +++ b/src/drivers/intel/fsp1_1/include/fsp/util.h @@ -17,7 +17,6 @@ #ifndef FSP1_1_UTIL_H #define FSP1_1_UTIL_H -#include #include /* Current users expect to get the SoC's FSP definitions by including util.h. */ #include diff --git a/src/drivers/intel/fsp2_0/include/fsp/info_header.h b/src/drivers/intel/fsp2_0/include/fsp/info_header.h index 6dbf2fb139f5..e0659243ba49 100644 --- a/src/drivers/intel/fsp2_0/include/fsp/info_header.h +++ b/src/drivers/intel/fsp2_0/include/fsp/info_header.h @@ -13,7 +13,6 @@ #ifndef _FSP2_0_INFO_HEADER_H_ #define _FSP2_0_INFO_HEADER_H_ -#include #include #include #include diff --git a/src/drivers/net/ne2k.c b/src/drivers/net/ne2k.c index f56ab0d94161..caba600a3a6a 100644 --- a/src/drivers/net/ne2k.c +++ b/src/drivers/net/ne2k.c @@ -34,7 +34,6 @@ SMC8416 PIO support added by Andrew Bettison (andrewb@zip.com.au) on 4/3/02 #include #include #include -#include #include #include #include diff --git a/src/drivers/spi/spi_flash.c b/src/drivers/spi/spi_flash.c index 57bdaf4cb11c..f06de2a11a11 100644 --- a/src/drivers/spi/spi_flash.c +++ b/src/drivers/spi/spi_flash.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include diff --git a/src/drivers/uart/uart8250io.c b/src/drivers/uart/uart8250io.c index a61fbeb1530c..9b5f57cbbdf1 100644 --- a/src/drivers/uart/uart8250io.c +++ b/src/drivers/uart/uart8250io.c @@ -14,7 +14,6 @@ * GNU General Public License for more details. */ -#include #include #include #include diff --git a/src/drivers/uart/uart8250mem.c b/src/drivers/uart/uart8250mem.c index b73a428b9be7..94a7fc942631 100644 --- a/src/drivers/uart/uart8250mem.c +++ b/src/drivers/uart/uart8250mem.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include "uart8250reg.h" diff --git a/src/include/bootstate.h b/src/include/bootstate.h index edfabe553c0a..420320e15ea9 100644 --- a/src/include/bootstate.h +++ b/src/include/bootstate.h @@ -15,7 +15,6 @@ #ifndef BOOTSTATE_H #define BOOTSTATE_H -#include #include #include #include diff --git a/src/include/cbmem.h b/src/include/cbmem.h index ad48e357b7a2..59f4e105e113 100644 --- a/src/include/cbmem.h +++ b/src/include/cbmem.h @@ -18,7 +18,6 @@ #define _CBMEM_H_ #include -#include #include #include #include diff --git a/src/include/console/cbmem_console.h b/src/include/console/cbmem_console.h index e0e35b1cefe3..88e95bbfc652 100644 --- a/src/include/console/cbmem_console.h +++ b/src/include/console/cbmem_console.h @@ -15,7 +15,6 @@ #ifndef _CONSOLE_CBMEM_CONSOLE_H_ #define _CONSOLE_CBMEM_CONSOLE_H_ -#include #include void cbmemc_init(void); diff --git a/src/include/console/console.h b/src/include/console/console.h index a5f730535096..7ab61ea49511 100644 --- a/src/include/console/console.h +++ b/src/include/console/console.h @@ -17,7 +17,6 @@ #define CONSOLE_CONSOLE_H_ #include -#include #include #include #include diff --git a/src/include/console/flash.h b/src/include/console/flash.h index 07bc724b1938..1fd5f9117f2c 100644 --- a/src/include/console/flash.h +++ b/src/include/console/flash.h @@ -16,7 +16,6 @@ #ifndef CONSOLE_FLASH_H #define CONSOLE_FLASH_H 1 -#include #include void flashconsole_init(void); diff --git a/src/include/console/ne2k.h b/src/include/console/ne2k.h index 4b595e408407..b52f566896a9 100644 --- a/src/include/console/ne2k.h +++ b/src/include/console/ne2k.h @@ -16,7 +16,6 @@ #ifndef _NE2K_H__ #define _NE2K_H__ -#include #include void ne2k_append_data(unsigned char *d, int len, unsigned int base); diff --git a/src/include/console/qemu_debugcon.h b/src/include/console/qemu_debugcon.h index 3175684dfb1b..82dbd3fa919f 100644 --- a/src/include/console/qemu_debugcon.h +++ b/src/include/console/qemu_debugcon.h @@ -1,7 +1,6 @@ #ifndef _QEMU_DEBUGCON_H_ #define _QEMU_DEBUGCON_H_ -#include #include void qemu_debugcon_init(void); diff --git a/src/include/console/spi.h b/src/include/console/spi.h index 64379f8254bb..dc88c9ae1d0c 100644 --- a/src/include/console/spi.h +++ b/src/include/console/spi.h @@ -16,7 +16,6 @@ #ifndef CONSOLE_SPI_H #define CONSOLE_SPI_H 1 -#include #include void spiconsole_init(void); diff --git a/src/include/console/spkmodem.h b/src/include/console/spkmodem.h index 336cf149040b..f50aca3640f0 100644 --- a/src/include/console/spkmodem.h +++ b/src/include/console/spkmodem.h @@ -1,7 +1,6 @@ #ifndef SPKMODEM_H #define SPKMODEM_H 1 -#include #include void spkmodem_init(void); diff --git a/src/include/console/uart.h b/src/include/console/uart.h index 2e9c7b815ceb..b074f3515712 100644 --- a/src/include/console/uart.h +++ b/src/include/console/uart.h @@ -16,7 +16,6 @@ #ifndef CONSOLE_UART_H #define CONSOLE_UART_H -#include #include /* Return the clock frequency UART uses as reference clock for diff --git a/src/include/console/usb.h b/src/include/console/usb.h index d58a6a6e5092..4f10a5c5e66a 100644 --- a/src/include/console/usb.h +++ b/src/include/console/usb.h @@ -17,7 +17,6 @@ #ifndef _CONSOLE_USB_H_ #define _CONSOLE_USB_H_ -#include #include void usbdebug_init(void); diff --git a/src/include/device/device.h b/src/include/device/device.h index 540b7e389922..c794322d923b 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -11,7 +11,6 @@ #include #include -#include #include #include #include diff --git a/src/include/device/pci.h b/src/include/device/pci.h index 7cf7e0695e90..b75020551b4e 100644 --- a/src/include/device/pci.h +++ b/src/include/device/pci.h @@ -19,7 +19,6 @@ #include #include -#include #include #include #include diff --git a/src/include/device/pnp.h b/src/include/device/pnp.h index 69e0f8f3473b..bc6391f1f51a 100644 --- a/src/include/device/pnp.h +++ b/src/include/device/pnp.h @@ -2,7 +2,6 @@ #define DEVICE_PNP_H #include -#include #include #include #include diff --git a/src/include/memlayout.h b/src/include/memlayout.h index 5de2370e4be9..a8b3a60db318 100644 --- a/src/include/memlayout.h +++ b/src/include/memlayout.h @@ -18,7 +18,6 @@ #ifndef __MEMLAYOUT_H #define __MEMLAYOUT_H -#include #include /* Macros that the architecture can override. */ diff --git a/src/include/stddef.h b/src/include/stddef.h index 5df773541861..a82a68d1895f 100644 --- a/src/include/stddef.h +++ b/src/include/stddef.h @@ -2,7 +2,6 @@ #define STDDEF_H #include -#include typedef long ptrdiff_t; #ifndef __SIZE_TYPE__ diff --git a/src/lib/bootmode.c b/src/lib/bootmode.c index dcee2d175cbf..29682eb54db0 100644 --- a/src/lib/bootmode.c +++ b/src/lib/bootmode.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */ -#include #include #include diff --git a/src/lib/cbmem_common.c b/src/lib/cbmem_common.c index ba4660920d1f..40104941187d 100644 --- a/src/lib/cbmem_common.c +++ b/src/lib/cbmem_common.c @@ -15,7 +15,6 @@ #include #include -#include #include void cbmem_run_init_hooks(int is_recovery) diff --git a/src/lib/ext_stage_cache.c b/src/lib/ext_stage_cache.c index c3d4aee1902c..354342d41b60 100644 --- a/src/lib/ext_stage_cache.c +++ b/src/lib/ext_stage_cache.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include diff --git a/src/lib/imd_cbmem.c b/src/lib/imd_cbmem.c index d6eed28860dc..ff1cb95094c6 100644 --- a/src/lib/imd_cbmem.c +++ b/src/lib/imd_cbmem.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include diff --git a/src/lib/prog_loaders.c b/src/lib/prog_loaders.c index b7634177ff22..ac80a62c9d6a 100644 --- a/src/lib/prog_loaders.c +++ b/src/lib/prog_loaders.c @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include diff --git a/src/lib/romstage_handoff.c b/src/lib/romstage_handoff.c index bdfdb642b8e2..04ead0a83f78 100644 --- a/src/lib/romstage_handoff.c +++ b/src/lib/romstage_handoff.c @@ -18,7 +18,6 @@ #include #include #include -#include struct romstage_handoff { /* Indicate if the current boot is an S3 resume. If diff --git a/src/lib/timestamp.c b/src/lib/timestamp.c index 36d02516a39e..6885e7b55bd0 100644 --- a/src/lib/timestamp.c +++ b/src/lib/timestamp.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #define MAX_TIMESTAMPS 192 diff --git a/src/mainboard/google/cyan/chromeos.c b/src/mainboard/google/cyan/chromeos.c index 78856429d2bb..fd403a75782f 100644 --- a/src/mainboard/google/cyan/chromeos.c +++ b/src/mainboard/google/cyan/chromeos.c @@ -15,7 +15,6 @@ */ #include -#include #include #include #include diff --git a/src/mainboard/google/dragonegg/chromeos.c b/src/mainboard/google/dragonegg/chromeos.c index fa388e537951..657320cba33e 100644 --- a/src/mainboard/google/dragonegg/chromeos.c +++ b/src/mainboard/google/dragonegg/chromeos.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include diff --git a/src/mainboard/google/eve/chromeos.c b/src/mainboard/google/eve/chromeos.c index a77a23e06af1..06a4de9d35d6 100644 --- a/src/mainboard/google/eve/chromeos.c +++ b/src/mainboard/google/eve/chromeos.c @@ -14,7 +14,6 @@ * GNU General Public License for more details. */ -#include #include #include #include diff --git a/src/mainboard/google/fizz/chromeos.c b/src/mainboard/google/fizz/chromeos.c index 066d0c3e8460..3bd5b641c01d 100644 --- a/src/mainboard/google/fizz/chromeos.c +++ b/src/mainboard/google/fizz/chromeos.c @@ -14,7 +14,6 @@ */ #include -#include #include #include #include diff --git a/src/mainboard/google/glados/chromeos.c b/src/mainboard/google/glados/chromeos.c index 9433d7a06ae1..490ec002ef09 100644 --- a/src/mainboard/google/glados/chromeos.c +++ b/src/mainboard/google/glados/chromeos.c @@ -14,7 +14,6 @@ * GNU General Public License for more details. */ -#include #include #include #include diff --git a/src/mainboard/google/kahlee/ec.c b/src/mainboard/google/kahlee/ec.c index d2933a6b3073..7164591e11f2 100644 --- a/src/mainboard/google/kahlee/ec.c +++ b/src/mainboard/google/kahlee/ec.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include diff --git a/src/mainboard/google/octopus/ec.c b/src/mainboard/google/octopus/ec.c index 8ed862c7bc54..afc241dca890 100644 --- a/src/mainboard/google/octopus/ec.c +++ b/src/mainboard/google/octopus/ec.c @@ -19,7 +19,6 @@ #include #include #include -#include #include static void ramstage_ec_init(void) diff --git a/src/mainboard/google/poppy/chromeos.c b/src/mainboard/google/poppy/chromeos.c index cf9579ed9c1d..83b8aa056338 100644 --- a/src/mainboard/google/poppy/chromeos.c +++ b/src/mainboard/google/poppy/chromeos.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include diff --git a/src/mainboard/google/reef/ec.c b/src/mainboard/google/reef/ec.c index e08889ea7762..11d63ea25d4e 100644 --- a/src/mainboard/google/reef/ec.c +++ b/src/mainboard/google/reef/ec.c @@ -18,7 +18,6 @@ #include #include #include -#include #include static void ramstage_ec_init(void) diff --git a/src/mainboard/google/sarien/chromeos.c b/src/mainboard/google/sarien/chromeos.c index 33647dfe7d60..1e77cd9ff8bc 100644 --- a/src/mainboard/google/sarien/chromeos.c +++ b/src/mainboard/google/sarien/chromeos.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include diff --git a/src/mainboard/google/storm/mmu.c b/src/mainboard/google/storm/mmu.c index da157958a228..ba773c57a842 100644 --- a/src/mainboard/google/storm/mmu.c +++ b/src/mainboard/google/storm/mmu.c @@ -11,7 +11,6 @@ */ #include -#include #include #include #include "mmu.h" diff --git a/src/mainboard/intel/cannonlake_rvp/chromeos.c b/src/mainboard/intel/cannonlake_rvp/chromeos.c index b7dd91d4c0ec..296a3a51eac6 100644 --- a/src/mainboard/intel/cannonlake_rvp/chromeos.c +++ b/src/mainboard/intel/cannonlake_rvp/chromeos.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include diff --git a/src/mainboard/intel/coffeelake_rvp/chromeos.c b/src/mainboard/intel/coffeelake_rvp/chromeos.c index 9f7bc4110c7c..84f5f27f6af5 100644 --- a/src/mainboard/intel/coffeelake_rvp/chromeos.c +++ b/src/mainboard/intel/coffeelake_rvp/chromeos.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include diff --git a/src/mainboard/intel/glkrvp/ec.c b/src/mainboard/intel/glkrvp/ec.c index 09344a0a1658..0138a9c23410 100644 --- a/src/mainboard/intel/glkrvp/ec.c +++ b/src/mainboard/intel/glkrvp/ec.c @@ -19,7 +19,6 @@ #include #include #include -#include #include static void ramstage_ec_init(void) diff --git a/src/mainboard/intel/icelake_rvp/chromeos.c b/src/mainboard/intel/icelake_rvp/chromeos.c index 6fe27cd9253e..5965d95c320d 100644 --- a/src/mainboard/intel/icelake_rvp/chromeos.c +++ b/src/mainboard/intel/icelake_rvp/chromeos.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include diff --git a/src/mainboard/intel/kblrvp/chromeos.c b/src/mainboard/intel/kblrvp/chromeos.c index e4afce282128..2be32321239f 100644 --- a/src/mainboard/intel/kblrvp/chromeos.c +++ b/src/mainboard/intel/kblrvp/chromeos.c @@ -17,7 +17,6 @@ #include #include #include -#include #include #include #include diff --git a/src/mainboard/intel/kunimitsu/chromeos.c b/src/mainboard/intel/kunimitsu/chromeos.c index 54f9bbedcc99..75115c88bafd 100644 --- a/src/mainboard/intel/kunimitsu/chromeos.c +++ b/src/mainboard/intel/kunimitsu/chromeos.c @@ -14,7 +14,6 @@ * GNU General Public License for more details. */ -#include #include #include #include diff --git a/src/mainboard/intel/strago/chromeos.c b/src/mainboard/intel/strago/chromeos.c index fbcbcf7757af..5e9cad641f78 100644 --- a/src/mainboard/intel/strago/chromeos.c +++ b/src/mainboard/intel/strago/chromeos.c @@ -14,7 +14,6 @@ * GNU General Public License for more details. */ -#include #include #include #include diff --git a/src/northbridge/intel/fsp_rangeley/northbridge.h b/src/northbridge/intel/fsp_rangeley/northbridge.h index 11089a576431..e3846831f854 100644 --- a/src/northbridge/intel/fsp_rangeley/northbridge.h +++ b/src/northbridge/intel/fsp_rangeley/northbridge.h @@ -23,7 +23,6 @@ /* Everything below this line is ignored in the DSDT */ #ifndef __ACPI__ -#include #include /* Device 0:0.0 PCI configuration space (Host Bridge) */ diff --git a/src/northbridge/intel/gm45/gm45.h b/src/northbridge/intel/gm45/gm45.h index 086afd52c2ed..736d6af6bdf0 100644 --- a/src/northbridge/intel/gm45/gm45.h +++ b/src/northbridge/intel/gm45/gm45.h @@ -21,7 +21,6 @@ #ifndef __ACPI__ -#include #include typedef enum { diff --git a/src/northbridge/intel/sandybridge/sandybridge.h b/src/northbridge/intel/sandybridge/sandybridge.h index 9e3da4bede4e..8e6be2953ea0 100644 --- a/src/northbridge/intel/sandybridge/sandybridge.h +++ b/src/northbridge/intel/sandybridge/sandybridge.h @@ -65,7 +65,6 @@ enum platform_type { PLATFORM_DESKTOP_SERVER, }; -#include /* Device 0:0.0 PCI configuration space (Host Bridge) */ diff --git a/src/security/vboot/bootmode.c b/src/security/vboot/bootmode.c index 24b8f9524f2e..59eaf2f5400e 100644 --- a/src/security/vboot/bootmode.c +++ b/src/security/vboot/bootmode.c @@ -17,7 +17,6 @@ #include #include #include -#include #include #include #include diff --git a/src/security/vboot/vboot_common.c b/src/security/vboot/vboot_common.c index a8361cafafd2..c80650f3be9c 100644 --- a/src/security/vboot/vboot_common.c +++ b/src/security/vboot/vboot_common.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include diff --git a/src/security/vboot/vboot_loader.c b/src/security/vboot/vboot_loader.c index 57a3b4985fbb..75f75b5cf813 100644 --- a/src/security/vboot/vboot_loader.c +++ b/src/security/vboot/vboot_loader.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include diff --git a/src/soc/amd/common/block/pi/agesawrapper.c b/src/soc/amd/common/block/pi/agesawrapper.c index d376e6db41e5..e12c8e950507 100644 --- a/src/soc/amd/common/block/pi/agesawrapper.c +++ b/src/soc/amd/common/block/pi/agesawrapper.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include diff --git a/src/soc/amd/stoneyridge/include/soc/pci_devs.h b/src/soc/amd/stoneyridge/include/soc/pci_devs.h index 038c071a78e5..20ab99bbdaf8 100644 --- a/src/soc/amd/stoneyridge/include/soc/pci_devs.h +++ b/src/soc/amd/stoneyridge/include/soc/pci_devs.h @@ -17,7 +17,6 @@ #define __PI_STONEYRIDGE_PCI_DEVS_H__ #include -#include #if !defined(__SIMPLE_DEVICE__) #include diff --git a/src/soc/amd/stoneyridge/include/soc/southbridge.h b/src/soc/amd/stoneyridge/include/soc/southbridge.h index 7070d970b162..adf3af243d4b 100644 --- a/src/soc/amd/stoneyridge/include/soc/southbridge.h +++ b/src/soc/amd/stoneyridge/include/soc/southbridge.h @@ -23,7 +23,6 @@ #include #include #include "chip.h" -#include /* * AcpiMmio Region diff --git a/src/soc/intel/apollolake/include/soc/pci_devs.h b/src/soc/intel/apollolake/include/soc/pci_devs.h index ad726f8c2c96..5773a0132183 100644 --- a/src/soc/intel/apollolake/include/soc/pci_devs.h +++ b/src/soc/intel/apollolake/include/soc/pci_devs.h @@ -16,7 +16,6 @@ #define _SOC_APOLLOLAKE_PCI_DEVS_H_ #include -#include #define _SA_DEVFN(slot) PCI_DEVFN(SA_DEV_SLOT_ ## slot, 0) #define _PCH_DEVFN(slot, func) PCI_DEVFN(PCH_DEV_SLOT_ ## slot, func) diff --git a/src/soc/intel/apollolake/pmutil.c b/src/soc/intel/apollolake/pmutil.c index 812a16a23a91..e40f8204711b 100644 --- a/src/soc/intel/apollolake/pmutil.c +++ b/src/soc/intel/apollolake/pmutil.c @@ -29,7 +29,6 @@ #include #include #include -#include #include #include #include diff --git a/src/soc/intel/braswell/acpi.c b/src/soc/intel/braswell/acpi.c index efddc3b447fd..44f1d3a7a0ba 100644 --- a/src/soc/intel/braswell/acpi.c +++ b/src/soc/intel/braswell/acpi.c @@ -30,7 +30,6 @@ #include #include #include -#include #include #include #include diff --git a/src/soc/intel/braswell/include/soc/iosf.h b/src/soc/intel/braswell/include/soc/iosf.h index 464f1cd7027e..f02f07e3a869 100644 --- a/src/soc/intel/braswell/include/soc/iosf.h +++ b/src/soc/intel/braswell/include/soc/iosf.h @@ -17,7 +17,6 @@ #ifndef _SOC_IOSF_H_ #define _SOC_IOSF_H_ -#include #include #if ENV_RAMSTAGE #include diff --git a/src/soc/intel/braswell/include/soc/nvs.h b/src/soc/intel/braswell/include/soc/nvs.h index 7f044a5d216a..d2dc70659e3b 100644 --- a/src/soc/intel/braswell/include/soc/nvs.h +++ b/src/soc/intel/braswell/include/soc/nvs.h @@ -19,7 +19,6 @@ #define _SOC_NVS_H_ #include -#include #include #include diff --git a/src/soc/intel/braswell/include/soc/smm.h b/src/soc/intel/braswell/include/soc/smm.h index 13b511ac7de3..93065a2a94e7 100644 --- a/src/soc/intel/braswell/include/soc/smm.h +++ b/src/soc/intel/braswell/include/soc/smm.h @@ -17,7 +17,6 @@ #ifndef _SOC_SMM_H_ #define _SOC_SMM_H_ -#include #if ENV_RAMSTAGE #include diff --git a/src/soc/intel/braswell/pmutil.c b/src/soc/intel/braswell/pmutil.c index 8dbb49920268..be1b49ea29ac 100644 --- a/src/soc/intel/braswell/pmutil.c +++ b/src/soc/intel/braswell/pmutil.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include diff --git a/src/soc/intel/braswell/spi.c b/src/soc/intel/braswell/spi.c index 988832d09dec..febf1d25b716 100644 --- a/src/soc/intel/braswell/spi.c +++ b/src/soc/intel/braswell/spi.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include diff --git a/src/soc/intel/braswell/tsc_freq.c b/src/soc/intel/braswell/tsc_freq.c index 891aaff7ded4..28e376116592 100644 --- a/src/soc/intel/braswell/tsc_freq.c +++ b/src/soc/intel/braswell/tsc_freq.c @@ -16,7 +16,6 @@ #include #include -#include #include #if ENV_RAMSTAGE #include diff --git a/src/soc/intel/cannonlake/include/soc/pci_devs.h b/src/soc/intel/cannonlake/include/soc/pci_devs.h index 005cda3bc306..779f1d0c0372 100644 --- a/src/soc/intel/cannonlake/include/soc/pci_devs.h +++ b/src/soc/intel/cannonlake/include/soc/pci_devs.h @@ -18,7 +18,6 @@ #define _SOC_CANNONLAKE_PCI_DEVS_H_ #include -#include #define _SA_DEVFN(slot) PCI_DEVFN(SA_DEV_SLOT_ ## slot, 0) #define _PCH_DEVFN(slot, func) PCI_DEVFN(PCH_DEV_SLOT_ ## slot, func) diff --git a/src/soc/intel/cannonlake/pmutil.c b/src/soc/intel/cannonlake/pmutil.c index b57102df42e4..6783b9323079 100644 --- a/src/soc/intel/cannonlake/pmutil.c +++ b/src/soc/intel/cannonlake/pmutil.c @@ -31,7 +31,6 @@ #include #include #include -#include #include #include #include diff --git a/src/soc/intel/common/block/p2sb/p2sb.c b/src/soc/intel/common/block/p2sb/p2sb.c index e93223f7089b..f9930c1b3726 100644 --- a/src/soc/intel/common/block/p2sb/p2sb.c +++ b/src/soc/intel/common/block/p2sb/p2sb.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include diff --git a/src/soc/intel/denverton_ns/include/soc/pci_devs.h b/src/soc/intel/denverton_ns/include/soc/pci_devs.h index b10a90530bf8..3535862eb7be 100644 --- a/src/soc/intel/denverton_ns/include/soc/pci_devs.h +++ b/src/soc/intel/denverton_ns/include/soc/pci_devs.h @@ -20,7 +20,6 @@ /* All these devices live on bus 0 with the associated device and function */ -#include #define _SA_DEVFN(slot) PCI_DEVFN(SA_DEV_SLOT_##slot, 0) #define _PCH_DEVFN(slot, func) PCI_DEVFN(PCH_DEV_SLOT_##slot, func) diff --git a/src/soc/intel/icelake/include/soc/pci_devs.h b/src/soc/intel/icelake/include/soc/pci_devs.h index 94f1d0d7c892..13c56d6b4825 100644 --- a/src/soc/intel/icelake/include/soc/pci_devs.h +++ b/src/soc/intel/icelake/include/soc/pci_devs.h @@ -17,7 +17,6 @@ #define _SOC_ICELAKE_PCI_DEVS_H_ #include -#include #define _SA_DEVFN(slot) PCI_DEVFN(SA_DEV_SLOT_ ## slot, 0) #define _PCH_DEVFN(slot, func) PCI_DEVFN(PCH_DEV_SLOT_ ## slot, func) diff --git a/src/soc/intel/icelake/pmutil.c b/src/soc/intel/icelake/pmutil.c index abd52c4ff089..2f089331d317 100644 --- a/src/soc/intel/icelake/pmutil.c +++ b/src/soc/intel/icelake/pmutil.c @@ -30,7 +30,6 @@ #include #include #include -#include #include #include #include diff --git a/src/soc/intel/skylake/include/soc/nvs.h b/src/soc/intel/skylake/include/soc/nvs.h index 7102a78a325d..72b1ac99d36b 100644 --- a/src/soc/intel/skylake/include/soc/nvs.h +++ b/src/soc/intel/skylake/include/soc/nvs.h @@ -19,7 +19,6 @@ #define _SOC_NVS_H_ #include -#include #include typedef struct global_nvs_t { diff --git a/src/soc/intel/skylake/include/soc/pch.h b/src/soc/intel/skylake/include/soc/pch.h index e9e2f2f30f37..d95bcaf2598a 100644 --- a/src/soc/intel/skylake/include/soc/pch.h +++ b/src/soc/intel/skylake/include/soc/pch.h @@ -19,7 +19,6 @@ #define _SOC_PCH_H_ #include -#include void pch_log_state(void); #if ENV_RAMSTAGE diff --git a/src/soc/intel/skylake/include/soc/pci_devs.h b/src/soc/intel/skylake/include/soc/pci_devs.h index 1fc3621ce360..2f432a55c601 100644 --- a/src/soc/intel/skylake/include/soc/pci_devs.h +++ b/src/soc/intel/skylake/include/soc/pci_devs.h @@ -18,7 +18,6 @@ #define _SOC_SKYLAKE_PCI_DEVS_H_ #include -#include #define _SA_DEVFN(slot) PCI_DEVFN(SA_DEV_SLOT_ ## slot, 0) #define _PCH_DEVFN(slot, func) PCI_DEVFN(PCH_DEV_SLOT_ ## slot, func) diff --git a/src/soc/intel/skylake/pmutil.c b/src/soc/intel/skylake/pmutil.c index 335df53ddc3b..a79cf041b37b 100644 --- a/src/soc/intel/skylake/pmutil.c +++ b/src/soc/intel/skylake/pmutil.c @@ -29,7 +29,6 @@ #include #include #include -#include #include #include #include diff --git a/src/southbridge/amd/rs780/rs780.h b/src/southbridge/amd/rs780/rs780.h index 354555fb5c50..3a9dbeee254b 100644 --- a/src/southbridge/amd/rs780/rs780.h +++ b/src/southbridge/amd/rs780/rs780.h @@ -16,7 +16,6 @@ #ifndef __RS780_H__ #define __RS780_H__ -#include #include #include "chip.h" #include "rev.h" diff --git a/src/southbridge/intel/bd82x6x/early_pch_common.c b/src/southbridge/intel/bd82x6x/early_pch_common.c index a9ec9b1a2c18..2e9ad7f8261c 100644 --- a/src/southbridge/intel/bd82x6x/early_pch_common.c +++ b/src/southbridge/intel/bd82x6x/early_pch_common.c @@ -20,7 +20,6 @@ #include "pch.h" #include #include -#include #if ENV_ROMSTAGE int southbridge_detect_s3_resume(void) -- cgit v1.2.3