diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2018-08-27 17:40:09 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-08-30 05:37:09 -0400 |
commit | 1f59a4581b5ecfe9b4f049a7a2cf904d8352842d (patch) | |
tree | 54d284b404661d5ce118a60adb96fd205bbc5065 | |
parent | 36bf9da2913054c218337d8cd7cb11bddc1fafb0 (diff) |
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.hutchings@codethink.co.uk>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Juergen Gross <jgross@suse.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20180827214011.55428-1-ndesaulniers@google.com
-rw-r--r-- | arch/x86/include/asm/irqflags.h | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
33 | return flags; | 33 | return flags; |
34 | } | 34 | } |
35 | 35 | ||
36 | 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) | ||
37 | { | 38 | { |
38 | asm volatile("push %0 ; popf" | 39 | asm volatile("push %0 ; popf" |
39 | : /* no output */ | 40 | : /* no output */ |