io_uring: make the !CONFIG_NET helpers a bit more robust
authorJens Axboe <axboe@kernel.dk>
Fri, 19 Feb 2021 16:35:19 +0000 (09:35 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 21 Feb 2021 02:02:45 +0000 (19:02 -0700)
commit99a10081647168022745859bb2f1c28b2f70dc83
tree89658fc2faeb9d3a993741741aef84fdb6927973
parent8bad28d8a305b0e5ae444c8c3051e8744f5a4296
io_uring: make the !CONFIG_NET helpers a bit more robust

With the prep and prep async split, we now have potentially 3 helpers
that need to be defined for !CONFIG_NET. Add some helpers to do just
that.

Fixes the following compile error on !CONFIG_NET:

fs/io_uring.c:6171:10: error: implicit declaration of function
'io_sendmsg_prep_async'; did you mean 'io_req_prep_async'?
[-Werror=implicit-function-declaration]
   return io_sendmsg_prep_async(req);
             ^~~~~~~~~~~~~~~~~~~~~
     io_req_prep_async

Fixes: 93642ef88434 ("io_uring: split sqe-prep and async setup")
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c