From: Eric Sandeen Date: Mon, 10 Mar 2025 18:29:07 +0000 (-0500) Subject: lib: replace aiocb_t with struct aiocb X-Git-Tag: v2025.03.17~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6f8f12aa482a632d6506e4340e82215197b253a8;p=xfstests-dev.git lib: replace aiocb_t with struct aiocb aiocb_t isn't defined anywhere, use struct aiocb instead, to make sparse happy. Signed-off-by: Eric Sandeen Reviewed-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Zorro Lang --- diff --git a/lib/tlibio.c b/lib/tlibio.c index 75f10cec..9d852ff0 100644 --- a/lib/tlibio.c +++ b/lib/tlibio.c @@ -42,6 +42,7 @@ * */ +#include #include #include #include @@ -810,7 +811,7 @@ lio_read_buffer( * (rrl 04/96) ***********************************************************************/ int -lio_check_asyncio(char *io_type, int size, aiocb_t *aiocbp, int method) +lio_check_asyncio(char *io_type, int size, const struct aiocb *aiocbp, int method) { int ret; int cnt = 1; @@ -895,9 +896,10 @@ lio_check_asyncio(char *io_type, int size, aiocb_t *aiocbp, int method) * (rrl 04/96) ***********************************************************************/ int -lio_wait4asyncio(int method, int fd, aiocb_t *aiocbp) +lio_wait4asyncio(int method, int fd, const struct aiocb *aiocbp) { - int cnt; + struct aiocb *const aioary[1]; + int cnt, ret; if ( (method & LIO_WAIT_RECALL) || ((method & LIO_WAIT_TYPES) == 0) ){