summaryrefslogtreecommitdiffstats
path: root/lib/kernel_lock.c
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2008-02-27 00:34:25 +0100
committerMatthew Wilcox <willy@linux.intel.com>2008-04-17 16:42:27 +0200
commite48b3deee475134585eed03e7afebe4bf9e0dba9 (patch)
tree8a026147f9f50baf8cf15c79b84e502ab769088b /lib/kernel_lock.c
parentFix quota.h includes (diff)
downloadlinux-e48b3deee475134585eed03e7afebe4bf9e0dba9.tar.xz
linux-e48b3deee475134585eed03e7afebe4bf9e0dba9.zip
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/kernel_lock.c')
-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'