From: Matthew Wilcox Date: Wed, 23 Apr 2008 14:07:27 +0000 (-0400) Subject: Remove __DECLARE_SEMAPHORE_GENERIC X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b552068999b0b05087c454e525b30b785c79dc9b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Remove __DECLARE_SEMAPHORE_GENERIC There are no users of __DECLARE_SEMAPHORE_GENERIC in the kernel Signed-off-by: Matthew Wilcox --- diff --git a/include/linux/semaphore.h b/include/linux/semaphore.h index 9cae64b00d6b..7415839ac890 100644 --- a/include/linux/semaphore.h +++ b/include/linux/semaphore.h @@ -26,10 +26,8 @@ struct semaphore { .wait_list = LIST_HEAD_INIT((name).wait_list), \ } -#define __DECLARE_SEMAPHORE_GENERIC(name, count) \ - struct semaphore name = __SEMAPHORE_INITIALIZER(name, count) - -#define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name, 1) +#define DECLARE_MUTEX(name) \ + struct semaphore name = __SEMAPHORE_INITIALIZER(name, 1) static inline void sema_init(struct semaphore *sem, int val) {