summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2018-10-04 23:42:42 +0200
committerNico Huber <nico.h@gmx.de>2018-10-08 16:57:27 +0000
commitd44221f9c8f3686e040ff9481829315068b321a3 (patch)
tree76337bf1cae88feda44e3c63dd7e32e964e8767d /src/lib
parent834543c0c71544b547194b093b8e1da990722762 (diff)
downloadcoreboot-d44221f9c8f3686e040ff9481829315068b321a3.tar.xz
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/lib')
-rw-r--r--src/lib/boot_device.c1
-rw-r--r--src/lib/bootblock.c1
-rw-r--r--src/lib/cbfs.c1
-rw-r--r--src/lib/cbmem_common.c1
-rw-r--r--src/lib/cbmem_console.c1
-rw-r--r--src/lib/coreboot_table.c1
-rw-r--r--src/lib/fallback_boot.c1
-rw-r--r--src/lib/gpio.c1
-rw-r--r--src/lib/hardwaremain.c1
-rw-r--r--src/lib/imd.c1
-rw-r--r--src/lib/imd_cbmem.c1
-rw-r--r--src/lib/prog_loaders.c1
-rw-r--r--src/lib/prog_ops.c1
-rw-r--r--src/lib/reset.c1
-rw-r--r--src/lib/timer.c1
-rw-r--r--src/lib/timestamp.c1
-rw-r--r--src/lib/wrdd.c1
17 files changed, 0 insertions, 17 deletions
diff --git a/src/lib/boot_device.c b/src/lib/boot_device.c
index c5afce7161..efbbedb23e 100644
--- a/src/lib/boot_device.c
+++ b/src/lib/boot_device.c
@@ -14,7 +14,6 @@
*/
#include <boot_device.h>
-#include <compiler.h>
void __weak boot_device_init(void)
{
diff --git a/src/lib/bootblock.c b/src/lib/bootblock.c
index d74bebfe83..f2ada522eb 100644
--- a/src/lib/bootblock.c
+++ b/src/lib/bootblock.c
@@ -16,7 +16,6 @@
#include <arch/exception.h>
#include <bootblock_common.h>
-#include <compiler.h>
#include <console/console.h>
#include <delay.h>
#include <pc80/mc146818rtc.h>
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c
index ca1fc8477e..9ea7df6ed2 100644
--- a/src/lib/cbfs.c
+++ b/src/lib/cbfs.c
@@ -20,7 +20,6 @@
#include <boot_device.h>
#include <cbfs.h>
#include <commonlib/compression.h>
-#include <compiler.h>
#include <endian.h>
#include <lib.h>
#include <symbols.h>
diff --git a/src/lib/cbmem_common.c b/src/lib/cbmem_common.c
index 2451fca8c7..fd2b46851a 100644
--- a/src/lib/cbmem_common.c
+++ b/src/lib/cbmem_common.c
@@ -14,7 +14,6 @@
*/
#include <console/console.h>
#include <cbmem.h>
-#include <compiler.h>
#include <bootstate.h>
#include <rules.h>
#include <symbols.h>
diff --git a/src/lib/cbmem_console.c b/src/lib/cbmem_console.c
index d9716700bb..709752bb23 100644
--- a/src/lib/cbmem_console.c
+++ b/src/lib/cbmem_console.c
@@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
-#include <compiler.h>
#include <console/console.h>
#include <console/cbmem_console.h>
#include <console/uart.h>
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c
index 62b3aaa82b..c2ae0949ed 100644
--- a/src/lib/coreboot_table.c
+++ b/src/lib/coreboot_table.c
@@ -16,7 +16,6 @@
*/
#include <arch/cbconfig.h>
-#include <compiler.h>
#include <console/console.h>
#include <console/uart.h>
#include <ip_checksum.h>
diff --git a/src/lib/fallback_boot.c b/src/lib/fallback_boot.c
index a079910262..e4a128e291 100644
--- a/src/lib/fallback_boot.c
+++ b/src/lib/fallback_boot.c
@@ -1,5 +1,4 @@
#include <fallback.h>
-#include <compiler.h>
#include <watchdog.h>
/* Implement platform specific override. */
diff --git a/src/lib/gpio.c b/src/lib/gpio.c
index 4cc039a7da..ab473cb229 100644
--- a/src/lib/gpio.c
+++ b/src/lib/gpio.c
@@ -15,7 +15,6 @@
#include <assert.h>
#include <base3.h>
-#include <compiler.h>
#include <console/console.h>
#include <delay.h>
#include <gpio.h>
diff --git a/src/lib/hardwaremain.c b/src/lib/hardwaremain.c
index 6fd55d7758..a26d6788b5 100644
--- a/src/lib/hardwaremain.c
+++ b/src/lib/hardwaremain.c
@@ -21,7 +21,6 @@
#include <adainit.h>
#include <arch/exception.h>
#include <bootstate.h>
-#include <compiler.h>
#include <console/console.h>
#include <console/post_codes.h>
#include <cbmem.h>
diff --git a/src/lib/imd.c b/src/lib/imd.c
index d17cc815ce..17ec2d9a48 100644
--- a/src/lib/imd.c
+++ b/src/lib/imd.c
@@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
-#include <compiler.h>
#include <assert.h>
#include <cbmem.h>
#include <console/console.h>
diff --git a/src/lib/imd_cbmem.c b/src/lib/imd_cbmem.c
index 83d5c1fd17..a7a513f05c 100644
--- a/src/lib/imd_cbmem.c
+++ b/src/lib/imd_cbmem.c
@@ -15,7 +15,6 @@
#include <bootstate.h>
#include <bootmem.h>
-#include <compiler.h>
#include <console/console.h>
#include <cbmem.h>
#include <imd.h>
diff --git a/src/lib/prog_loaders.c b/src/lib/prog_loaders.c
index 1c192d1f8b..e3ddce0a5c 100644
--- a/src/lib/prog_loaders.c
+++ b/src/lib/prog_loaders.c
@@ -17,7 +17,6 @@
#include <stdlib.h>
#include <cbfs.h>
#include <cbmem.h>
-#include <compiler.h>
#include <console/console.h>
#include <fallback.h>
#include <halt.h>
diff --git a/src/lib/prog_ops.c b/src/lib/prog_ops.c
index 5e670d34c0..2641ac6d05 100644
--- a/src/lib/prog_ops.c
+++ b/src/lib/prog_ops.c
@@ -14,7 +14,6 @@
* GNU General Public License for more details.
*/
-#include <compiler.h>
#include <program_loading.h>
/* For each segment of a program loaded this function is called*/
diff --git a/src/lib/reset.c b/src/lib/reset.c
index d5676e5cd4..d8284210c4 100644
--- a/src/lib/reset.c
+++ b/src/lib/reset.c
@@ -14,7 +14,6 @@
*/
#include <arch/cache.h>
-#include <compiler.h>
#include <console/console.h>
#include <halt.h>
#include <reset.h>
diff --git a/src/lib/timer.c b/src/lib/timer.c
index 2cb76ddfca..19b423a398 100644
--- a/src/lib/timer.c
+++ b/src/lib/timer.c
@@ -13,7 +13,6 @@
* GNU General Public License for more details.
*/
-#include <compiler.h>
#include <timer.h>
#include <delay.h>
#include <thread.h>
diff --git a/src/lib/timestamp.c b/src/lib/timestamp.c
index 120934d379..105b6961ff 100644
--- a/src/lib/timestamp.c
+++ b/src/lib/timestamp.c
@@ -17,7 +17,6 @@
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
-#include <compiler.h>
#include <console/console.h>
#include <cbmem.h>
#include <symbols.h>
diff --git a/src/lib/wrdd.c b/src/lib/wrdd.c
index a8390cf732..53c3fbbeee 100644
--- a/src/lib/wrdd.c
+++ b/src/lib/wrdd.c
@@ -14,7 +14,6 @@
* GNU General Public License for more details.
*/
-#include <compiler.h>
#include <wrdd.h>
uint16_t __weak wifi_regulatory_domain(void)