From 9b9d267f5a31b66c3d7f6514b01885ddb6b42436 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Fri, 10 Mar 2023 18:15:32 +0100 Subject: [PATCH] arch/x86/include/arch/mmio.h: Provide __always_inline definition for musl fix compilation on musl-libc systems by providing an implementation for __always_inline Signed-off-by: Fabian Groffen Change-Id: I01a7eb9ed28e79523623ab362510ec2d93f4a8b7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/73667 Reviewed-by: Felix Singer Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/arch/x86/include/arch/mmio.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/arch/x86/include/arch/mmio.h b/src/arch/x86/include/arch/mmio.h index c2aa0fb910..b2a37a03dd 100644 --- a/src/arch/x86/include/arch/mmio.h +++ b/src/arch/x86/include/arch/mmio.h @@ -5,6 +5,10 @@ #include +#ifndef __always_inline +#define __always_inline inline +#endif + static __always_inline uint8_t read8(const volatile void *addr) { return *((volatile uint8_t *)(addr));