]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
commit9ab6055f959032258c0f83a070cd0d26ed7a8fc5
tree16c0718d21aba24cde138c54a127dc48daec7c72
parent8b93b4a9e1be78930eb9d640f75818993f70e065
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 <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