mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
x86/xen: Fix noinstr fail in exc_xen_unknown_trap()
[ Upstream commit4c9c26f1e6] Fix: vmlinux.o: warning: objtool: exc_xen_unknown_trap()+0x7: call to printk() leaves .noinstr.text section Fixes:2e92493637("x86/xen: avoid warning in Xen pv guest with CONFIG_AMD_MEM_ENCRYPT enabled") Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20210621120120.606560778@infradead.org Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Sasha Levin
parent
cb83c99cf6
commit
59aa5c91f8
@@ -586,8 +586,10 @@ DEFINE_IDTENTRY_RAW(xenpv_exc_debug)
|
||||
DEFINE_IDTENTRY_RAW(exc_xen_unknown_trap)
|
||||
{
|
||||
/* This should never happen and there is no way to handle it. */
|
||||
instrumentation_begin();
|
||||
pr_err("Unknown trap in Xen PV mode.");
|
||||
BUG();
|
||||
instrumentation_end();
|
||||
}
|
||||
|
||||
struct trap_array_entry {
|
||||
|
||||
Reference in New Issue
Block a user