]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
linux-user: Replace init_guest_commpage macro with function
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 29 Jul 2025 19:16:37 +0000 (09:16 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 29 Aug 2025 21:04:04 +0000 (07:04 +1000)
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 <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/elfload.c

index 25f29e60deec176b05993ca436772f32ac64f870..81bf05f581ea2952302c3f3af4280cb37354810f 100644 (file)
@@ -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