linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] locking/qspinlock: explicitly include asm/prefetch.h
@ 2017-07-07 19:56 Stafford Horne
  2017-07-08 11:09 ` [tip:locking/urgent] locking/qspinlock: Explicitly " tip-bot for Stafford Horne
  0 siblings, 1 reply; 2+ messages in thread
From: Stafford Horne @ 2017-07-07 19:56 UTC (permalink / raw)
  To: LKML; +Cc: Stafford Horne, Peter Zijlstra, Ingo Molnar

In architectures that use qspinlock, like x86, prefetch is loaded
indirectly via the asm/qspinlock.h include.  On other architectures, like
OpenRISC, which may want to use asm-generic/qspinlock.h the built will
fail without the asm/prefetch.h include.

Fix this by including directly.

Signed-off-by: Stafford Horne <shorne@gmail.com>
---
 kernel/locking/qspinlock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/locking/qspinlock.c b/kernel/locking/qspinlock.c
index b2caec7..fd24153 100644
--- a/kernel/locking/qspinlock.c
+++ b/kernel/locking/qspinlock.c
@@ -28,6 +28,7 @@
 #include <linux/percpu.h>
 #include <linux/hardirq.h>
 #include <linux/mutex.h>
+#include <linux/prefetch.h>
 #include <asm/byteorder.h>
 #include <asm/qspinlock.h>
 
-- 
2.9.4

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

* [tip:locking/urgent] locking/qspinlock: Explicitly include asm/prefetch.h
  2017-07-07 19:56 [PATCH] locking/qspinlock: explicitly include asm/prefetch.h Stafford Horne
@ 2017-07-08 11:09 ` tip-bot for Stafford Horne
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Stafford Horne @ 2017-07-08 11:09 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: hpa, torvalds, mingo, linux-kernel, paulmck, peterz, akpm, shorne,
	tglx

Commit-ID:  5671360f29c68d9079914438f6a0109ef62f82a8
Gitweb:     http://git.kernel.org/tip/5671360f29c68d9079914438f6a0109ef62f82a8
Author:     Stafford Horne <shorne@gmail.com>
AuthorDate: Sat, 8 Jul 2017 04:56:58 +0900
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Sat, 8 Jul 2017 11:01:11 +0200

locking/qspinlock: Explicitly include asm/prefetch.h

In architectures that use qspinlock, like x86, prefetch is loaded
indirectly via the asm/qspinlock.h include.  On other architectures, like
OpenRISC, which may want to use asm-generic/qspinlock.h the built will
fail without the asm/prefetch.h include.

Fix this by including directly.

Signed-off-by: Stafford Horne <shorne@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20170707195658.23840-1-shorne@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 kernel/locking/qspinlock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/locking/qspinlock.c b/kernel/locking/qspinlock.c
index b2caec7..fd24153 100644
--- a/kernel/locking/qspinlock.c
+++ b/kernel/locking/qspinlock.c
@@ -28,6 +28,7 @@
 #include <linux/percpu.h>
 #include <linux/hardirq.h>
 #include <linux/mutex.h>
+#include <linux/prefetch.h>
 #include <asm/byteorder.h>
 #include <asm/qspinlock.h>
 

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

end of thread, other threads:[~2017-07-08 11:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-07 19:56 [PATCH] locking/qspinlock: explicitly include asm/prefetch.h Stafford Horne
2017-07-08 11:09 ` [tip:locking/urgent] locking/qspinlock: Explicitly " tip-bot for Stafford Horne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).