diff mbox series

fsx: Add a return type to aio_rw

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

Commit Message

Vyacheslav Yurkov Sept. 27, 2023, 1:16 p.m. UTC
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>
---
 ltp/fsx.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Darrick J. Wong Sept. 27, 2023, 2:30 p.m. UTC | #1
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 mbox series

Patch

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");