diff options
author | Peter Zijlstra <peterz@infradead.org> | 2021-06-24 11:41:15 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-09-17 13:12:34 +0200 |
commit | f4afb713e5c3a4419ba7aaecc31a8c8bd91d13fb (patch) | |
tree | af6dd4355ff1a319a0b8441f050a123ae8c626ff /arch/x86/include/asm/paravirt.h | |
parent | 209cfd0cbb6722d3461e4f928dc150e4c3811948 (diff) | |
download | lwn-f4afb713e5c3a4419ba7aaecc31a8c8bd91d13fb.tar.gz lwn-f4afb713e5c3a4419ba7aaecc31a8c8bd91d13fb.zip |
x86/xen: Make get_debugreg() noinstr
vmlinux.o: warning: objtool: pv_ops[1]: xen_get_debugreg
vmlinux.o: warning: objtool: pv_ops[1]: native_get_debugreg
vmlinux.o: warning: objtool: exc_debug()+0x25: call to pv_ops[1]() leaves .noinstr.text section
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20210624095148.625523645@infradead.org
Diffstat (limited to 'arch/x86/include/asm/paravirt.h')
-rw-r--r-- | arch/x86/include/asm/paravirt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index be82b5217958..f48465c66c31 100644 --- a/arch/x86/include/asm/paravirt.h +++ b/arch/x86/include/asm/paravirt.h @@ -113,7 +113,7 @@ static inline void __cpuid(unsigned int *eax, unsigned int *ebx, /* * These special macros can be used to get or set a debugging register */ -static inline unsigned long paravirt_get_debugreg(int reg) +static __always_inline unsigned long paravirt_get_debugreg(int reg) { return PVOP_CALL1(unsigned long, cpu.get_debugreg, reg); } |