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>
This commit is contained in:
Nico Huber
2018-10-04 23:42:42 +02:00
parent 834543c0c7
commit d44221f9c8
342 changed files with 33 additions and 454 deletions

View File

@@ -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)

View File

@@ -19,7 +19,6 @@
#define __CPU_ALLWINNER_A10_PINMUX_H
#include <types.h>
#include <compiler.h>
#define GPIO_BASE 0x01C20800

View File

@@ -23,7 +23,6 @@
#include "memmap.h"
#include <types.h>
#include <compiler.h>
/* TMRx_CTRL values */
#define TIMER_CTRL_MODE_SINGLE (1 << 7)

View File

@@ -26,7 +26,6 @@
#define CPU_ALLWINNER_A10_UART_H
#include <types.h>
#include <compiler.h>
struct a10_uart {
union {

View File

@@ -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>

View File

@@ -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)

View File

@@ -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>

View File

@@ -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>

View File

@@ -16,7 +16,6 @@
#define __CPU_TI_AM335X_CLOCK_H__
#include <stdint.h>
#include <compiler.h>
enum {
CM_ST_NO_SLEEP = 0x0,

View File

@@ -16,7 +16,6 @@
#define __CPU_TI_AM335X_GPIO_H__
#include <stdint.h>
#include <compiler.h>
enum {
AM335X_GPIO_BITS_PER_BANK = 32

View File

@@ -15,7 +15,6 @@
#include <stddef.h>
#include <stdint.h>
#include <symbols.h>
#include <compiler.h>
#include "header.h"

View File

@@ -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

View File

@@ -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

View File

@@ -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>

View File

@@ -14,7 +14,6 @@
*/
#include <cbfs.h>
#include <compiler.h>
#include <commonlib/helpers.h>
#include <console/console.h>
#include <cpu/cpu.h>

View File

@@ -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>

View File

@@ -14,7 +14,6 @@
*/
#include <arch/io.h>
#include <compiler.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
#include <rmodule.h>

View File

@@ -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>