diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-07-07 09:04:32 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-07-07 09:04:32 -0600 |
commit | deab6dc8363248a554cb50c94515aa84c7642628 (patch) | |
tree | 85bb3a94996574d432a7cef2ce82cd938163f5ea | |
parent | 531d76936714dee3f64e325c90545ef232f38b69 (diff) | |
download | liburing-libaio-wrapper.tar.gz liburing-libaio-wrapper.tar.bz2 |
src/compat_libaio: silence fallthrough caseslibaio-wrapper
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | src/compat_libaio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compat_libaio.c b/src/compat_libaio.c index 9001509..e105fbf 100644 --- a/src/compat_libaio.c +++ b/src/compat_libaio.c @@ -168,6 +168,7 @@ static int iocb_to_sqe(struct io_context *ctx, struct io_uring_sqe *sqe, switch (iocb->aio_lio_opcode) { case IO_CMD_PREAD: is_write = 0; + /* fallthrough */ case IO_CMD_PWRITE: { vec->iov_base = iocb->u.c.buf; vec->iov_len = iocb->u.c.nbytes; @@ -184,6 +185,7 @@ static int iocb_to_sqe(struct io_context *ctx, struct io_uring_sqe *sqe, } case IO_CMD_FDSYNC: fsync_flags = IORING_FSYNC_DATASYNC; + /* fallthrough */ case IO_CMD_FSYNC: io_uring_prep_fsync(sqe, iocb->aio_fildes, fsync_flags); break; @@ -196,6 +198,7 @@ static int iocb_to_sqe(struct io_context *ctx, struct io_uring_sqe *sqe, return -EINVAL; case IO_CMD_PREADV: is_write = 0; + /* fallthrough */ case IO_CMD_PWRITEV: if (is_write) io_uring_prep_writev(sqe, iocb->aio_fildes, |