]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kernel/locking: Fix compile error with qrwlock.c
authorBabu Moger <babu.moger@oracle.com>
Wed, 24 May 2017 23:55:10 +0000 (17:55 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 May 2017 19:06:50 +0000 (12:06 -0700)
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 <babu.moger@oracle.com>
Reviewed-by: Håkon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Jane Chu <jane.chu@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Reviewed-by: Vijay Kumar <vijay.ac.kumar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/locking/qrwlock.c

index cc3ed0ccdfa28622971ada92668bd3b1e45b4ee0..2655f26ec882689f42d2ba7831209f166ce45869 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/cpumask.h>
 #include <linux/percpu.h>
 #include <linux/hardirq.h>
+#include <linux/spinlock.h>
 #include <asm/qrwlock.h>
 
 /*