]> git.baikalelectronics.ru Git - kernel.git/commitdiff
xen: make HYPERVISOR_get_debugreg() always_inline
authorJuergen Gross <jgross@suse.com>
Thu, 25 Nov 2021 09:20:55 +0000 (10:20 +0100)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 25 Nov 2021 15:25:07 +0000 (09:25 -0600)
HYPERVISOR_get_debugreg() is being called from noinstr code, so it
should be attributed "always_inline".

Fixes: fe09442844802743d5a ("x86/xen: Make get_debugreg() noinstr")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/20211125092056.24758-2-jgross@suse.com
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/x86/include/asm/xen/hypercall.h

index 0575f5863b7fef48f9ae9362fbb475d1a077e93e..28ca1119606b385d33166a564c7319529431857b 100644 (file)
@@ -287,7 +287,7 @@ HYPERVISOR_set_debugreg(int reg, unsigned long value)
        return _hypercall2(int, set_debugreg, reg, value);
 }
 
-static inline unsigned long
+static __always_inline unsigned long
 HYPERVISOR_get_debugreg(int reg)
 {
        return _hypercall1(unsigned long, get_debugreg, reg);