lustre: delete pointless wait queue related casts.
These serve no purpose at all, and can only mask real type clash issues that one would want to actually see. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
97a062b419
commit
4ed296ef28
@ -46,13 +46,10 @@
|
|||||||
#include <asm/kgdb.h>
|
#include <asm/kgdb.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LINUX_WAITQ(w) ((wait_queue_t *) w)
|
|
||||||
#define LINUX_WAITQ_HEAD(w) ((wait_queue_head_t *) w)
|
|
||||||
|
|
||||||
void
|
void
|
||||||
init_waitqueue_entry_current(wait_queue_t *link)
|
init_waitqueue_entry_current(wait_queue_t *link)
|
||||||
{
|
{
|
||||||
init_waitqueue_entry(LINUX_WAITQ(link), current);
|
init_waitqueue_entry(link, current);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(init_waitqueue_entry_current);
|
EXPORT_SYMBOL(init_waitqueue_entry_current);
|
||||||
|
|
||||||
@ -74,9 +71,9 @@ add_wait_queue_exclusive_head(wait_queue_head_t *waitq, wait_queue_t *link)
|
|||||||
{
|
{
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
spin_lock_irqsave(&LINUX_WAITQ_HEAD(waitq)->lock, flags);
|
spin_lock_irqsave(&waitq->lock, flags);
|
||||||
__add_wait_queue_exclusive(LINUX_WAITQ_HEAD(waitq), LINUX_WAITQ(link));
|
__add_wait_queue_exclusive(waitq, link);
|
||||||
spin_unlock_irqrestore(&LINUX_WAITQ_HEAD(waitq)->lock, flags);
|
spin_unlock_irqrestore(&waitq->lock, flags);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(add_wait_queue_exclusive_head);
|
EXPORT_SYMBOL(add_wait_queue_exclusive_head);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user