locking/qspinlock: explicitly include asm/prefetch.h
PATCH 1/1 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.
--- kernel/locking/qspinlock.c | 1 + 1 file changed, 1 insertion(+)
kernel/locking/qspinlock.c +1 -0
@@ -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>
Signature · 1 line
2.9.4
tip-bot for Stafford Horne
merge bot[tip:locking/urgent] locking/qspinlock: Explicitly include asm/prefetch.h
locking/qspinlock: Explicitly include asm/prefetch.h
Commit-ID: 5671360f29c68d9079914438f6a0109ef62f82a8 Gitweb: http://git.kernel.org/tip/5671360f29c68d9079914438f6a0109ef62f82a8 Author: Stafford Horne <[email protected]> AuthorDate: Sat, 8 Jul 2017 04:56:58 +0900 Committer: Ingo Molnar <[email protected]> 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.
--- kernel/locking/qspinlock.c | 1 + 1 file changed, 1 insertion(+)
kernel/locking/qspinlock.c +1 -0
@@ -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>