Commit-ID: 1f59a4581b5ecfe9b4f049a7a2cf904d8352842d Gitweb: https://git.kernel.org/tip/1f59a4581b5ecfe9b4f049a7a2cf904d8352842d Author: Nick Desaulniers <ndesaulni...@google.com> AuthorDate: Mon, 27 Aug 2018 14:40:09 -0700 Committer: Thomas Gleixner <t...@linutronix.de> CommitDate: Thu, 30 Aug 2018 11:37:09 +0200
x86/irqflags: Mark native_restore_fl extern inline This should have been marked extern inline in order to pick up the out of line definition in arch/x86/kernel/irqflags.S. Fixes: 208cbb325589 ("x86/irqflags: Provide a declaration for native_save_fl") Reported-by: Ben Hutchings <ben.hutchi...@codethink.co.uk> Signed-off-by: Nick Desaulniers <ndesaulni...@google.com> Signed-off-by: Thomas Gleixner <t...@linutronix.de> Reviewed-by: Juergen Gross <jgr...@suse.com> Cc: "H. Peter Anvin" <h...@zytor.com> Cc: Boris Ostrovsky <boris.ostrov...@oracle.com> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: sta...@vger.kernel.org Link: https://lkml.kernel.org/r/20180827214011.55428-1-ndesaulni...@google.com --- arch/x86/include/asm/irqflags.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/irqflags.h b/arch/x86/include/asm/irqflags.h index c14f2a74b2be..15450a675031 100644 --- a/arch/x86/include/asm/irqflags.h +++ b/arch/x86/include/asm/irqflags.h @@ -33,7 +33,8 @@ extern inline unsigned long native_save_fl(void) return flags; } -static inline void native_restore_fl(unsigned long flags) +extern inline void native_restore_fl(unsigned long flags); +extern inline void native_restore_fl(unsigned long flags) { asm volatile("push %0 ; popf" : /* no output */