Skip to contentSkip to conversation

io_uring: use correct CONFIG_PROC_FS define

PATCH In review Tobias Klauser 2 participants 3 messages Feb 27, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 io_uring: use correct CONFIG_PROC_FS define

Commit 6f283fe2b1ed ("io_uring: define and set show_fdinfo only if procfs is enabled") used CONFIG_PROCFS by mistake. Correct it.

Fixes 6f283fe2b1ed ("io_uring: define and set show_fdinfo only if procfs is enabled")
---
 fs/io_uring.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/io_uring.c +2 -2
index bab973106566..05eea06f5421 100644
@@ -6641,7 +6641,7 @@ SYSCALL_DEFINE6(io_uring_enter, unsigned int, fd, u32, to_submit,
 	return submitted ? submitted : ret;
 }
 
-#ifdef CONFIG_PROCFS
+#ifdef CONFIG_PROC_FS
 static int io_uring_show_cred(int id, void *p, void *data)
 {
 	const struct cred *cred = p;
@@ -6727,7 +6727,7 @@ static const struct file_operations io_uring_fops = {
 #endif
 	.poll		= io_uring_poll,
 	.fasync		= io_uring_fasync,
-#ifdef CONFIG_PROCFS
+#ifdef CONFIG_PROC_FS
 	.show_fdinfo	= io_uring_show_fdinfo,
 #endif
 };
Signature · 1 line
2.25.0
maintainer
#1 lore raw
Quoted 2 lines · Tobias Klauser

Commit 6f283fe2b1ed ("io_uring: define and set show_fdinfo only if procfs is enabled") used CONFIG_PROCFS by mistake. Correct it.

Oops - I folded this into the original.

Signature · 1 line
Jens Axboe
#2 lore raw
Quoted 5 lines · Jens Axboe
Quoted 2 lines · Tobias Klauser

Commit 6f283fe2b1ed ("io_uring: define and set show_fdinfo only if procfs is enabled") used CONFIG_PROCFS by mistake. Correct it.

Oops - I folded this into the original.

Great, thanks. And sorry for not checking more carefully before sending the patch.