From: Yong Zhang Date: Fri, 5 Feb 2010 13:52:37 +0000 (+0800) Subject: dmaengine: correct onstack wait_queue_head declaration X-Git-Tag: v2.6.33-rc8~15^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b953df7c70740cd7593072ebec77a8f658505630;p=thirdparty%2Fkernel%2Flinux.git dmaengine: correct onstack wait_queue_head declaration Use DECLARE_WAIT_QUEUE_HEAD_ONSTACK to make lockdep happy Signed-off-by: Yong Zhang Cc: Maciej Sosnowski Cc: Andrew Morton Cc: Nicolas Ferre Signed-off-by: Dan Williams --- diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c index 8b905161fbf44..948d563941c92 100644 --- a/drivers/dma/dmatest.c +++ b/drivers/dma/dmatest.c @@ -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); }