Commit b8b637d7 authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe

ublk: fix build warning on iov_iter_get_pages2

Return type of iov_iter_get_pages2() is ssize_t instead of size_t, so
fix it.

Fixes: 981f95a5 ("ublk: cleanup ublk_copy_user_pages")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Reported-by: default avatarJulia Lawall <julia.lawall@inria.fr>
Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20230520151134.459679-1-ming.lei@redhat.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 712c7364
......@@ -564,7 +564,8 @@ static size_t ublk_copy_user_pages(const struct request *req,
while (iov_iter_count(uiter) && iter.bio) {
unsigned nr_pages;
size_t len, off;
ssize_t len;
size_t off;
int i;
len = iov_iter_get_pages2(uiter, iter.pages,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment