Commit 6d154db6b3fc3c4dc3fbf7c32df0ad9d7aeaa18c
Committed by
Linus Torvalds
1 parent
ae68230c2d
Exists in
master
and in
4 other branches
scsi: bfa: 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> Cc: Jing Huang <huangj@brocade.com> Cc: James E.J. Bottomley <James.Bottomley@suse.de> Cc: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/scsi/bfa/bfad_im.c
... | ... | @@ -291,7 +291,7 @@ |
291 | 291 | struct bfa_tskim_s *tskim; |
292 | 292 | struct bfad_itnim_s *itnim; |
293 | 293 | struct bfa_itnim_s *bfa_itnim; |
294 | - DECLARE_WAIT_QUEUE_HEAD(wq); | |
294 | + DECLARE_WAIT_QUEUE_HEAD_ONSTACK(wq); | |
295 | 295 | int rc = SUCCESS; |
296 | 296 | unsigned long flags; |
297 | 297 | enum bfi_tskim_status task_status; |
... | ... | @@ -353,7 +353,7 @@ |
353 | 353 | struct bfad_itnim_s *itnim; |
354 | 354 | unsigned long flags; |
355 | 355 | u32 i, rc, err_cnt = 0; |
356 | - DECLARE_WAIT_QUEUE_HEAD(wq); | |
356 | + DECLARE_WAIT_QUEUE_HEAD_ONSTACK(wq); | |
357 | 357 | enum bfi_tskim_status task_status; |
358 | 358 | |
359 | 359 | spin_lock_irqsave(&bfad->bfad_lock, flags); |