Skip to content

Commit

Permalink
libpayload: Fix compiling bugs
Browse files Browse the repository at this point in the history
hwaccess_physmap.c: make `void *sys_physmap(()` static

hwaccess_x86_io.c: Add missing include

Change-Id: I5062c5a62b90f7a189488f3f569dc357bd2cb85f
Signed-off-by: Thomas Heijligen <[email protected]>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/69831
Tested-by: build bot (Jenkins) <[email protected]>
Reviewed-by: Angel Pons <[email protected]>
Reviewed-by: Paul Menzel <[email protected]>
Reviewed-by: Nico Huber <[email protected]>
Reviewed-by: Felix Singer <[email protected]>
  • Loading branch information
heijligen authored and felixsinger committed Nov 23, 2022
1 parent 8d0816f commit a2e5a7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hwaccess_physmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 2 additions & 0 deletions hwaccess_x86_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@
#endif

#if defined(__LIBPAYLOAD__)
#include <arch/io.h>

#define IO_PORT_PERMISSION USE_DUMMY
#define IO_PORT_FUNCTION USE_LIBC_TARGET_LAST
#endif
Expand Down

0 comments on commit a2e5a7d

Please sign in to comment.