Skip to content

Commit

Permalink
V4L/DVB: gspca - sn9c20x: Correct onstack wait_queue_head declaration
Browse files Browse the repository at this point in the history
Use DECLARE_WAIT_QUEUE_HEAD_ONSTACK to make lockdep happy

Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
CC: Brian Johnson <brijohn@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Yong Zhang authored and Mauro Carvalho Chehab committed May 6, 2010
1 parent 84a1d9c commit a76b9f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/gspca/sn9c20x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,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())
Expand Down

0 comments on commit a76b9f4

Please sign in to comment.