Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring/fdinfo: only compile if CONFIG_PROC_FS is set

Rather than wrap fdinfo.c in one big if, handle it on the Makefile
side instead. io_uring.c already conditionally sets fops->fdinfo()
anyway.

Signed-off-by: Jens Axboe <axboe@kernel.dk>

+2 -3
+2 -1
io_uring/Makefile
··· 11 11 eventfd.o uring_cmd.o openclose.o \ 12 12 sqpoll.o xattr.o nop.o fs.o splice.o \ 13 13 sync.o msg_ring.o advise.o openclose.o \ 14 - statx.o timeout.o fdinfo.o cancel.o \ 14 + statx.o timeout.o cancel.o \ 15 15 waitid.o register.o truncate.o \ 16 16 memmap.o alloc_cache.o 17 17 obj-$(CONFIG_IO_URING_ZCRX) += zcrx.o ··· 20 20 obj-$(CONFIG_EPOLL) += epoll.o 21 21 obj-$(CONFIG_NET_RX_BUSY_POLL) += napi.o 22 22 obj-$(CONFIG_NET) += net.o cmd_net.o 23 + obj-$(CONFIG_PROC_FS) += fdinfo.o
-2
io_uring/fdinfo.c
··· 15 15 #include "cancel.h" 16 16 #include "rsrc.h" 17 17 18 - #ifdef CONFIG_PROC_FS 19 18 static __cold int io_uring_show_cred(struct seq_file *m, unsigned int id, 20 19 const struct cred *cred) 21 20 { ··· 263 264 mutex_unlock(&ctx->uring_lock); 264 265 } 265 266 } 266 - #endif