2007-01-30 06:27:24

by Grant Coady

[permalink] [raw]
Subject: [PATCH] -mm2: typo in ipc/ipc_sysctl.c -> compile failure

Hi there,

Dunno who does IPC so hoping you do ;) (ref.config: 20-rc6-mm2b/048)

Cheers,
Grant.
From: Grant Coady <[email protected]>

Fix typos causing compile failure when CONFIG_PROC_FS not set in
ipc/ipc_sysctl.c, compile tested.

ipc/ipc_sysctl.c:107: error: `proc_ipc_doulongvec_minmax' undeclared here (not in a function)
ipc/ipc_sysctl.c:107: error: initializer element is not constant
[...]
ipc/ipc_sysctl.c:164: error: (near initialization for `ipc_kern_table[7]')
make[1]: *** [ipc/ipc_sysctl.o] Error 1
make: *** [ipc] Error 2

Also applies cleanly to 2.6.20-rc6-mm3.

Signed-off-by: Grant Coady <[email protected]>

---
ipc_sysctl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

--- linux-2.6.20-rc6-mm2a/ipc/ipc_sysctl.c 2007-01-30 07:41:08.000000000 +1100
+++ linux-2.6.20-rc6-mm2b/ipc/ipc_sysctl.c 2007-01-30 16:45:03.000000000 +1100
@@ -50,8 +50,8 @@
}

#else
-#define proc_ipc_do_ulongvec_minmax NULL
-#define proc_ipc_do_intvec NULL
+#define proc_ipc_doulongvec_minmax NULL
+#define proc_ipc_dointvec NULL
#endif

#ifdef CONFIG_SYSCTL_SYSCALL