]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix !CONFIG_BLOCK compilation failure
authorJens Axboe <axboe@kernel.dk>
Sat, 3 Apr 2021 01:45:34 +0000 (19:45 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 3 Apr 2021 01:45:34 +0000 (19:45 -0600)
commit19488fdf1f4cd7ed62bdb1127d3d2fa2a00be400
tree3ec5fd7f77d36b8f1429726f9ff5956ae9684daa
parent3c7d940e7ec8edbec3140a0fbb7377d92a2a3293
io_uring: fix !CONFIG_BLOCK compilation failure

kernel test robot correctly pinpoints a compilation failure if
CONFIG_BLOCK isn't set:

fs/io_uring.c: In function '__io_complete_rw':
>> fs/io_uring.c:2509:48: error: implicit declaration of function 'io_rw_should_reissue'; did you mean 'io_rw_reissue'? [-Werror=implicit-function-declaration]
    2509 |  if ((res == -EAGAIN || res == -EOPNOTSUPP) && io_rw_should_reissue(req)) {
         |                                                ^~~~~~~~~~~~~~~~~~~~
         |                                                io_rw_reissue
    cc1: some warnings being treated as errors

Ensure that we have a stub declaration of io_rw_should_reissue() for
!CONFIG_BLOCK.

Fixes: 3c7d940e7ec8 ("io_uring: move reissue into regular IO path")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c