# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.1340.1.33 -> 1.1340.1.34 # net/appletalk/sysctl_net_atalk.c 1.4 -> 1.5 # net/appletalk/ddp.c 1.37 -> 1.38 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 03/10/16 torvalds@home.osdl.org 1.1340.19.2 # Merge http://lia64.bkbits.net/to-linus-2.5 # into home.osdl.org:/home/torvalds/v2.5/linux # -------------------------------------------- # 03/10/16 torvalds@home.osdl.org 1.1342 # Merge http://mdomsch.bkbits.net/linux-2.5-edd # into home.osdl.org:/home/torvalds/v2.5/linux # -------------------------------------------- # 03/10/17 noah@caltech.edu 1.1340.1.34 # Add static inline stubs of atalk_(un)?register_sysctl to net/appletalk/ddp.c # and remove the #ifdef CONFIG_SYSCTL and the extern stub functions from # net/appletalk/sysctl_net_atalk.c. This fixes a link error in the absence of # CONFIG_SYSCTL and saves space. # -------------------------------------------- # diff -Nru a/net/appletalk/ddp.c b/net/appletalk/ddp.c --- a/net/appletalk/ddp.c Fri Oct 17 16:23:47 2003 +++ b/net/appletalk/ddp.c Fri Oct 17 16:23:47 2003 @@ -68,8 +68,13 @@ struct atalk_addr *sa); extern void aarp_proxy_remove(struct net_device *dev, struct atalk_addr *sa); +#ifdef CONFIG_SYSCTL extern void atalk_register_sysctl(void); extern void atalk_unregister_sysctl(void); +#else /* CONFIG_SYSCTL */ +static inline void atalk_register_sysctl(void) { } +static inline void atalk_unregister_sysctl(void) { } +#endif /* CONFIG_SYSCTL */ struct datalink_proto *ddp_dl, *aarp_dl; static struct proto_ops atalk_dgram_ops; @@ -1919,9 +1924,7 @@ */ static void __exit atalk_exit(void) { -#ifdef CONFIG_SYSCTL atalk_unregister_sysctl(); -#endif /* CONFIG_SYSCTL */ atalk_proc_exit(); aarp_cleanup_module(); /* General aarp clean-up. */ unregister_netdevice_notifier(&ddp_notifier); diff -Nru a/net/appletalk/sysctl_net_atalk.c b/net/appletalk/sysctl_net_atalk.c --- a/net/appletalk/sysctl_net_atalk.c Fri Oct 17 16:23:47 2003 +++ b/net/appletalk/sysctl_net_atalk.c Fri Oct 17 16:23:47 2003 @@ -7,8 +7,6 @@ */ #include - -#ifdef CONFIG_SYSCTL #include extern int sysctl_aarp_expiry_time; extern int sysctl_aarp_tick_time; @@ -82,13 +80,3 @@ { unregister_sysctl_table(atalk_table_header); } - -#else /* CONFIG_PROC_FS */ -void atalk_register_sysctl(void) -{ -} - -void atalk_unregister_sysctl(void) -{ -} -#endif /* CONFIG_PROC_FS */