V4L/DVB: gspca - sn9c20x: Correct onstack wait_queue_head declaration
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>
This commit is contained in:
parent
84a1d9c83e
commit
a76b9f49ba
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user