Skip to content

Commit e74a0ef

Browse files
Alexey Dobriyantorvalds
authored andcommitted
proc: move /proc/sysvipc creation to where it belongs
Move the proc_mkdir() call within the sysvipc subsystem such that we avoid polluting proc_root_init() with petty cpp. [dave@stgolabs.net: contributed changelog] Link: http://lkml.kernel.org/r/20180216161732.GA10297@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Davidlohr Bueso <dave@stgolabs.net> Cc: Manfred Spraul <manfred@colorfullife.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 2f89742 commit e74a0ef

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

‎fs/proc/root.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@ void __init proc_root_init(void)
136136
proc_symlink("mounts", NULL, "self/mounts");
137137

138138
proc_net_init();
139-
140-
#ifdef CONFIG_SYSVIPC
141-
proc_mkdir("sysvipc", NULL);
142-
#endif
143139
proc_mkdir("fs", NULL);
144140
proc_mkdir("driver", NULL);
145141
proc_create_mount_point("fs/nfsd"); /* somewhere for the nfsd filesystem to be mounted */

‎ipc/util.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ static int __init ipc_init(void)
8989
{
9090
int err_sem, err_msg;
9191

92+
proc_mkdir("sysvipc", NULL);
9293
err_sem = sem_init();
9394
WARN(err_sem, "ipc: sysv sem_init failed: %d\n", err_sem);
9495
err_msg = msg_init();

0 commit comments

Comments
 (0)