summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-03-17 21:40:06 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-03-17 21:40:06 +0000
commit3dd69a02d1da3b66a116df0e778c4395eea0f0f2 (patch)
treecde74ece2de1b528e0260484addf6f8be7fbd8b2 /ipc
parent4336fdf7d7c48ccaaadeb11cbcb4e8543d4018f4 (diff)
Fix compilation without CONFIG_PROC_FS. Patch sent to Linus + Alan.
Diffstat (limited to 'ipc')
-rw-r--r--ipc/shm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipc/shm.c b/ipc/shm.c
index b6558a8b5..10856ad64 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -71,7 +71,9 @@ static int shm_tot; /* total number of shared memory pages */
void __init shm_init (void)
{
ipc_init_ids(&shm_ids, 1);
+#ifdef CONFIG_PROC_FS
create_proc_read_entry("sysvipc/shm", 0, 0, sysvipc_shm_read_proc, NULL);
+#endif
}
static inline int shm_checkid(struct shmid_kernel *s, int id)