]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: define and set show_fdinfo only if procfs is enabled
authorTobias Klauser <tklauser@distanz.ch>
Wed, 26 Feb 2020 17:38:32 +0000 (18:38 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Feb 2020 13:56:21 +0000 (06:56 -0700)
commit0d83f666994fd8c4a5e3b0b2dae190a7ca214efc
tree4b6b3fdfa7411b8ba3e2ca57a920e64c7ea2e9f7
parent7551c7a11705ddebaf7ef8833f84ac94493bb8ae
io_uring: define and set show_fdinfo only if procfs is enabled

Follow the pattern used with other *_show_fdinfo functions and only
define and use io_uring_show_fdinfo and its helper functions if
CONFIG_PROC_FS is set.

Fixes: 7c8a286ac9e7 ("io_uring: add ->show_fdinfo() for the io_uring file descriptor")
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c