diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-07-29 09:16:37 -1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-08-30 07:04:04 +1000 |
| commit | 6e1c4ec4582814537c9a2b4700ff32da44fb27af (patch) | |
| tree | c8bb3807426e1de5860f22bf67c4894f503db55c /linux-user | |
| parent | 6a91f64ee12fe54d1a9573e9ecbbae037b113097 (diff) | |
| download | focaccia-qemu-6e1c4ec4582814537c9a2b4700ff32da44fb27af.tar.gz focaccia-qemu-6e1c4ec4582814537c9a2b4700ff32da44fb27af.zip | |
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 <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user')
| -rw-r--r-- | linux-user/elfload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 25f29e60de..81bf05f581 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 |