From: Babu Moger Date: Wed, 24 May 2017 23:55:10 +0000 (-0600) Subject: kernel/locking: Fix compile error with qrwlock.c X-Git-Tag: v4.13-rc1~93^2~9^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9ab6055f959032258c0f83a070cd0d26ed7a8fc5;p=karo-tx-linux.git 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 Reviewed-by: Håkon Bugge Reviewed-by: Jane Chu Reviewed-by: Shannon Nelson Reviewed-by: Vijay Kumar Signed-off-by: David S. Miller --- 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 #include #include +#include #include /*