From: Richard Henderson Date: Tue, 29 Jul 2025 19:16:37 +0000 (-1000) Subject: linux-user: Replace init_guest_commpage macro with function X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6e1c4ec4582814537c9a2b4700ff32da44fb27af;p=thirdparty%2Fqemu.git linux-user: Replace init_guest_commpage macro with function Turn the fallback macro into a function. This will produce a link error if the other macros are set up incorrectly. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 25f29e60dee..81bf05f581e 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -1115,7 +1115,7 @@ static abi_ulong create_elf_tables(abi_ulong p, int argc, int envc, #define HI_COMMPAGE 0 #define LO_COMMPAGE -1 #ifndef HAVE_GUEST_COMMPAGE -#define init_guest_commpage() true +bool init_guest_commpage(void) { return true; } #endif #endif