Skip to content

Commit 1f59a45

Browse files
nickdesaulniersKAGA-KOKO
authored andcommitted
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: 208cbb3 ("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
1 parent 36bf9da commit 1f59a45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/x86/include/asm/irqflags.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ extern inline unsigned long native_save_fl(void)
3333
return flags;
3434
}
3535

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)
3738
{
3839
asm volatile("push %0 ; popf"
3940
: /* no output */

0 commit comments

Comments
 (0)