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/drivers/elog/boot_count.c | 1 - src/drivers/elog/elog_internal.h | 1 - src/drivers/elog/gsmi.c | 2 -- 3 files changed, 4 deletions(-) (limited to 'src/drivers/elog') diff --git a/src/drivers/elog/boot_count.c b/src/drivers/elog/boot_count.c index f1ae9d8f66..c4373ee44a 100644 --- a/src/drivers/elog/boot_count.c +++ b/src/drivers/elog/boot_count.c @@ -18,7 +18,6 @@ #include #include #include -#include #include /* diff --git a/src/drivers/elog/elog_internal.h b/src/drivers/elog/elog_internal.h index 3ccee90c46..afcee5736f 100644 --- a/src/drivers/elog/elog_internal.h +++ b/src/drivers/elog/elog_internal.h @@ -16,7 +16,6 @@ #ifndef ELOG_INTERNAL_H_ #define ELOG_INTERNAL_H_ -#include /* ELOG header */ struct elog_header { u32 magic; diff --git a/src/drivers/elog/gsmi.c b/src/drivers/elog/gsmi.c index cced4a1293..5ecb2c5935 100644 --- a/src/drivers/elog/gsmi.c +++ b/src/drivers/elog/gsmi.c @@ -13,9 +13,7 @@ * GNU General Public License for more details. */ -#include #include -#include #include #include #include -- cgit v1.2.3