diff options
| author | Ingo Molnar <[email protected]> | 2006-07-03 07:25:26 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-07-03 22:27:09 +0000 |
| commit | 60be6b9a41cb0da0df7a9f11486da56baebf04cd (patch) | |
| tree | 26cb558d0d57183fdbf9136ad54b581328d6f016 /drivers/spi/spi.c | |
| parent | [PATCH] lockdep: annotate enable_in_hardirq() (diff) | |
| download | kernel-60be6b9a41cb0da0df7a9f11486da56baebf04cd.tar.gz kernel-60be6b9a41cb0da0df7a9f11486da56baebf04cd.zip | |
[PATCH] lockdep: annotate on-stack completions
lockdep needs to have the waitqueue lock initialized for on-stack waitqueues
implicitly initialized by DECLARE_COMPLETION(). Annotate on-stack completions
accordingly.
Has no effect on non-lockdep kernels.
Signed-off-by: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/spi/spi.c')
| -rw-r--r-- | drivers/spi/spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index ed1cdf6ac8f3..146298ad7371 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -510,7 +510,7 @@ static void spi_complete(void *arg) */ int spi_sync(struct spi_device *spi, struct spi_message *message) { - DECLARE_COMPLETION(done); + DECLARE_COMPLETION_ONSTACK(done); int status; message->complete = spi_complete; |
