dmaengine: correct onstack wait_queue_head declaration
authorYong Zhang <[email protected]>
Fri, 5 Feb 2010 13:52:37 +0000 (21:52 +0800)
committerDan Williams <[email protected]>
Fri, 5 Feb 2010 22:35:53 +0000 (15:35 -0700)
Use DECLARE_WAIT_QUEUE_HEAD_ONSTACK to make lockdep happy

Signed-off-by: Yong Zhang <[email protected]>
Cc: Maciej Sosnowski <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Nicolas Ferre <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
drivers/dma/dmatest.c

index 8b905161fbf443b4d14036e7a425755a76b4ab3e..948d563941c92e682ec7ed923cf829594597d037 100644 (file)
@@ -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);
                }