projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b91de2
)
Add semaphore.h to kernel_lock.c
author
Matthew Wilcox
<matthew@wil.cx>
Tue, 26 Feb 2008 23:34:25 +0000
(18:34 -0500)
committer
Matthew Wilcox
<willy@linux.intel.com>
Thu, 17 Apr 2008 14:42:27 +0000
(10:42 -0400)
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>
lib/kernel_lock.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/kernel_lock.c
b/lib/kernel_lock.c
index 812dbf00844bc08a4a844bda6729377b1923a5c5..fbc11a336bc57ba94e598c4edf83eccb4cc24017 100644
(file)
--- 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'