From a2e5a7d75bab2d38ea295071300fba4cad8afc50 Mon Sep 17 00:00:00 2001 From: Thomas Heijligen Date: Fri, 18 Nov 2022 22:53:56 +0100 Subject: libpayload: Fix compiling bugs hwaccess_physmap.c: make `void *sys_physmap(()` static hwaccess_x86_io.c: Add missing include Change-Id: I5062c5a62b90f7a189488f3f569dc357bd2cb85f Signed-off-by: Thomas Heijligen Reviewed-on: https://review.coreboot.org/c/flashrom/+/69831 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Paul Menzel Reviewed-by: Nico Huber Reviewed-by: Felix Singer --- hwaccess_physmap.c | 2 +- hwaccess_x86_io.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hwaccess_physmap.c b/hwaccess_physmap.c index 81adf18e..f95b5f64 100644 --- a/hwaccess_physmap.c +++ b/hwaccess_physmap.c @@ -121,7 +121,7 @@ static void sys_physunmap_unaligned(void *virt_addr, size_t len) #define MEM_DEV "" -void *sys_physmap(uintptr_t phys_addr, size_t len) +static void *sys_physmap(uintptr_t phys_addr, size_t len) { return (void *)phys_to_virt(phys_addr); } diff --git a/hwaccess_x86_io.c b/hwaccess_x86_io.c index c3ad3139..a883ed41 100644 --- a/hwaccess_x86_io.c +++ b/hwaccess_x86_io.c @@ -134,6 +134,8 @@ #endif #if defined(__LIBPAYLOAD__) +#include + #define IO_PORT_PERMISSION USE_DUMMY #define IO_PORT_FUNCTION USE_LIBC_TARGET_LAST #endif -- cgit v1.2.3