diff options
author | Babu Moger <[email protected]> | 2017-05-24 17:55:10 -0600 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-05-25 12:06:50 -0700 |
commit | 9ab6055f959032258c0f83a070cd0d26ed7a8fc5 (patch) | |
tree | 16c0718d21aba24cde138c54a127dc48daec7c72 | |
parent | 8b93b4a9e1be78930eb9d640f75818993f70e065 (diff) |
kernel/locking: Fix compile error with qrwlock.c
Saw these compile errors on SPARC when queued rwlock feature is enabled.
CC kernel/locking/qrwlock.o
kernel/locking/qrwlock.c: In function ‘queued_read_lock_slowpath’:
kernel/locking/qrwlock.c:89: error: implicit declaration of function ‘arch_spin_lock’
kernel/locking/qrwlock.c:102: error: implicit declaration of function ‘arch_spin_unlock’
make[4]: *** [kernel/locking/qrwlock.o] Error 1
Include spinlock.h in qrwlock.c to fix it.
Signed-off-by: Babu Moger <[email protected]>
Reviewed-by: Håkon Bugge <[email protected]>
Reviewed-by: Jane Chu <[email protected]>
Reviewed-by: Shannon Nelson <[email protected]>
Reviewed-by: Vijay Kumar <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
-rw-r--r-- | kernel/locking/qrwlock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/locking/qrwlock.c b/kernel/locking/qrwlock.c index cc3ed0ccdfa2..2655f26ec882 100644 --- a/kernel/locking/qrwlock.c +++ b/kernel/locking/qrwlock.c @@ -20,6 +20,7 @@ #include <linux/cpumask.h> #include <linux/percpu.h> #include <linux/hardirq.h> +#include <linux/spinlock.h> #include <asm/qrwlock.h> /* |