diff options
author | Kent Overstreet <koverstreet@google.com> | 2013-05-07 19:18:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-07 21:38:28 -0400 |
commit | 2d68449e86168744513ca4f13477f081ce167130 (patch) | |
tree | 93fd1853637a41f2906ed96662a15168c251ec4b /include/linux/aio.h | |
parent | 162934de51e0271f6e2955075735656ea5092ea9 (diff) |
aio: kill return value of aio_complete()
Nothing used the return value, and it probably wasn't possible to use it
safely for the locked versions (aio_complete(), aio_put_req()). Just
kill it.
Signed-off-by: Kent Overstreet <koverstreet@google.com>
Acked-by: Zach Brown <zab@redhat.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Asai Thambi S P <asamymuthupa@micron.com>
Cc: Selvan Mani <smani@micron.com>
Cc: Sam Bradshaw <sbradshaw@micron.com>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Benjamin LaHaise <bcrl@kvack.org>
Reviewed-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/aio.h')
-rw-r--r-- | include/linux/aio.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/aio.h b/include/linux/aio.h index 019204e46c11..615d55a5d0be 100644 --- a/include/linux/aio.h +++ b/include/linux/aio.h | |||
@@ -167,16 +167,16 @@ struct kioctx { | |||
167 | /* prototypes */ | 167 | /* prototypes */ |
168 | #ifdef CONFIG_AIO | 168 | #ifdef CONFIG_AIO |
169 | extern ssize_t wait_on_sync_kiocb(struct kiocb *iocb); | 169 | extern ssize_t wait_on_sync_kiocb(struct kiocb *iocb); |
170 | extern int aio_put_req(struct kiocb *iocb); | 170 | extern void aio_put_req(struct kiocb *iocb); |
171 | extern int aio_complete(struct kiocb *iocb, long res, long res2); | 171 | extern void aio_complete(struct kiocb *iocb, long res, long res2); |
172 | struct mm_struct; | 172 | struct mm_struct; |
173 | extern void exit_aio(struct mm_struct *mm); | 173 | extern void exit_aio(struct mm_struct *mm); |
174 | extern long do_io_submit(aio_context_t ctx_id, long nr, | 174 | extern long do_io_submit(aio_context_t ctx_id, long nr, |
175 | struct iocb __user *__user *iocbpp, bool compat); | 175 | struct iocb __user *__user *iocbpp, bool compat); |
176 | #else | 176 | #else |
177 | static inline ssize_t wait_on_sync_kiocb(struct kiocb *iocb) { return 0; } | 177 | static inline ssize_t wait_on_sync_kiocb(struct kiocb *iocb) { return 0; } |
178 | static inline int aio_put_req(struct kiocb *iocb) { return 0; } | 178 | static inline void aio_put_req(struct kiocb *iocb) { } |
179 | static inline int aio_complete(struct kiocb *iocb, long res, long res2) { return 0; } | 179 | static inline void aio_complete(struct kiocb *iocb, long res, long res2) { } |
180 | struct mm_struct; | 180 | struct mm_struct; |
181 | static inline void exit_aio(struct mm_struct *mm) { } | 181 | static inline void exit_aio(struct mm_struct *mm) { } |
182 | static inline long do_io_submit(aio_context_t ctx_id, long nr, | 182 | static inline long do_io_submit(aio_context_t ctx_id, long nr, |