Commit b552068999b0b05087c454e525b30b785c79dc9b
Committed by
Matthew Wilcox
1 parent
2351ec533e
Exists in
master
and in
7 other branches
Remove __DECLARE_SEMAPHORE_GENERIC
There are no users of __DECLARE_SEMAPHORE_GENERIC in the kernel Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Showing 1 changed file with 2 additions and 4 deletions Side-by-side Diff
include/linux/semaphore.h
... | ... | @@ -26,10 +26,8 @@ |
26 | 26 | .wait_list = LIST_HEAD_INIT((name).wait_list), \ |
27 | 27 | } |
28 | 28 | |
29 | -#define __DECLARE_SEMAPHORE_GENERIC(name, count) \ | |
30 | - struct semaphore name = __SEMAPHORE_INITIALIZER(name, count) | |
31 | - | |
32 | -#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name, 1) | |
29 | +#define DECLARE_MUTEX(name) \ | |
30 | + struct semaphore name = __SEMAPHORE_INITIALIZER(name, 1) | |
33 | 31 | |
34 | 32 | static inline void sema_init(struct semaphore *sem, int val) |
35 | 33 | { |