diff options
author | Thomas Heijligen <thomas.heijligen@secunet.com> | 2022-11-18 22:53:56 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-11-23 06:53:09 +0000 |
commit | a2e5a7d75bab2d38ea295071300fba4cad8afc50 (patch) | |
tree | 2fb97ad908d30a81ebcec3fb3db69ff757c1f498 /hwaccess_physmap.c | |
parent | 8d0816faa55c2d52f92dcf4758935a807f71e4ba (diff) | |
download | flashrom-a2e5a7d75bab2d38ea295071300fba4cad8afc50.tar.gz flashrom-a2e5a7d75bab2d38ea295071300fba4cad8afc50.tar.bz2 flashrom-a2e5a7d75bab2d38ea295071300fba4cad8afc50.zip |
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 <thomas.heijligen@secunet.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/69831
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'hwaccess_physmap.c')
-rw-r--r-- | hwaccess_physmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |