summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2008-02-26 18:34:25 -0500
committerMatthew Wilcox <willy@linux.intel.com>2008-03-04 10:07:10 -0500
commit586b6ae3055ee16d27f443c1339be21f3f71bfb5 (patch)
tree5ca1cc9444992e88149b767b5b7d20ae85aedd36 /lib
parent75a77b718af79a40c8da69f26c50d7c566d34968 (diff)
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 <willy@linux.intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/kernel_lock.c1
1 files changed, 1 insertions, 0 deletions
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 <linux/smp_lock.h>
#include <linux/module.h>
#include <linux/kallsyms.h>
+#include <asm/semaphore.h>
/*
* The 'big kernel semaphore'