浏览代码

[PATCH] sysctl warning fix

kernel/sysctl.c:2816: warning: 'sysctl_ipc_data' defined but not used

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Andrew Morton 18 年之前
父节点
当前提交
cb799b8988
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      kernel/sysctl.c

+ 2 - 0
kernel/sysctl.c

@@ -2767,12 +2767,14 @@ static int sysctl_uts_string(ctl_table *table, int __user *name, int nlen,
 {
 {
 	return -ENOSYS;
 	return -ENOSYS;
 }
 }
+#ifdef CONFIG_SYSVIPC
 static int sysctl_ipc_data(ctl_table *table, int __user *name, int nlen,
 static int sysctl_ipc_data(ctl_table *table, int __user *name, int nlen,
 		void __user *oldval, size_t __user *oldlenp,
 		void __user *oldval, size_t __user *oldlenp,
 		void __user *newval, size_t newlen)
 		void __user *newval, size_t newlen)
 {
 {
 	return -ENOSYS;
 	return -ENOSYS;
 }
 }
+#endif
 #endif /* CONFIG_SYSCTL_SYSCALL */
 #endif /* CONFIG_SYSCTL_SYSCALL */
 
 
 /*
 /*