]> err.no Git - linux-2.6/commitdiff
[NET]: Do not protect sysctl_optmem_max with CONFIG_SYSCTL
authorDavid S. Miller <davem@sunset.davemloft.net>
Tue, 6 Sep 2005 01:14:11 +0000 (18:14 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 6 Sep 2005 01:14:11 +0000 (18:14 -0700)
The ipv4 and ipv6 protocols need to access it unconditionally.
SYSCTL=n build failure reported by Russell King.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/core/sock.c

index cf628261da521cba025d7401abb3d52900cb35ee..8c48fbecb7cf8fc9e4828a81fdd9a3ca8bd35457 100644 (file)
@@ -1377,9 +1377,10 @@ extern void sk_init(void);
 
 #ifdef CONFIG_SYSCTL
 extern struct ctl_table core_table[];
-extern int sysctl_optmem_max;
 #endif
 
+extern int sysctl_optmem_max;
+
 extern __u32 sysctl_wmem_default;
 extern __u32 sysctl_rmem_default;
 
index ccd10fd65682202fd36942105fee17cb25fb8f51..c13594579bfb193009e22e2fbc0635cfd3a0b14b 100644 (file)
@@ -1719,8 +1719,8 @@ EXPORT_SYMBOL(sock_wfree);
 EXPORT_SYMBOL(sock_wmalloc);
 EXPORT_SYMBOL(sock_i_uid);
 EXPORT_SYMBOL(sock_i_ino);
-#ifdef CONFIG_SYSCTL
 EXPORT_SYMBOL(sysctl_optmem_max);
+#ifdef CONFIG_SYSCTL
 EXPORT_SYMBOL(sysctl_rmem_max);
 EXPORT_SYMBOL(sysctl_wmem_max);
 #endif