From: Matthew Wilcox Date: Tue, 26 Feb 2008 23:34:25 +0000 (-0500) Subject: Add semaphore.h to kernel_lock.c X-Git-Tag: firefly_0821_release~21632^2~6 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e48b3deee475134585eed03e7afebe4bf9e0dba9;p=firefly-linux-kernel-4.4.55.git Add semaphore.h to kernel_lock.c kernel_lock.c uses DECLARE_MUTEX, up() and down() without explicitly including asm/semaphore.h. This is fragile and leaves it vulnerable to breakage during header reorganisations. Signed-off-by: Matthew Wilcox --- diff --git a/lib/kernel_lock.c b/lib/kernel_lock.c index 812dbf00844b..fbc11a336bc5 100644 --- a/lib/kernel_lock.c +++ b/lib/kernel_lock.c @@ -8,6 +8,7 @@ #include #include #include +#include /* * The 'big kernel semaphore'