Re: [PATCH] io_uring: fix compile error when CONFIG_IO_URING not set

From: Jens Axboe
Date: Tue May 23 2023 - 13:07:12 EST


On 5/23/23 3:26 AM, lingfuyi wrote:
> when compile with ARCH=mips CROSS_COMPILE=mips-linux-gnu- , and CONFIG_IO_URING
> is not set , compile will case some error like this:
> drivers/nvme/host/ioctl.c:555:37: error: initialization of
> ‘const struct nvme_uring_cmd *’ from ‘int’ makes pointer from
> integer without a cast [-Werror=int-conversion]

This was fixed weeks ago:

https://git.kernel.dk/cgit/linux/commit/?h=io_uring-6.4&id=293007b033418c8c9d1b35d68dec49a500750fde

and is also in 6.4 since -rc2.

--
Jens Axboe