patch-2.1.45 linux/net/appletalk/sysctl_net_atalk.c

Next file: linux/net/core/scm.c
Previous file: linux/net/appletalk/ddp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.44/linux/net/appletalk/sysctl_net_atalk.c linux/net/appletalk/sysctl_net_atalk.c
@@ -14,7 +14,7 @@
 extern int sysctl_aarp_retransmit_limit;
 extern int sysctl_aarp_resolve_time;
 
-
+#ifdef CONFIG_SYSCTL
 static ctl_table atalk_table[] = {
 	{NET_ATALK_AARP_EXPIRY_TIME, "aarp-expiry-time",
 	 &sysctl_aarp_expiry_time, sizeof(int), 0644, NULL, &proc_dointvec_jiffies},
@@ -39,16 +39,25 @@
 
 static struct ctl_table_header *atalk_table_header;
 
-inline void atalk_register_sysctl(void)
+void atalk_register_sysctl(void)
 {
 	atalk_table_header = register_sysctl_table(atalk_root_table, 1);
 }
 
-inline void atalk_unregister_sysctl(void)
+void atalk_unregister_sysctl(void)
 {
 	unregister_sysctl_table(atalk_table_header);
 }
 
+#else
+void atalk_register_sysctl(void)
+{
+}
+
+void atalk_unregister_sysctl(void)
+{
+}
+#endif
 
 
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov