Commit f8bf5a8a authored by Nick Desaulniers's avatar Nick Desaulniers Committed by Kleber Sacilotto de Souza

x86/irqflags: Mark native_restore_fl extern inline

BugLink: https://bugs.launchpad.net/bugs/1792392

commit 1f59a458 upstream.

This should have been marked extern inline in order to pick up the out
of line definition in arch/x86/kernel/irqflags.S.

Fixes: 208cbb32 ("x86/irqflags: Provide a declaration for native_save_fl")
Reported-by: default avatarBen Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Reviewed-by: default avatarJuergen 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.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 302fc0cf
...@@ -28,7 +28,8 @@ extern inline unsigned long native_save_fl(void) ...@@ -28,7 +28,8 @@ extern inline unsigned long native_save_fl(void)
return flags; 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" asm volatile("push %0 ; popf"
: /* no output */ : /* no output */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment