Skip to content

Commit

Permalink
x86/irqflags: Mark native_restore_fl extern inline
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Nick Desaulniers authored and Thomas Gleixner committed Aug 30, 2018
1 parent 36bf9da commit 1f59a45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/x86/include/asm/irqflags.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 1f59a45

Please sign in to comment.