diff options
-rw-r--r-- | ipc/shm.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -105,9 +105,16 @@ void shm_exit_ns(struct ipc_namespace *ns) | |||
105 | } | 105 | } |
106 | #endif | 106 | #endif |
107 | 107 | ||
108 | void __init shm_init (void) | 108 | static int __init ipc_ns_init(void) |
109 | { | 109 | { |
110 | shm_init_ns(&init_ipc_ns); | 110 | shm_init_ns(&init_ipc_ns); |
111 | return 0; | ||
112 | } | ||
113 | |||
114 | pure_initcall(ipc_ns_init); | ||
115 | |||
116 | void __init shm_init (void) | ||
117 | { | ||
111 | ipc_init_proc_interface("sysvipc/shm", | 118 | ipc_init_proc_interface("sysvipc/shm", |
112 | #if BITS_PER_LONG <= 32 | 119 | #if BITS_PER_LONG <= 32 |
113 | " key shmid perms size cpid lpid nattch uid gid cuid cgid atime dtime ctime rss swap\n", | 120 | " key shmid perms size cpid lpid nattch uid gid cuid cgid atime dtime ctime rss swap\n", |