summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/irqflags.S
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2021-06-24 11:41:17 +0200
committerPeter Zijlstra <peterz@infradead.org>2021-09-17 13:14:44 +0200
commit20125c872a3f129cef7fdec2b7681da98502a55d (patch)
tree1ad25b4483b6f95f98a7269dab7815aded23a1bf /arch/x86/kernel/irqflags.S
parentx86/xen: Make set_debugreg() noinstr (diff)
downloadlinux-20125c872a3f129cef7fdec2b7681da98502a55d.tar.xz
linux-20125c872a3f129cef7fdec2b7681da98502a55d.zip
x86/xen: Make save_fl() noinstr
vmlinux.o: warning: objtool: pv_ops[30]: native_save_fl vmlinux.o: warning: objtool: pv_ops[30]: __raw_callee_save_xen_save_fl vmlinux.o: warning: objtool: pv_ops[30]: xen_save_fl_direct vmlinux.o: warning: objtool: lockdep_hardirqs_off()+0x73: call to pv_ops[30]() 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.749712274@infradead.org
Diffstat (limited to 'arch/x86/kernel/irqflags.S')
-rw-r--r--arch/x86/kernel/irqflags.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/irqflags.S b/arch/x86/kernel/irqflags.S
index 8ef35063964b..760e1f293093 100644
--- a/arch/x86/kernel/irqflags.S
+++ b/arch/x86/kernel/irqflags.S
@@ -7,9 +7,11 @@
/*
* unsigned long native_save_fl(void)
*/
+.pushsection .noinstr.text, "ax"
SYM_FUNC_START(native_save_fl)
pushf
pop %_ASM_AX
ret
SYM_FUNC_END(native_save_fl)
+.popsection
EXPORT_SYMBOL(native_save_fl)