Skip to contentSkip to conversation

staging/rt*: fix wait_queue_head_t declaration on stack

PATCH In review Marcin Slusarz 1 participant 1 message Jul 8, 2009 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 staging/rt*: fix wait_queue_head_t declaration on stack

From: Marcin Slusarz <[email protected]>
Subject: [PATCH 2/3] staging/rt*: fix wait_queue_head_t declaration on stack

othwerwise lockdep complains:
"INFO: trying to register non-static key.
the code is fine but needs lockdep annotation. turning off the locking correctness validator."

Cc Greg Kroah-Hartman <[email protected]>
Cc Bartlomiej Zolnierkiewicz <[email protected]>
---
 drivers/staging/rt2860/rt_main_dev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/rt2860/rt_main_dev.c +1 -1
index f298b9b..b6a0372 100644
@@ -190,7 +190,7 @@ int rt28xx_close(IN PNET_DEV dev)
 	BOOLEAN 		Cancelled = FALSE;
 	UINT32			i = 0;
 #ifdef RT2870
-	DECLARE_WAIT_QUEUE_HEAD(unlink_wakeup);
+	DECLARE_WAIT_QUEUE_HEAD_ONSTACK(unlink_wakeup);
 	DECLARE_WAITQUEUE(wait, current);
 
 	//RTMP_SET_FLAG(pAd, fRTMP_ADAPTER_REMOVE_IN_PROGRESS);
Signature · 1 line
1.6.3.3