Skip to content

Commit

Permalink
[PATCH] lockdep: annotate on-stack completions, mmc
Browse files Browse the repository at this point in the history
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 <mingo@elte.hu>
Cc: Arjan van de Ven <arjan@linux.intel.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Jul 3, 2006
1 parent 5dd8d1e commit 0afffc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ static void mmc_wait_done(struct mmc_request *mrq)

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;
Expand Down

0 comments on commit 0afffc7

Please sign in to comment.