Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

Jens Axboe b1915b18 6e409838

+1 -1
+1 -1
io_uring/net.c
··· 1092 1092 if (*len) 1093 1093 arg.max_len = *len; 1094 1094 else if (kmsg->msg.msg_inq > 1) 1095 - arg.max_len = min_not_zero(*len, kmsg->msg.msg_inq); 1095 + arg.max_len = min_not_zero(*len, (size_t) kmsg->msg.msg_inq); 1096 1096 1097 1097 ret = io_buffers_peek(req, &arg); 1098 1098 if (unlikely(ret < 0))