Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1683407

[PATCH] locking/qspinlock: explicitly include asm/prefetch.h

From Stafford Horne <shorne@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] locking/qspinlock: explicitly include asm/prefetch.h
Date 2017-07-07 22:00 +0200
Message-ID <u0HzY-bF-17@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] locking/qspinlock: explicitly include asm/prefetch.h Stafford Horne <shorne@gmail.com> - 2017-07-07 22:00 +0200
  [tip:locking/urgent] locking/qspinlock: Explicitly include  asm/prefetch.h tip-bot for Stafford Horne <tipbot@zytor.com> - 2017-07-08 13:20 +0200

csiph-web