Message ID | 20230927131617.100908-1-uvv.mail@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | fsx: Add a return type to aio_rw | expand |
On Wed, Sep 27, 2023 at 03:16:17PM +0200, Vyacheslav Yurkov wrote: > From: Khem Raj <raj.khem@gmail.com> > > Compilers complain about the function prototype otherwise > > Signed-off-by: Khem Raj <raj.khem@gmail.com> > Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com> > Cc: Darrick J. Wong <djwong@kernel.org> > Cc: Zorro Lang <zlang@redhat.com> Whoooops, good catch! Reviewed-by: Darrick J. Wong <djwong@kernel.org> --D > --- > ltp/fsx.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/ltp/fsx.c b/ltp/fsx.c > index ccb382e7..a30e2a8d 100644 > --- a/ltp/fsx.c > +++ b/ltp/fsx.c > @@ -2592,6 +2592,7 @@ out_error: > return -1; > } > #else > +int > aio_rw(int rw, int fd, char *buf, unsigned len, unsigned offset) > { > fprintf(stderr, "io_rw: need AIO support!\n"); > -- > 2.35.1 >
diff --git a/ltp/fsx.c b/ltp/fsx.c index ccb382e7..a30e2a8d 100644 --- a/ltp/fsx.c +++ b/ltp/fsx.c @@ -2592,6 +2592,7 @@ out_error: return -1; } #else +int aio_rw(int rw, int fd, char *buf, unsigned len, unsigned offset) { fprintf(stderr, "io_rw: need AIO support!\n");