[PATCH 4/4] Staging: rt2860: correct onstack wait_queue_head declaration

Yong Zhang yong.zhang0 at gmail.com
Fri Feb 5 13:52:40 UTC 2010


Use DECLARE_WAIT_QUEUE_HEAD_ONSTACK to make lockdep happy

Signed-off-by: Yong Zhang <yong.zhang0 at gmail.com>
Cc: Greg Kroah-Hartman <gregkh at suse.de>
Cc: Bartlomiej Zolnierkiewicz <bzolnier at gmail.com>
Cc: Alexander Beregalov <a.beregalov at gmail.com>
Cc: David S. Miller <davem at davemloft.net>
Cc: devel at driverdev.osuosl.org
---
 drivers/staging/rt2860/rt_main_dev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/rt2860/rt_main_dev.c b/drivers/staging/rt2860/rt_main_dev.c
index c3d9280..fbddb00 100644
--- a/drivers/staging/rt2860/rt_main_dev.c
+++ b/drivers/staging/rt2860/rt_main_dev.c
@@ -216,7 +216,7 @@ int rt28xx_close(struct net_device *dev)
 	u32 i = 0;
 
 #ifdef RTMP_MAC_USB
-	DECLARE_WAIT_QUEUE_HEAD(unlink_wakeup);
+	DECLARE_WAIT_QUEUE_HEAD_ONSTACK(unlink_wakeup);
 	DECLARE_WAITQUEUE(wait, current);
 #endif /* RTMP_MAC_USB // */
 
-- 
1.6.3.3




More information about the devel mailing list