From: Juergen Gross Date: Thu, 25 Nov 2021 09:20:56 +0000 (+0100) Subject: xen: make HYPERVISOR_set_debugreg() always_inline X-Git-Tag: v6.1-rc5~2552^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00db58cf21188f4b99bc5f15fcc2995e30e4a9fe;p=platform%2Fkernel%2Flinux-starfive.git xen: make HYPERVISOR_set_debugreg() always_inline HYPERVISOR_set_debugreg() is being called from noinstr code, so it should be attributed "always_inline". Fixes: 7361fac0465ba96ec8f ("x86/xen: Make set_debugreg() noinstr") Reported-by: kernel test robot Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky Link: https://lore.kernel.org/r/20211125092056.24758-3-jgross@suse.com Signed-off-by: Boris Ostrovsky --- diff --git a/arch/x86/include/asm/xen/hypercall.h b/arch/x86/include/asm/xen/hypercall.h index 28ca111..e5e0fe1 100644 --- a/arch/x86/include/asm/xen/hypercall.h +++ b/arch/x86/include/asm/xen/hypercall.h @@ -281,7 +281,7 @@ HYPERVISOR_callback_op(int cmd, void *arg) return _hypercall2(int, callback_op, cmd, arg); } -static inline int +static __always_inline int HYPERVISOR_set_debugreg(int reg, unsigned long value) { return _hypercall2(int, set_debugreg, reg, value);