diff options
author | 2017-07-08 04:56:58 +0900 | |
---|---|---|
committer | 2017-07-08 11:01:11 +0200 | |
commit | 5671360f29c68d9079914438f6a0109ef62f82a8 (patch) | |
tree | 1772ecaac170fe59ea390b2054c3ca0673830a6a /kernel/locking | |
parent | locking/rwsem-spinlock: Fix EINTR branch in __down_write_common() (diff) | |
download | linux-5671360f29c68d9079914438f6a0109ef62f82a8.tar.gz linux-5671360f29c68d9079914438f6a0109ef62f82a8.tar.bz2 linux-5671360f29c68d9079914438f6a0109ef62f82a8.zip |
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>
Diffstat (limited to 'kernel/locking')
-rw-r--r-- | kernel/locking/qspinlock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/locking/qspinlock.c b/kernel/locking/qspinlock.c index b2caec7315af..fd24153e8a48 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> |