diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2006-10-01 02:28:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 03:39:24 -0400 |
commit | 6e9a4738c9fadb7cbdcabc1e3b415159f3741ed9 (patch) | |
tree | 0e470bb8cd431d59698da5a6999ff35a347619a3 /drivers/block/cciss.c | |
parent | 397d6140e93156ecb9cafcd9be0db10ff3c12ab3 (diff) |
[PATCH] completions: lockdep annotate on stack completions
All on stack DECLARE_COMPLETIONs should be replaced by:
DECLARE_COMPLETION_ONSTACK
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/block/cciss.c')
-rw-r--r-- | drivers/block/cciss.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index d2d45eaf3681..99f87efe0f58 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c | |||
@@ -879,7 +879,7 @@ static int cciss_ioctl(struct inode *inode, struct file *filep, | |||
879 | char *buff = NULL; | 879 | char *buff = NULL; |
880 | u64bit temp64; | 880 | u64bit temp64; |
881 | unsigned long flags; | 881 | unsigned long flags; |
882 | DECLARE_COMPLETION(wait); | 882 | DECLARE_COMPLETION_ONSTACK(wait); |
883 | 883 | ||
884 | if (!arg) | 884 | if (!arg) |
885 | return -EINVAL; | 885 | return -EINVAL; |
@@ -997,7 +997,7 @@ static int cciss_ioctl(struct inode *inode, struct file *filep, | |||
997 | BYTE sg_used = 0; | 997 | BYTE sg_used = 0; |
998 | int status = 0; | 998 | int status = 0; |
999 | int i; | 999 | int i; |
1000 | DECLARE_COMPLETION(wait); | 1000 | DECLARE_COMPLETION_ONSTACK(wait); |
1001 | __u32 left; | 1001 | __u32 left; |
1002 | __u32 sz; | 1002 | __u32 sz; |
1003 | BYTE __user *data_ptr; | 1003 | BYTE __user *data_ptr; |
@@ -1816,7 +1816,7 @@ static int sendcmd_withirq(__u8 cmd, | |||
1816 | u64bit buff_dma_handle; | 1816 | u64bit buff_dma_handle; |
1817 | unsigned long flags; | 1817 | unsigned long flags; |
1818 | int return_status; | 1818 | int return_status; |
1819 | DECLARE_COMPLETION(wait); | 1819 | DECLARE_COMPLETION_ONSTACK(wait); |
1820 | 1820 | ||
1821 | if ((c = cmd_alloc(h, 0)) == NULL) | 1821 | if ((c = cmd_alloc(h, 0)) == NULL) |
1822 | return -ENOMEM; | 1822 | return -ENOMEM; |