Skip to content

Commit 0afffc7

Browse files
Ingo MolnarLinus Torvalds
authored andcommitted
[PATCH] lockdep: annotate on-stack completions, mmc
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 <[email protected]> Cc: Arjan van de Ven <[email protected]> Cc: Russell King <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 5dd8d1e commit 0afffc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/mmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static void mmc_wait_done(struct mmc_request *mrq)
128128

129129
int mmc_wait_for_req(struct mmc_host *host, struct mmc_request *mrq)
130130
{
131-
DECLARE_COMPLETION(complete);
131+
DECLARE_COMPLETION_ONSTACK(complete);
132132

133133
mrq->done_data = &complete;
134134
mrq->done = mmc_wait_done;

0 commit comments

Comments
 (0)