x86/xen: Mark xen_force_evtchn_callback() noinstr
authorPeter Zijlstra <peterz@infradead.org>
Thu, 24 Jun 2021 09:41:21 +0000 (11:41 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 17 Sep 2021 11:20:25 +0000 (13:20 +0200)
vmlinux.o: warning: objtool: check_events()+0xd: call to xen_force_evtchn_callback() 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.996055323@infradead.org
arch/x86/include/asm/xen/hypercall.h
arch/x86/xen/irq.c

index 990b8aa179c8d275f012e6ada177072d8265aee5..4a7ff8b0db209ba634625eec7ecf486711b6aea5 100644 (file)
@@ -358,7 +358,7 @@ HYPERVISOR_event_channel_op(int cmd, void *arg)
        return _hypercall2(int, event_channel_op, cmd, arg);
 }
 
-static inline int
+static __always_inline int
 HYPERVISOR_xen_version(int cmd, void *arg)
 {
        return _hypercall2(int, xen_version, cmd, arg);
index f52b60df4e0c89df37ee795c32ac1cd53e1915b0..2f695b5125f886ab755c8ac86661fc99a319397b 100644 (file)
@@ -19,7 +19,7 @@
  * callback mask. We do this in a very simple manner, by making a call
  * down into Xen. The pending flag will be checked by Xen on return.
  */
-void xen_force_evtchn_callback(void)
+noinstr void xen_force_evtchn_callback(void)
 {
        (void)HYPERVISOR_xen_version(0, NULL);
 }