diff options
| author | Jens Axboe <[email protected]> | 2023-05-08 18:13:27 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-05-09 13:59:54 +0000 |
| commit | 293007b033418c8c9d1b35d68dec49a500750fde (patch) | |
| tree | c38fbdba67c576c1160ae187e52ebe84979da3d5 /drivers/usb/cdns3/cdns3-trace.h | |
| parent | Linux 6.4-rc1 (diff) | |
| download | kernel-293007b033418c8c9d1b35d68dec49a500750fde.tar.gz kernel-293007b033418c8c9d1b35d68dec49a500750fde.zip | |
io_uring: make io_uring_sqe_cmd() unconditionally available
If CONFIG_IO_URING isn't set, then io_uring_sqe_cmd() is not defined.
As the nvme driver uses this helper, it causes a compilation issue:
drivers/nvme/host/ioctl.c: In function 'nvme_uring_cmd_io':
drivers/nvme/host/ioctl.c:555:44: error: implicit declaration of function 'io_uring_sqe_cmd'; did you mean 'io_uring_free'? [-Werror=implicit-function-declaration]
555 | const struct nvme_uring_cmd *cmd = io_uring_sqe_cmd(ioucmd->sqe);
| ^~~~~~~~~~~~~~~~
| io_uring_free
Fix it by just making io_uring_sqe_cmd() generally available - the types
are known, and there's no reason to hide it under CONFIG_IO_URING.
Fixes: fd9b8547bc5c ("io_uring: Pass whole sqe to commands")
Reported-by: kernel test robot <[email protected]>
Reported-by: Chen-Yu Tsai <[email protected]>
Tested-by: Chen-Yu Tsai <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.h')
0 files changed, 0 insertions, 0 deletions
