Skip to contentSkip to conversation

correct onstack wait_queue_head declaration

PATCH Applied Yong Zhang 3 participants 8 messages Feb 5, 2010 – Feb 6, 2010

Subsystems (5)
lore
Share & tools
lore

Yong Zhang

author
#0 lore raw

cover correct onstack wait_queue_head declaration

Onstack wait_queue_head must be declared with DECLARE_WAIT_QUEUE_HEAD_ONSTACK. Otherwise it will make lockdep warn. So fix the wrong usage in this patchset.

BTW, I split it to 4 patches to send to different maintainer though it's due to the same issue. If you have no objection on this kind of fix, I can also send it in one patch for some simplification.

Yong Zhang (4):
dmaengine: correct onstack wait_queue_head declaration [SCSI] bfa: correct onstack wait_queue_head declaration V4L/DVB: gspca - sn9c20x: correct onstack wait_queue_head declaration
Staging: rt2860: correct onstack wait_queue_head declaration

 drivers/dma/dmatest.c                |    2 +-
 drivers/media/video/gspca/sn9c20x.c  |    2 +-
 drivers/scsi/bfa/bfad_im.c           |    4 ++--
 drivers/staging/rt2860/rt_main_dev.c |    2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)
author
#1 lore raw

PATCH 1/4 dmaengine: correct onstack wait_queue_head declaration

Use DECLARE_WAIT_QUEUE_HEAD_ONSTACK to make lockdep happy

Cc Dan Williams <[email protected]>
Cc Maciej Sosnowski <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Nicolas Ferre <[email protected]>
---
 drivers/dma/dmatest.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/dma/dmatest.c +1 -1
index 8b90516..948d563 100644
@@ -467,7 +467,7 @@ err_srcs:
 
 	if (iterations > 0)
 		while (!kthread_should_stop()) {
-			DECLARE_WAIT_QUEUE_HEAD(wait_dmatest_exit);
+			DECLARE_WAIT_QUEUE_HEAD_ONSTACK(wait_dmatest_exit);
 			interruptible_sleep_on(&wait_dmatest_exit);
 		}
 
Signature · 1 line
1.6.3.3
author
#2 lore raw

PATCH 2/4 bfa: correct onstack wait_queue_head declaration

Use DECLARE_WAIT_QUEUE_HEAD_ONSTACK to make lockdep happy

Cc Jing Huang <[email protected]>
Cc James E.J. Bottomley <[email protected]>
Cc Roel Kluin <[email protected]>
---
 drivers/scsi/bfa/bfad_im.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/bfa/bfad_im.c +2 -2
index f788c2a..3299c7e 100644
@@ -282,7 +282,7 @@ bfad_im_reset_lun_handler(struct scsi_cmnd *cmnd)
 	struct bfa_tskim_s *tskim;
 	struct bfad_itnim_s   *itnim;
 	struct bfa_itnim_s *bfa_itnim;
-	DECLARE_WAIT_QUEUE_HEAD(wq);
+	DECLARE_WAIT_QUEUE_HEAD_ONSTACK(wq);
 	int             rc = SUCCESS;
 	unsigned long   flags;
 	enum bfi_tskim_status task_status;
@@ -344,7 +344,7 @@ bfad_im_reset_bus_handler(struct scsi_cmnd *cmnd)
 	struct bfad_itnim_s   *itnim;
 	unsigned long   flags;
 	u32        i, rc, err_cnt = 0;
-	DECLARE_WAIT_QUEUE_HEAD(wq);
+	DECLARE_WAIT_QUEUE_HEAD_ONSTACK(wq);
 	enum bfi_tskim_status task_status;
 
 	spin_lock_irqsave(&bfad->bfad_lock, flags);
Signature · 1 line
1.6.3.3
author
#3 lore raw

PATCH 3/4 V4L/DVB: gspca - sn9c20x: correct onstack wait_queue_head declaration

Use DECLARE_WAIT_QUEUE_HEAD_ONSTACK to make lockdep happy

Cc Brian Johnson <[email protected]>
Cc Jean-Francois Moine <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/video/gspca/sn9c20x.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/media/video/gspca/sn9c20x.c +1 -1
index 0ca1c06..8f75fbc 100644
@@ -1426,7 +1426,7 @@ static int input_kthread(void *data)
 	struct gspca_dev *gspca_dev = (struct gspca_dev *)data;
 	struct sd *sd = (struct sd *) gspca_dev;
 
-	DECLARE_WAIT_QUEUE_HEAD(wait);
+	DECLARE_WAIT_QUEUE_HEAD_ONSTACK(wait);
 	set_freezable();
 	for (;;) {
 		if (kthread_should_stop())
Signature · 1 line
1.6.3.3
author
#4 lore raw

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

Use DECLARE_WAIT_QUEUE_HEAD_ONSTACK to make lockdep happy

Cc Greg Kroah-Hartman <[email protected]>
Cc Bartlomiej Zolnierkiewicz <[email protected]>
Cc Alexander Beregalov <[email protected]>
Cc David S. Miller <[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 c3d9280..fbddb00 100644
@@ -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 // */
 
Signature · 1 line
1.6.3.3
#6 lore raw
In reply to Yong Zhang
Quoted 10 lines · Yong Zhang

Onstack wait_queue_head must be declared with DECLARE_WAIT_QUEUE_HEAD_ONSTACK. Otherwise it will make lockdep warn. So fix the wrong usage in this patchset.

BTW, I split it to 4 patches to send to different maintainer though it's due to the same issue. If you have no objection on this kind of fix, I can also send it in one patch for some simplification.

--no-chain-reply-to

author
#7 lore raw
Quoted 5 lines · Peter Zijlstra
Quoted 4 lines · Yong Zhang

Onstack wait_queue_head must be declared with DECLARE_WAIT_QUEUE_HEAD_ONSTACK. Otherwise it will make lockdep warn. So fix the wrong usage in this patchset.

Quoted 8 lines
Quoted 6 lines

BTW, I split it to 4 patches to send to different maintainer though it's due to the same issue. If you have no objection on this kind of fix, I can also send it in one patch for some simplification.

--no-chain-reply-to

Thanks for your reminder. :)

Regards,
Yong