Skip to content

Commit

Permalink
Remove __DECLARE_SEMAPHORE_GENERIC
Browse files Browse the repository at this point in the history
There are no users of __DECLARE_SEMAPHORE_GENERIC in the kernel

Signed-off-by: Matthew Wilcox <[email protected]>
  • Loading branch information
Matthew Wilcox authored and Matthew Wilcox committed Jul 24, 2008
1 parent 2351ec5 commit b552068
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/linux/semaphore.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit b552068

Please sign in to comment.