Commit e0316144 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

[ATALK]: Fix build with SYSCTL=n

Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent d796f4b7
...@@ -191,10 +191,13 @@ extern int aarp_send_ddp(struct net_device *dev, ...@@ -191,10 +191,13 @@ extern int aarp_send_ddp(struct net_device *dev,
extern void aarp_send_probe(struct net_device *dev, extern void aarp_send_probe(struct net_device *dev,
struct atalk_addr *addr); struct atalk_addr *addr);
extern void aarp_device_down(struct net_device *dev); extern void aarp_device_down(struct net_device *dev);
extern void aarp_probe_network(struct atalk_iface *atif);
extern int aarp_proxy_probe_network(struct atalk_iface *atif,
struct atalk_addr *sa);
extern void aarp_proxy_remove(struct net_device *dev,
struct atalk_addr *sa);
#ifdef MODULE extern void aarp_cleanup_module(void);
extern void aarp_cleanup_module(void);
#endif /* MODULE */
#define at_sk(__sk) ((struct atalk_sock *)(__sk)->sk_protinfo) #define at_sk(__sk) ((struct atalk_sock *)(__sk)->sk_protinfo)
...@@ -209,8 +212,28 @@ extern rwlock_t atalk_interfaces_lock; ...@@ -209,8 +212,28 @@ extern rwlock_t atalk_interfaces_lock;
extern struct atalk_route atrtr_default; extern struct atalk_route atrtr_default;
extern struct file_operations atalk_seq_arp_fops;
extern int sysctl_aarp_expiry_time;
extern int sysctl_aarp_tick_time;
extern int sysctl_aarp_retransmit_limit;
extern int sysctl_aarp_resolve_time;
#ifdef CONFIG_SYSCTL
extern void atalk_register_sysctl(void);
extern void atalk_unregister_sysctl(void);
#else
#define atalk_register_sysctl() do { } while(0)
#define atalk_unregister_sysctl() do { } while(0)
#endif
#ifdef CONFIG_PROC_FS
extern int atalk_proc_init(void); extern int atalk_proc_init(void);
extern void atalk_proc_exit(void); extern void atalk_proc_exit(void);
#else
#define atalk_proc_init() 0
#define atalk_proc_exit() do { } while(0)
#endif /* CONFIG_PROC_FS */
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
#endif /* __LINUX_ATALK_H__ */ #endif /* __LINUX_ATALK_H__ */
...@@ -4,5 +4,6 @@ ...@@ -4,5 +4,6 @@
obj-$(CONFIG_ATALK) += appletalk.o obj-$(CONFIG_ATALK) += appletalk.o
appletalk-y := aarp.o ddp.o atalk_proc.o appletalk-y := aarp.o ddp.o
appletalk-$(CONFIG_PROC_FS) += atalk_proc.o
appletalk-$(CONFIG_SYSCTL) += sysctl_net_atalk.o appletalk-$(CONFIG_SYSCTL) += sysctl_net_atalk.o
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
#include <net/sock.h> #include <net/sock.h>
#include <linux/atalk.h> #include <linux/atalk.h>
#ifdef CONFIG_PROC_FS
extern struct file_operations atalk_seq_arp_fops;
static __inline__ struct atalk_iface *atalk_get_interface_idx(loff_t pos) static __inline__ struct atalk_iface *atalk_get_interface_idx(loff_t pos)
{ {
...@@ -321,14 +319,3 @@ void __exit atalk_proc_exit(void) ...@@ -321,14 +319,3 @@ void __exit atalk_proc_exit(void)
remove_proc_entry("arp", atalk_proc_dir); remove_proc_entry("arp", atalk_proc_dir);
remove_proc_entry("atalk", proc_net); remove_proc_entry("atalk", proc_net);
} }
#else /* CONFIG_PROC_FS */
int __init atalk_proc_init(void)
{
return 0;
}
void __exit atalk_proc_exit(void)
{
}
#endif /* CONFIG_PROC_FS */
...@@ -61,16 +61,6 @@ ...@@ -61,16 +61,6 @@
#include <net/route.h> #include <net/route.h>
#include <linux/atalk.h> #include <linux/atalk.h>
extern void aarp_cleanup_module(void);
extern void aarp_probe_network(struct atalk_iface *atif);
extern int aarp_proxy_probe_network(struct atalk_iface *atif,
struct atalk_addr *sa);
extern void aarp_proxy_remove(struct net_device *dev, struct atalk_addr *sa);
extern void atalk_register_sysctl(void);
extern void atalk_unregister_sysctl(void);
struct datalink_proto *ddp_dl, *aarp_dl; struct datalink_proto *ddp_dl, *aarp_dl;
static struct proto_ops atalk_dgram_ops; static struct proto_ops atalk_dgram_ops;
......
...@@ -7,13 +7,9 @@ ...@@ -7,13 +7,9 @@
*/ */
#include <linux/config.h> #include <linux/config.h>
#ifdef CONFIG_SYSCTL
#include <linux/sysctl.h> #include <linux/sysctl.h>
extern int sysctl_aarp_expiry_time; #include <net/sock.h>
extern int sysctl_aarp_tick_time; #include <linux/atalk.h>
extern int sysctl_aarp_retransmit_limit;
extern int sysctl_aarp_resolve_time;
static struct ctl_table atalk_table[] = { static struct ctl_table atalk_table[] = {
{ {
...@@ -85,13 +81,3 @@ void atalk_unregister_sysctl(void) ...@@ -85,13 +81,3 @@ void atalk_unregister_sysctl(void)
{ {
unregister_sysctl_table(atalk_table_header); unregister_sysctl_table(atalk_table_header);
} }
#else /* CONFIG_PROC_FS */
void atalk_register_sysctl(void)
{
}
void atalk_unregister_sysctl(void)
{
}
#endif /* CONFIG_PROC_FS */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment