diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2019-05-15 21:01:02 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-05-29 20:27:18 +0000 |
commit | b12ece98b09dd88634d93bcb41ca5c4cb9d86364 (patch) | |
tree | 520078bbb8f80a2e5715f8efcdddbda8159cf201 /src/cpu | |
parent | 62c0b61bed96df60967d2980d9ee4e4b3f0461b0 (diff) |
src/{include,arch,cpu,lib}: Add missing 'include <types.h>'
<types.h> is supposed to provide <stdint.h> and <stddef.h>.
So when <types.h> is included, <stdint.h> and/or <stddef.h> is removed.
Change-Id: I57aead27806e307b9827fc7ee2cd663f12ee6e5e
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31892
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Lijian Zhao <lijian.zhao@intel.com>
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/allwinner/a10/twi.c | 7 | ||||
-rw-r--r-- | src/cpu/amd/family_10h-family_15h/init_cpus.c | 2 | ||||
-rw-r--r-- | src/cpu/amd/family_10h-family_15h/powernow_acpi.c | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/src/cpu/allwinner/a10/twi.c b/src/cpu/allwinner/a10/twi.c index 6e7f9e214a..01ee5a5c6f 100644 --- a/src/cpu/allwinner/a10/twi.c +++ b/src/cpu/allwinner/a10/twi.c @@ -20,12 +20,13 @@ * Largely based on the uboot-sunxi code. */ -#include "memmap.h" -#include "twi.h" - #include <device/mmio.h> #include <delay.h> #include <device/i2c_simple.h> +#include <types.h> + +#include "memmap.h" +#include "twi.h" #define TWI_BASE(n) (A1X_TWI0_BASE + 0x400 * (n)) diff --git a/src/cpu/amd/family_10h-family_15h/init_cpus.c b/src/cpu/amd/family_10h-family_15h/init_cpus.c index 719d62fbcc..310706ba95 100644 --- a/src/cpu/amd/family_10h-family_15h/init_cpus.c +++ b/src/cpu/amd/family_10h-family_15h/init_cpus.c @@ -17,6 +17,8 @@ #include <console/console.h> #include <cpu/amd/msr.h> #include <device/pci_ops.h> +#include <types.h> + #include "init_cpus.h" #if CONFIG(HAVE_OPTION_TABLE) diff --git a/src/cpu/amd/family_10h-family_15h/powernow_acpi.c b/src/cpu/amd/family_10h-family_15h/powernow_acpi.c index d024069e30..e648b71750 100644 --- a/src/cpu/amd/family_10h-family_15h/powernow_acpi.c +++ b/src/cpu/amd/family_10h-family_15h/powernow_acpi.c @@ -16,7 +16,6 @@ */ #include <console/console.h> -#include <stdint.h> #include <option.h> #include <cpu/x86/msr.h> #include <cpu/amd/msr.h> @@ -30,6 +29,7 @@ #include <northbridge/amd/amdht/AsPsDefs.h> #include <northbridge/amd/amdmct/mct/mct.h> #include <northbridge/amd/amdmct/amddefs.h> +#include <types.h> static inline uint8_t is_fam15h(void) { |