diff options
| author | Jens Axboe <axboe@kernel.dk> | 2025-07-14 16:36:08 -0600 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-07-14 16:36:08 -0600 |
| commit | b1915b18e1d00eb4e8babcdc2ca3a64b43e20e9a (patch) | |
| tree | a017fcca39496c2afd193c772b21d0cec3f2a365 | |
| parent | 6e4098382b667e6ef485fbf09cd7ddd2e54fe6aa (diff) | |
io_uring/net: cast min_not_zero() type
kernel test robot reports that xtensa complains about different
signedness for a min_not_zero() comparison. Cast the int part to size_t
to avoid this issue.
Fixes: e227c8cdb47b ("io_uring/net: use passed in 'len' in io_recv_buf_select()")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202507150504.zO5FsCPm-lkp@intel.com/
Signed-off-by: Jens Axboe <axboe@kernel.dk>
| -rw-r--r-- | io_uring/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/net.c b/io_uring/net.c index 40f4ac0ab151..639f111408a1 100644 --- a/io_uring/net.c +++ b/io_uring/net.c @@ -1092,7 +1092,7 @@ static int io_recv_buf_select(struct io_kiocb *req, struct io_async_msghdr *kmsg if (*len) arg.max_len = *len; else if (kmsg->msg.msg_inq > 1) - arg.max_len = min_not_zero(*len, kmsg->msg.msg_inq); + arg.max_len = min_not_zero(*len, (size_t) kmsg->msg.msg_inq); ret = io_buffers_peek(req, &arg); if (unlikely(ret < 0)) |
