[PATCH 15/27] x86/xen: Ignore noreturn status of weak mem_map_via_hcall()
From: Josh Poimboeuf
Date: Fri Aug 28 2026 - 00:58:16 EST
Unlike the non-weak version, the weak version of mem_map_via_hcall()
doesn't return. Tell objtool to ignore that, as the protoype (and the
non-weak version) aren't noreturn so its callers can't assume it.
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Closes: https://lore.kernel.org/oe-kbuild-all/202608280214.c28GlIx6-lkp@xxxxxxxxx/
Signed-off-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
---
arch/x86/platform/pvh/enlighten.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/platform/pvh/enlighten.c b/arch/x86/platform/pvh/enlighten.c
index f2053cbe9b0ce..9f227f06cbaf5 100644
--- a/arch/x86/platform/pvh/enlighten.c
+++ b/arch/x86/platform/pvh/enlighten.c
@@ -37,6 +37,7 @@ void __init __weak mem_map_via_hcall(struct boot_params *ptr __maybe_unused)
xen_raw_printk("Error: Could not find memory map\n");
BUG();
}
+ANNOTATE_IGNORE_NORETURN(mem_map_via_hcall);
static void __init init_pvh_bootparams(bool xen_guest)
{
--
2.55.0