All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/irqflags: mark native_restore_fl extern inline
@ 2018-08-27 21:40 Nick Desaulniers
  2018-08-28  5:13 ` Greg Kroah-Hartman
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Nick Desaulniers @ 2018-08-27 21:40 UTC (permalink / raw)
  To: tglx, mingo
  Cc: Nick Desaulniers, stable, H. Peter Anvin, x86, Juergen Gross,
	Boris Ostrovsky, Greg Kroah-Hartman, linux-kernel

Fixes commit 208cbb325589 ("x86/irqflags: Provide a declaration for
native_save_fl")

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

Cc: stable@vger.kernel.org # 4.18, 4.14, 4.9, 4.4
Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
---
 arch/x86/include/asm/irqflags.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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)
 	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 */
-- 
2.19.0.rc0.228.g281dcd1b4d0-goog


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-08-30  9:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-27 21:40 [PATCH] x86/irqflags: mark native_restore_fl extern inline Nick Desaulniers
2018-08-28  5:13 ` Greg Kroah-Hartman
2018-08-28  6:02   ` Juergen Gross
2018-08-28 12:43     ` Greg Kroah-Hartman
2018-08-28 22:41       ` Nick Desaulniers
2018-08-28  6:01 ` Juergen Gross
2018-08-30  9:40 ` [tip:x86/urgent] x86/irqflags: Mark " tip-bot for Nick Desaulniers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.