mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 11:06:41 -05:00
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: e227c8cdb4 ("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>
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user