From d44221f9c8f3686e040ff9481829315068b321a3 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Thu, 4 Oct 2018 23:42:42 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/28927 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/cpu/ti/am335x/clock.h | 1 - src/cpu/ti/am335x/gpio.h | 1 - src/cpu/ti/am335x/header.c | 1 - src/cpu/ti/am335x/header.h | 1 - src/cpu/ti/am335x/uart.h | 2 -- 5 files changed, 6 deletions(-) (limited to 'src/cpu/ti') 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 -#include 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 -#include 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 #include #include -#include #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 -#include 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 - #define AM335X_UART0_BASE 0x44e09000 #define AM335X_UART1_BASE 0x48020000 #define AM335X_UART2_BASE 0x48024000 -- cgit v1.2.3