From: Ingo Molnar lockdep needs to have the waitqueue lock initialized for on-stack waitqueues implicitly initialized by DECLARE_COMPLETION(). Annotate mmc_wait_for_req()'s on-stack completion accordingly. Has no effect on non-lockdep kernels. Signed-off-by: Ingo Molnar Cc: Arjan van de Ven Cc: Russell King Signed-off-by: Andrew Morton --- drivers/mmc/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/mmc/mmc.c~lockdep-annotate-on-stack-completions-mmc drivers/mmc/mmc.c --- a/drivers/mmc/mmc.c~lockdep-annotate-on-stack-completions-mmc +++ a/drivers/mmc/mmc.c @@ -129,7 +129,7 @@ static void mmc_wait_done(struct mmc_req int mmc_wait_for_req(struct mmc_host *host, struct mmc_request *mrq) { - DECLARE_COMPLETION(complete); + DECLARE_COMPLETION_ONSTACK(complete); mrq->done_data = &complete; mrq->done = mmc_wait_done; _