1 From 1f59a4581b5ecfe9b4f049a7a2cf904d8352842d Mon Sep 17 00:00:00 2001
2 From: Nick Desaulniers <ndesaulniers@google.com>
3 Date: Mon, 27 Aug 2018 14:40:09 -0700
4 Subject: x86/irqflags: Mark native_restore_fl extern inline
6 From: Nick Desaulniers <ndesaulniers@google.com>
8 commit 1f59a4581b5ecfe9b4f049a7a2cf904d8352842d upstream.
10 This should have been marked extern inline in order to pick up the out
11 of line definition in arch/x86/kernel/irqflags.S.
13 Fixes: 208cbb325589 ("x86/irqflags: Provide a declaration for native_save_fl")
14 Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
15 Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
16 Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
17 Reviewed-by: Juergen Gross <jgross@suse.com>
18 Cc: "H. Peter Anvin" <hpa@zytor.com>
19 Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
20 Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21 Cc: stable@vger.kernel.org
22 Link: https://lkml.kernel.org/r/20180827214011.55428-1-ndesaulniers@google.com
23 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
26 arch/x86/include/asm/irqflags.h | 3 ++-
27 1 file changed, 2 insertions(+), 1 deletion(-)
29 --- a/arch/x86/include/asm/irqflags.h
30 +++ b/arch/x86/include/asm/irqflags.h
31 @@ -28,7 +28,8 @@ extern inline unsigned long native_save_
35 -static inline void native_restore_fl(unsigned long flags)
36 +extern inline void native_restore_fl(unsigned long flags);
37 +extern inline void native_restore_fl(unsigned long flags)
39 asm volatile("push %0 ; popf"