diff options
author | Nico Huber <nico.h@gmx.de> | 2018-10-04 23:42:42 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2018-10-08 16:57:27 +0000 |
commit | d44221f9c8f3686e040ff9481829315068b321a3 (patch) | |
tree | 76337bf1cae88feda44e3c63dd7e32e964e8767d /src/cpu | |
parent | 834543c0c71544b547194b093b8e1da990722762 (diff) |
Move compiler.h to commonlib
Its spreading copies got out of sync. And as it is not a standard header
but used in commonlib code, it belongs into commonlib. While we are at
it, always include it via GCC's `-include` switch.
Some Windows and BSD quirk handling went into the util copies. We always
guard from redefinitions now to prevent further issues.
Change-Id: I850414e6db1d799dce71ff2dc044e6a000ad2552
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/28927
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/allwinner/a10/clock.h | 1 | ||||
-rw-r--r-- | src/cpu/allwinner/a10/gpio.h | 1 | ||||
-rw-r--r-- | src/cpu/allwinner/a10/timer.h | 1 | ||||
-rw-r--r-- | src/cpu/allwinner/a10/uart.h | 1 | ||||
-rw-r--r-- | src/cpu/amd/car/disable_cache_as_ram.c | 1 | ||||
-rw-r--r-- | src/cpu/amd/family_10h-family_15h/init_cpus.c | 1 | ||||
-rw-r--r-- | src/cpu/intel/microcode/microcode.c | 1 | ||||
-rw-r--r-- | src/cpu/intel/smm/gen1/smmrelocate.c | 1 | ||||
-rw-r--r-- | src/cpu/ti/am335x/clock.h | 1 | ||||
-rw-r--r-- | src/cpu/ti/am335x/gpio.h | 1 | ||||
-rw-r--r-- | src/cpu/ti/am335x/header.c | 1 | ||||
-rw-r--r-- | src/cpu/ti/am335x/header.h | 1 | ||||
-rw-r--r-- | src/cpu/ti/am335x/uart.h | 2 | ||||
-rw-r--r-- | src/cpu/x86/mp_init.c | 1 | ||||
-rw-r--r-- | src/cpu/x86/pae/pgtbl.c | 1 | ||||
-rw-r--r-- | src/cpu/x86/smm/smihandler.c | 1 | ||||
-rw-r--r-- | src/cpu/x86/smm/smm_module_handler.c | 1 | ||||
-rw-r--r-- | src/cpu/x86/smm/smm_module_loader.c | 1 |
18 files changed, 0 insertions, 19 deletions
diff --git a/src/cpu/allwinner/a10/clock.h b/src/cpu/allwinner/a10/clock.h index 815a94d139..110a6f8ec9 100644 --- a/src/cpu/allwinner/a10/clock.h +++ b/src/cpu/allwinner/a10/clock.h @@ -23,7 +23,6 @@ #include "memmap.h" #include <types.h> -#include <compiler.h> /* CPU_AHB_APB0 config values */ #define CPU_CLK_SRC_MASK (3 << 16) diff --git a/src/cpu/allwinner/a10/gpio.h b/src/cpu/allwinner/a10/gpio.h index a126801000..c05122fea6 100644 --- a/src/cpu/allwinner/a10/gpio.h +++ b/src/cpu/allwinner/a10/gpio.h @@ -19,7 +19,6 @@ #define __CPU_ALLWINNER_A10_PINMUX_H #include <types.h> -#include <compiler.h> #define GPIO_BASE 0x01C20800 diff --git a/src/cpu/allwinner/a10/timer.h b/src/cpu/allwinner/a10/timer.h index e24bf6618b..b7658da35d 100644 --- a/src/cpu/allwinner/a10/timer.h +++ b/src/cpu/allwinner/a10/timer.h @@ -23,7 +23,6 @@ #include "memmap.h" #include <types.h> -#include <compiler.h> /* TMRx_CTRL values */ #define TIMER_CTRL_MODE_SINGLE (1 << 7) diff --git a/src/cpu/allwinner/a10/uart.h b/src/cpu/allwinner/a10/uart.h index 92a87e5d11..a57fc9c361 100644 --- a/src/cpu/allwinner/a10/uart.h +++ b/src/cpu/allwinner/a10/uart.h @@ -26,7 +26,6 @@ #define CPU_ALLWINNER_A10_UART_H #include <types.h> -#include <compiler.h> struct a10_uart { union { diff --git a/src/cpu/amd/car/disable_cache_as_ram.c b/src/cpu/amd/car/disable_cache_as_ram.c index 36d4120453..a079ce49b1 100644 --- a/src/cpu/amd/car/disable_cache_as_ram.c +++ b/src/cpu/amd/car/disable_cache_as_ram.c @@ -19,7 +19,6 @@ * WARNING: this file will be used by both any AP cores and core 0 / node 0 */ -#include <compiler.h> #include <cpu/x86/cache.h> #include <cpu/x86/msr.h> diff --git a/src/cpu/amd/family_10h-family_15h/init_cpus.c b/src/cpu/amd/family_10h-family_15h/init_cpus.c index 4911eca38a..51cf5104b4 100644 --- a/src/cpu/amd/family_10h-family_15h/init_cpus.c +++ b/src/cpu/amd/family_10h-family_15h/init_cpus.c @@ -14,7 +14,6 @@ * GNU General Public License for more details. */ -#include <compiler.h> #include "init_cpus.h" #if IS_ENABLED(CONFIG_HAVE_OPTION_TABLE) diff --git a/src/cpu/intel/microcode/microcode.c b/src/cpu/intel/microcode/microcode.c index 8cfcb95182..60342359c2 100644 --- a/src/cpu/intel/microcode/microcode.c +++ b/src/cpu/intel/microcode/microcode.c @@ -24,7 +24,6 @@ #else #include <arch/cbfs.h> #endif -#include <compiler.h> #include <cpu/cpu.h> #include <cpu/x86/msr.h> #include <cpu/intel/microcode.h> diff --git a/src/cpu/intel/smm/gen1/smmrelocate.c b/src/cpu/intel/smm/gen1/smmrelocate.c index a5a9de3a1c..5d78efd3de 100644 --- a/src/cpu/intel/smm/gen1/smmrelocate.c +++ b/src/cpu/intel/smm/gen1/smmrelocate.c @@ -18,7 +18,6 @@ #include <types.h> #include <string.h> -#include <compiler.h> #include <device/device.h> #include <device/pci.h> #include <cpu/cpu.h> diff --git a/src/cpu/ti/am335x/clock.h b/src/cpu/ti/am335x/clock.h index 564838a0e4..c0b62fcb63 100644 --- a/src/cpu/ti/am335x/clock.h +++ b/src/cpu/ti/am335x/clock.h @@ -16,7 +16,6 @@ #define __CPU_TI_AM335X_CLOCK_H__ #include <stdint.h> -#include <compiler.h> enum { CM_ST_NO_SLEEP = 0x0, diff --git a/src/cpu/ti/am335x/gpio.h b/src/cpu/ti/am335x/gpio.h index 41fc3d358e..c04a00ce0f 100644 --- a/src/cpu/ti/am335x/gpio.h +++ b/src/cpu/ti/am335x/gpio.h @@ -16,7 +16,6 @@ #define __CPU_TI_AM335X_GPIO_H__ #include <stdint.h> -#include <compiler.h> enum { AM335X_GPIO_BITS_PER_BANK = 32 diff --git a/src/cpu/ti/am335x/header.c b/src/cpu/ti/am335x/header.c index a260425f48..847c8b073c 100644 --- a/src/cpu/ti/am335x/header.c +++ b/src/cpu/ti/am335x/header.c @@ -15,7 +15,6 @@ #include <stddef.h> #include <stdint.h> #include <symbols.h> -#include <compiler.h> #include "header.h" diff --git a/src/cpu/ti/am335x/header.h b/src/cpu/ti/am335x/header.h index 64d75c7512..fa5bf74071 100644 --- a/src/cpu/ti/am335x/header.h +++ b/src/cpu/ti/am335x/header.h @@ -16,7 +16,6 @@ #define __CPU_TI_AM335X_HEADER_H #include <stdint.h> -#include <compiler.h> struct configuration_header_toc_item { // Offset from the start address of the TOC to the actual address of diff --git a/src/cpu/ti/am335x/uart.h b/src/cpu/ti/am335x/uart.h index 7a65076b10..000a45dbf7 100644 --- a/src/cpu/ti/am335x/uart.h +++ b/src/cpu/ti/am335x/uart.h @@ -15,8 +15,6 @@ #ifndef AM335X_UART_H #define AM335X_UART_H -#include <compiler.h> - #define AM335X_UART0_BASE 0x44e09000 #define AM335X_UART1_BASE 0x48020000 #define AM335X_UART2_BASE 0x48024000 diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c index 08cd1f50b3..aa2a4695a4 100644 --- a/src/cpu/x86/mp_init.c +++ b/src/cpu/x86/mp_init.c @@ -16,7 +16,6 @@ #include <console/console.h> #include <stdint.h> -#include <compiler.h> #include <rmodule.h> #include <arch/cpu.h> #include <cpu/cpu.h> diff --git a/src/cpu/x86/pae/pgtbl.c b/src/cpu/x86/pae/pgtbl.c index cf6bf16413..795caac355 100644 --- a/src/cpu/x86/pae/pgtbl.c +++ b/src/cpu/x86/pae/pgtbl.c @@ -14,7 +14,6 @@ */ #include <cbfs.h> -#include <compiler.h> #include <commonlib/helpers.h> #include <console/console.h> #include <cpu/cpu.h> diff --git a/src/cpu/x86/smm/smihandler.c b/src/cpu/x86/smm/smihandler.c index 99a62896de..b2fc8b600f 100644 --- a/src/cpu/x86/smm/smihandler.c +++ b/src/cpu/x86/smm/smihandler.c @@ -15,7 +15,6 @@ */ #include <arch/io.h> -#include <compiler.h> #include <console/console.h> #include <cpu/x86/cache.h> #include <cpu/x86/smm.h> diff --git a/src/cpu/x86/smm/smm_module_handler.c b/src/cpu/x86/smm/smm_module_handler.c index 4fa8a34172..f9af965208 100644 --- a/src/cpu/x86/smm/smm_module_handler.c +++ b/src/cpu/x86/smm/smm_module_handler.c @@ -14,7 +14,6 @@ */ #include <arch/io.h> -#include <compiler.h> #include <console/console.h> #include <cpu/x86/smm.h> #include <rmodule.h> diff --git a/src/cpu/x86/smm/smm_module_loader.c b/src/cpu/x86/smm/smm_module_loader.c index 9fd8c498bb..6c166454dc 100644 --- a/src/cpu/x86/smm/smm_module_loader.c +++ b/src/cpu/x86/smm/smm_module_loader.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */ -#include <compiler.h> #include <string.h> #include <rmodule.h> #include <cpu/x86/smm.h> |