diff options
author | Matthew Wilcox <matthew@wil.cx> | 2008-02-26 18:34:25 -0500 |
---|---|---|
committer | Matthew Wilcox <willy@linux.intel.com> | 2008-04-17 10:42:27 -0400 |
commit | e48b3deee475134585eed03e7afebe4bf9e0dba9 (patch) | |
tree | 8a026147f9f50baf8cf15c79b84e502ab769088b /lib | |
parent | 8b91de2e58318d1168bc13d164478c1a7217a63a (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.c | 1 |
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 @@ | |||
8 | #include <linux/smp_lock.h> | 8 | #include <linux/smp_lock.h> |
9 | #include <linux/module.h> | 9 | #include <linux/module.h> |
10 | #include <linux/kallsyms.h> | 10 | #include <linux/kallsyms.h> |
11 | #include <asm/semaphore.h> | ||
11 | 12 | ||
12 | /* | 13 | /* |
13 | * The 'big kernel semaphore' | 14 | * The 'big kernel semaphore' |