Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5520689 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Matthew Wilcox
Browse files

Remove __DECLARE_SEMAPHORE_GENERIC



There are no users of __DECLARE_SEMAPHORE_GENERIC in the kernel

Signed-off-by: default avatarMatthew Wilcox <willy@linux.intel.com>
parent 2351ec53
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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)
{