From ede8dd0b9c0dcf1a2f1478e5cb4e035c148b9ed1 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Sun, 23 Jun 2019 06:57:53 +0200 Subject: src/{device,drivers}: Use 'include ' when appropriate Also, including , is supposed to provide stdint and stddef. Change-Id: I99918a5a77e759bc7d4192d2c3fd6ad493c70248 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/coreboot/+/33681 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/device/device_util.c | 1 + src/device/oprom/realmode/x86.c | 1 + src/drivers/i2c/tpm/cr50.c | 3 ++- src/drivers/i2c/tpm/tis_atmel.c | 3 ++- src/drivers/smmstore/store.c | 2 ++ src/drivers/spi/flashconsole.c | 2 ++ src/drivers/spi/spi-generic.c | 2 ++ src/drivers/spi/spi_flash.c | 2 +- 8 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/device/device_util.c b/src/device/device_util.c index df66f5c620..d8a84316c0 100644 --- a/src/device/device_util.c +++ b/src/device/device_util.c @@ -16,6 +16,7 @@ #include #include #include +#include #include /** diff --git a/src/device/oprom/realmode/x86.c b/src/device/oprom/realmode/x86.c index 8ba0241ea4..1026ddb7ff 100644 --- a/src/device/oprom/realmode/x86.c +++ b/src/device/oprom/realmode/x86.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include diff --git a/src/drivers/i2c/tpm/cr50.c b/src/drivers/i2c/tpm/cr50.c index 3c70b7e6e3..6714bd4a03 100644 --- a/src/drivers/i2c/tpm/cr50.c +++ b/src/drivers/i2c/tpm/cr50.c @@ -29,7 +29,6 @@ #include #include -#include #include #include #include @@ -38,6 +37,8 @@ #include #include #include +#include + #include "tpm.h" #define CR50_MAX_BUFSIZE 63 diff --git a/src/drivers/i2c/tpm/tis_atmel.c b/src/drivers/i2c/tpm/tis_atmel.c index bfc25c4100..42df292615 100644 --- a/src/drivers/i2c/tpm/tis_atmel.c +++ b/src/drivers/i2c/tpm/tis_atmel.c @@ -13,7 +13,6 @@ */ #include -#include #include #include #include @@ -22,7 +21,9 @@ #include #include #include +#include #include +#include #define RECV_TIMEOUT (1 * 1000) /* 1 second */ #define XMIT_TIMEOUT (1 * 1000) /* 1 second */ diff --git a/src/drivers/smmstore/store.c b/src/drivers/smmstore/store.c index 3922746eea..dc4a0cf75b 100644 --- a/src/drivers/smmstore/store.c +++ b/src/drivers/smmstore/store.c @@ -18,6 +18,8 @@ #include #include #include +#include +#include /* * The region format is still not finalized, but so far it looks like this: diff --git a/src/drivers/spi/flashconsole.c b/src/drivers/spi/flashconsole.c index 2a0d2358b9..8874812449 100644 --- a/src/drivers/spi/flashconsole.c +++ b/src/drivers/spi/flashconsole.c @@ -17,6 +17,8 @@ #include #include #include +#include +#include #define LINE_BUFFER_SIZE 128 #define READ_BUFFER_SIZE 0x100 diff --git a/src/drivers/spi/spi-generic.c b/src/drivers/spi/spi-generic.c index 28402182dd..05bfb82bf8 100644 --- a/src/drivers/spi/spi-generic.c +++ b/src/drivers/spi/spi-generic.c @@ -14,6 +14,8 @@ #include #include +#include +#include #include int spi_claim_bus(const struct spi_slave *slave) diff --git a/src/drivers/spi/spi_flash.c b/src/drivers/spi/spi_flash.c index 88867fd54c..7b5266a280 100644 --- a/src/drivers/spi/spi_flash.c +++ b/src/drivers/spi/spi_flash.c @@ -18,11 +18,11 @@ #include #include #include -#include #include #include #include #include +#include #include "spi_flash_internal.h" -- cgit v1.2.3