• Jens Axboe's avatar
    io_uring: make the !CONFIG_NET helpers a bit more robust · 99a10081
    Jens Axboe authored
    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: 93642ef8 ("io_uring: split sqe-prep and async setup")
    Reported-by: default avatarNaresh Kamboju <naresh.kamboju@linaro.org>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    99a10081
io_uring.c 248 KB