Skip to content
Commit 469956e8 authored by YueHaibing's avatar YueHaibing Committed by Jens Axboe
Browse files

io_uring: Fix unused function warnings



If CONFIG_NET is not set, gcc warns:

fs/io_uring.c:3110:12: warning: io_setup_async_msg defined but not used [-Wunused-function]
 static int io_setup_async_msg(struct io_kiocb *req,
            ^~~~~~~~~~~~~~~~~~

There are many funcions wraped by CONFIG_NET, move them
together to simplify code, also fix this warning.

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>

Minor tweaks.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 84557871
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment