X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=ipc%2Fshm.c;h=02ecf2c078fce9b62ee2b1ec0ef252c0320acdf5;hp=b5bae9d945b62103ad8924ecf17dee8ee18a728c;hb=140d0b2108faebc77c6523296e211e509cb9f5f9;hpb=24f0eed2668b059e847ff145848ddacb75419acc diff --git a/ipc/shm.c b/ipc/shm.c index b5bae9d945b6..02ecf2c078fc 100644 --- a/ipc/shm.c +++ b/ipc/shm.c @@ -105,9 +105,16 @@ void shm_exit_ns(struct ipc_namespace *ns) } #endif -void __init shm_init (void) +static int __init ipc_ns_init(void) { shm_init_ns(&init_ipc_ns); + return 0; +} + +pure_initcall(ipc_ns_init); + +void __init shm_init (void) +{ ipc_init_proc_interface("sysvipc/shm", #if BITS_PER_LONG <= 32 " key shmid perms size cpid lpid nattch uid gid cuid cgid atime dtime ctime rss swap\n",