From c4e41937150beab78ba5d492b7b22799d20a0ee4 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Thu, 1 Nov 2018 11:29:50 +0100 Subject: src: Add missing include Change-Id: Idf10a09745756887a517da4c26db7a90a1bf9543 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/29403 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- src/include/cpu/amd/vr.h | 2 ++ src/include/device/path.h | 2 ++ src/include/swab.h | 9 ++++++--- 3 files changed, 10 insertions(+), 3 deletions(-) (limited to 'src/include') diff --git a/src/include/cpu/amd/vr.h b/src/include/cpu/amd/vr.h index e5ab840b58..8c62e442b5 100644 --- a/src/include/cpu/amd/vr.h +++ b/src/include/cpu/amd/vr.h @@ -7,6 +7,8 @@ #ifndef CPU_AMD_VR_H #define CPU_AMD_VR_H +#include + #define VRC_INDEX 0xAC1C // Index register #define VRC_DATA 0xAC1E // Data register #define VR_UNLOCK 0xFC53 // Virtual register unlock code diff --git a/src/include/device/path.h b/src/include/device/path.h index 0d9c681c88..6736bede69 100644 --- a/src/include/device/path.h +++ b/src/include/device/path.h @@ -1,6 +1,8 @@ #ifndef DEVICE_PATH_H #define DEVICE_PATH_H +#include + enum device_path_type { DEVICE_PATH_NONE = 0, DEVICE_PATH_ROOT, diff --git a/src/include/swab.h b/src/include/swab.h index 7d781a089e..956cfa5532 100644 --- a/src/include/swab.h +++ b/src/include/swab.h @@ -1,6 +1,3 @@ -#ifndef _SWAB_H -#define _SWAB_H - /* * linux/byteorder/swab.h * Byte-swapping, independently from CPU endianness @@ -18,6 +15,12 @@ /* casts are necessary for constants, because we never know how for sure * how U/UL/ULL map to __u16, __u32, __u64. At least not in a portable way. */ + +#ifndef _SWAB_H +#define _SWAB_H + +#include + #define swab16(x) \ ((unsigned short)( \ (((unsigned short)(x) & (unsigned short)0x00ffU) << 8) | \ -- cgit v1.2.3