]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix min types mismatch in table alloc
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 15 Jun 2021 12:20:13 +0000 (13:20 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Jun 2021 21:40:17 +0000 (15:40 -0600)
commitff637902d0523612427cb3ba66f50d8dea44a26d
tree3ffe0b553b7a5e3163dd755042dc2d7bae721c6d
parent2f7b451cea23f99b03321574bf58f08a16a497a8
io_uring: fix min types mismatch in table alloc

fs/io_uring.c: In function 'io_alloc_page_table':
include/linux/minmax.h:20:28: warning: comparison of distinct pointer
types lacks a cast

Cast everything to size_t using min_t.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: 2b7d4b20a83d ("io_uring: add helpers for 2 level table alloc")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/50f420a956bca070a43810d4a805293ed54f39d8.1623759527.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c