From: Matthew Wilcox Date: Wed, 23 Apr 2008 14:07:27 +0000 (-0400) Subject: Remove __DECLARE_SEMAPHORE_GENERIC X-Git-Tag: v2.6.27-rc1~518^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b552068999b0b05087c454e525b30b785c79dc9b;p=linux-2.6-omap-h63xx.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 9cae64b00d6..7415839ac89 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) {