aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/addrconf.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-11-03 21:21:05 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-03 21:21:05 -0500
commit6d9f239a1edb31d6133230f478fd1dc2da338ec5 (patch)
tree305fa0da95a49db4e342f3f3042f8be0968b03ce /net/ipv6/addrconf.c
parent6cf3f41e6c08bca6641a695449791c38a25f35ff (diff)
net: '&' redux
I want to compile out proc_* and sysctl_* handlers totally and stub them to NULL depending on config options, however usage of & will prevent this, since taking adress of NULL pointer will break compilation. So, drop & in front of every ->proc_handler and every ->strategy handler, it was never needed in fact. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r--net/ipv6/addrconf.c62
1 files changed, 31 insertions, 31 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index ff7ae05f72e1..07ee758de9e1 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -4030,8 +4030,8 @@ static struct addrconf_sysctl_table
4030 .data = &ipv6_devconf.forwarding, 4030 .data = &ipv6_devconf.forwarding,
4031 .maxlen = sizeof(int), 4031 .maxlen = sizeof(int),
4032 .mode = 0644, 4032 .mode = 0644,
4033 .proc_handler = &addrconf_sysctl_forward, 4033 .proc_handler = addrconf_sysctl_forward,
4034 .strategy = &addrconf_sysctl_forward_strategy, 4034 .strategy = addrconf_sysctl_forward_strategy,
4035 }, 4035 },
4036 { 4036 {
4037 .ctl_name = NET_IPV6_HOP_LIMIT, 4037 .ctl_name = NET_IPV6_HOP_LIMIT,
@@ -4047,7 +4047,7 @@ static struct addrconf_sysctl_table
4047 .data = &ipv6_devconf.mtu6, 4047 .data = &ipv6_devconf.mtu6,
4048 .maxlen = sizeof(int), 4048 .maxlen = sizeof(int),
4049 .mode = 0644, 4049 .mode = 0644,
4050 .proc_handler = &proc_dointvec, 4050 .proc_handler = proc_dointvec,
4051 }, 4051 },
4052 { 4052 {
4053 .ctl_name = NET_IPV6_ACCEPT_RA, 4053 .ctl_name = NET_IPV6_ACCEPT_RA,
@@ -4055,7 +4055,7 @@ static struct addrconf_sysctl_table
4055 .data = &ipv6_devconf.accept_ra, 4055 .data = &ipv6_devconf.accept_ra,
4056 .maxlen = sizeof(int), 4056 .maxlen = sizeof(int),
4057 .mode = 0644, 4057 .mode = 0644,
4058 .proc_handler = &proc_dointvec, 4058 .proc_handler = proc_dointvec,
4059 }, 4059 },
4060 { 4060 {
4061 .ctl_name = NET_IPV6_ACCEPT_REDIRECTS, 4061 .ctl_name = NET_IPV6_ACCEPT_REDIRECTS,
@@ -4063,7 +4063,7 @@ static struct addrconf_sysctl_table
4063 .data = &ipv6_devconf.accept_redirects, 4063 .data = &ipv6_devconf.accept_redirects,
4064 .maxlen = sizeof(int), 4064 .maxlen = sizeof(int),
4065 .mode = 0644, 4065 .mode = 0644,
4066 .proc_handler = &proc_dointvec, 4066 .proc_handler = proc_dointvec,
4067 }, 4067 },
4068 { 4068 {
4069 .ctl_name = NET_IPV6_AUTOCONF, 4069 .ctl_name = NET_IPV6_AUTOCONF,
@@ -4071,7 +4071,7 @@ static struct addrconf_sysctl_table
4071 .data = &ipv6_devconf.autoconf, 4071 .data = &ipv6_devconf.autoconf,
4072 .maxlen = sizeof(int), 4072 .maxlen = sizeof(int),
4073 .mode = 0644, 4073 .mode = 0644,
4074 .proc_handler = &proc_dointvec, 4074 .proc_handler = proc_dointvec,
4075 }, 4075 },
4076 { 4076 {
4077 .ctl_name = NET_IPV6_DAD_TRANSMITS, 4077 .ctl_name = NET_IPV6_DAD_TRANSMITS,
@@ -4079,7 +4079,7 @@ static struct addrconf_sysctl_table
4079 .data = &ipv6_devconf.dad_transmits, 4079 .data = &ipv6_devconf.dad_transmits,
4080 .maxlen = sizeof(int), 4080 .maxlen = sizeof(int),
4081 .mode = 0644, 4081 .mode = 0644,
4082 .proc_handler = &proc_dointvec, 4082 .proc_handler = proc_dointvec,
4083 }, 4083 },
4084 { 4084 {
4085 .ctl_name = NET_IPV6_RTR_SOLICITS, 4085 .ctl_name = NET_IPV6_RTR_SOLICITS,
@@ -4087,7 +4087,7 @@ static struct addrconf_sysctl_table
4087 .data = &ipv6_devconf.rtr_solicits, 4087 .data = &ipv6_devconf.rtr_solicits,
4088 .maxlen = sizeof(int), 4088 .maxlen = sizeof(int),
4089 .mode = 0644, 4089 .mode = 0644,
4090 .proc_handler = &proc_dointvec, 4090 .proc_handler = proc_dointvec,
4091 }, 4091 },
4092 { 4092 {
4093 .ctl_name = NET_IPV6_RTR_SOLICIT_INTERVAL, 4093 .ctl_name = NET_IPV6_RTR_SOLICIT_INTERVAL,
@@ -4095,8 +4095,8 @@ static struct addrconf_sysctl_table
4095 .data = &ipv6_devconf.rtr_solicit_interval, 4095 .data = &ipv6_devconf.rtr_solicit_interval,
4096 .maxlen = sizeof(int), 4096 .maxlen = sizeof(int),
4097 .mode = 0644, 4097 .mode = 0644,
4098 .proc_handler = &proc_dointvec_jiffies, 4098 .proc_handler = proc_dointvec_jiffies,
4099 .strategy = &sysctl_jiffies, 4099 .strategy = sysctl_jiffies,
4100 }, 4100 },
4101 { 4101 {
4102 .ctl_name = NET_IPV6_RTR_SOLICIT_DELAY, 4102 .ctl_name = NET_IPV6_RTR_SOLICIT_DELAY,
@@ -4104,8 +4104,8 @@ static struct addrconf_sysctl_table
4104 .data = &ipv6_devconf.rtr_solicit_delay, 4104 .data = &ipv6_devconf.rtr_solicit_delay,
4105 .maxlen = sizeof(int), 4105 .maxlen = sizeof(int),
4106 .mode = 0644, 4106 .mode = 0644,
4107 .proc_handler = &proc_dointvec_jiffies, 4107 .proc_handler = proc_dointvec_jiffies,
4108 .strategy = &sysctl_jiffies, 4108 .strategy = sysctl_jiffies,
4109 }, 4109 },
4110 { 4110 {
4111 .ctl_name = NET_IPV6_FORCE_MLD_VERSION, 4111 .ctl_name = NET_IPV6_FORCE_MLD_VERSION,
@@ -4113,7 +4113,7 @@ static struct addrconf_sysctl_table
4113 .data = &ipv6_devconf.force_mld_version, 4113 .data = &ipv6_devconf.force_mld_version,
4114 .maxlen = sizeof(int), 4114 .maxlen = sizeof(int),
4115 .mode = 0644, 4115 .mode = 0644,
4116 .proc_handler = &proc_dointvec, 4116 .proc_handler = proc_dointvec,
4117 }, 4117 },
4118#ifdef CONFIG_IPV6_PRIVACY 4118#ifdef CONFIG_IPV6_PRIVACY
4119 { 4119 {
@@ -4122,7 +4122,7 @@ static struct addrconf_sysctl_table
4122 .data = &ipv6_devconf.use_tempaddr, 4122 .data = &ipv6_devconf.use_tempaddr,
4123 .maxlen = sizeof(int), 4123 .maxlen = sizeof(int),
4124 .mode = 0644, 4124 .mode = 0644,
4125 .proc_handler = &proc_dointvec, 4125 .proc_handler = proc_dointvec,
4126 }, 4126 },
4127 { 4127 {
4128 .ctl_name = NET_IPV6_TEMP_VALID_LFT, 4128 .ctl_name = NET_IPV6_TEMP_VALID_LFT,
@@ -4130,7 +4130,7 @@ static struct addrconf_sysctl_table
4130 .data = &ipv6_devconf.temp_valid_lft, 4130 .data = &ipv6_devconf.temp_valid_lft,
4131 .maxlen = sizeof(int), 4131 .maxlen = sizeof(int),
4132 .mode = 0644, 4132 .mode = 0644,
4133 .proc_handler = &proc_dointvec, 4133 .proc_handler = proc_dointvec,
4134 }, 4134 },
4135 { 4135 {
4136 .ctl_name = NET_IPV6_TEMP_PREFERED_LFT, 4136 .ctl_name = NET_IPV6_TEMP_PREFERED_LFT,
@@ -4138,7 +4138,7 @@ static struct addrconf_sysctl_table
4138 .data = &ipv6_devconf.temp_prefered_lft, 4138 .data = &ipv6_devconf.temp_prefered_lft,
4139 .maxlen = sizeof(int), 4139 .maxlen = sizeof(int),
4140 .mode = 0644, 4140 .mode = 0644,
4141 .proc_handler = &proc_dointvec, 4141 .proc_handler = proc_dointvec,
4142 }, 4142 },
4143 { 4143 {
4144 .ctl_name = NET_IPV6_REGEN_MAX_RETRY, 4144 .ctl_name = NET_IPV6_REGEN_MAX_RETRY,
@@ -4146,7 +4146,7 @@ static struct addrconf_sysctl_table
4146 .data = &ipv6_devconf.regen_max_retry, 4146 .data = &ipv6_devconf.regen_max_retry,
4147 .maxlen = sizeof(int), 4147 .maxlen = sizeof(int),
4148 .mode = 0644, 4148 .mode = 0644,
4149 .proc_handler = &proc_dointvec, 4149 .proc_handler = proc_dointvec,
4150 }, 4150 },
4151 { 4151 {
4152 .ctl_name = NET_IPV6_MAX_DESYNC_FACTOR, 4152 .ctl_name = NET_IPV6_MAX_DESYNC_FACTOR,
@@ -4154,7 +4154,7 @@ static struct addrconf_sysctl_table
4154 .data = &ipv6_devconf.max_desync_factor, 4154 .data = &ipv6_devconf.max_desync_factor,
4155 .maxlen = sizeof(int), 4155 .maxlen = sizeof(int),
4156 .mode = 0644, 4156 .mode = 0644,
4157 .proc_handler = &proc_dointvec, 4157 .proc_handler = proc_dointvec,
4158 }, 4158 },
4159#endif 4159#endif
4160 { 4160 {
@@ -4163,7 +4163,7 @@ static struct addrconf_sysctl_table
4163 .data = &ipv6_devconf.max_addresses, 4163 .data = &ipv6_devconf.max_addresses,
4164 .maxlen = sizeof(int), 4164 .maxlen = sizeof(int),
4165 .mode = 0644, 4165 .mode = 0644,
4166 .proc_handler = &proc_dointvec, 4166 .proc_handler = proc_dointvec,
4167 }, 4167 },
4168 { 4168 {
4169 .ctl_name = NET_IPV6_ACCEPT_RA_DEFRTR, 4169 .ctl_name = NET_IPV6_ACCEPT_RA_DEFRTR,
@@ -4171,7 +4171,7 @@ static struct addrconf_sysctl_table
4171 .data = &ipv6_devconf.accept_ra_defrtr, 4171 .data = &ipv6_devconf.accept_ra_defrtr,
4172 .maxlen = sizeof(int), 4172 .maxlen = sizeof(int),
4173 .mode = 0644, 4173 .mode = 0644,
4174 .proc_handler = &proc_dointvec, 4174 .proc_handler = proc_dointvec,
4175 }, 4175 },
4176 { 4176 {
4177 .ctl_name = NET_IPV6_ACCEPT_RA_PINFO, 4177 .ctl_name = NET_IPV6_ACCEPT_RA_PINFO,
@@ -4179,7 +4179,7 @@ static struct addrconf_sysctl_table
4179 .data = &ipv6_devconf.accept_ra_pinfo, 4179 .data = &ipv6_devconf.accept_ra_pinfo,
4180 .maxlen = sizeof(int), 4180 .maxlen = sizeof(int),
4181 .mode = 0644, 4181 .mode = 0644,
4182 .proc_handler = &proc_dointvec, 4182 .proc_handler = proc_dointvec,
4183 }, 4183 },
4184#ifdef CONFIG_IPV6_ROUTER_PREF 4184#ifdef CONFIG_IPV6_ROUTER_PREF
4185 { 4185 {
@@ -4188,7 +4188,7 @@ static struct addrconf_sysctl_table
4188 .data = &ipv6_devconf.accept_ra_rtr_pref, 4188 .data = &ipv6_devconf.accept_ra_rtr_pref,
4189 .maxlen = sizeof(int), 4189 .maxlen = sizeof(int),
4190 .mode = 0644, 4190 .mode = 0644,
4191 .proc_handler = &proc_dointvec, 4191 .proc_handler = proc_dointvec,
4192 }, 4192 },
4193 { 4193 {
4194 .ctl_name = NET_IPV6_RTR_PROBE_INTERVAL, 4194 .ctl_name = NET_IPV6_RTR_PROBE_INTERVAL,
@@ -4196,8 +4196,8 @@ static struct addrconf_sysctl_table
4196 .data = &ipv6_devconf.rtr_probe_interval, 4196 .data = &ipv6_devconf.rtr_probe_interval,
4197 .maxlen = sizeof(int), 4197 .maxlen = sizeof(int),
4198 .mode = 0644, 4198 .mode = 0644,
4199 .proc_handler = &proc_dointvec_jiffies, 4199 .proc_handler = proc_dointvec_jiffies,
4200 .strategy = &sysctl_jiffies, 4200 .strategy = sysctl_jiffies,
4201 }, 4201 },
4202#ifdef CONFIG_IPV6_ROUTE_INFO 4202#ifdef CONFIG_IPV6_ROUTE_INFO
4203 { 4203 {
@@ -4206,7 +4206,7 @@ static struct addrconf_sysctl_table
4206 .data = &ipv6_devconf.accept_ra_rt_info_max_plen, 4206 .data = &ipv6_devconf.accept_ra_rt_info_max_plen,
4207 .maxlen = sizeof(int), 4207 .maxlen = sizeof(int),
4208 .mode = 0644, 4208 .mode = 0644,
4209 .proc_handler = &proc_dointvec, 4209 .proc_handler = proc_dointvec,
4210 }, 4210 },
4211#endif 4211#endif
4212#endif 4212#endif
@@ -4216,7 +4216,7 @@ static struct addrconf_sysctl_table
4216 .data = &ipv6_devconf.proxy_ndp, 4216 .data = &ipv6_devconf.proxy_ndp,
4217 .maxlen = sizeof(int), 4217 .maxlen = sizeof(int),
4218 .mode = 0644, 4218 .mode = 0644,
4219 .proc_handler = &proc_dointvec, 4219 .proc_handler = proc_dointvec,
4220 }, 4220 },
4221 { 4221 {
4222 .ctl_name = NET_IPV6_ACCEPT_SOURCE_ROUTE, 4222 .ctl_name = NET_IPV6_ACCEPT_SOURCE_ROUTE,
@@ -4224,7 +4224,7 @@ static struct addrconf_sysctl_table
4224 .data = &ipv6_devconf.accept_source_route, 4224 .data = &ipv6_devconf.accept_source_route,
4225 .maxlen = sizeof(int), 4225 .maxlen = sizeof(int),
4226 .mode = 0644, 4226 .mode = 0644,
4227 .proc_handler = &proc_dointvec, 4227 .proc_handler = proc_dointvec,
4228 }, 4228 },
4229#ifdef CONFIG_IPV6_OPTIMISTIC_DAD 4229#ifdef CONFIG_IPV6_OPTIMISTIC_DAD
4230 { 4230 {
@@ -4233,7 +4233,7 @@ static struct addrconf_sysctl_table
4233 .data = &ipv6_devconf.optimistic_dad, 4233 .data = &ipv6_devconf.optimistic_dad,
4234 .maxlen = sizeof(int), 4234 .maxlen = sizeof(int),
4235 .mode = 0644, 4235 .mode = 0644,
4236 .proc_handler = &proc_dointvec, 4236 .proc_handler = proc_dointvec,
4237 4237
4238 }, 4238 },
4239#endif 4239#endif
@@ -4244,7 +4244,7 @@ static struct addrconf_sysctl_table
4244 .data = &ipv6_devconf.mc_forwarding, 4244 .data = &ipv6_devconf.mc_forwarding,
4245 .maxlen = sizeof(int), 4245 .maxlen = sizeof(int),
4246 .mode = 0644, 4246 .mode = 0644,
4247 .proc_handler = &proc_dointvec, 4247 .proc_handler = proc_dointvec,
4248 }, 4248 },
4249#endif 4249#endif
4250 { 4250 {
@@ -4253,7 +4253,7 @@ static struct addrconf_sysctl_table
4253 .data = &ipv6_devconf.disable_ipv6, 4253 .data = &ipv6_devconf.disable_ipv6,
4254 .maxlen = sizeof(int), 4254 .maxlen = sizeof(int),
4255 .mode = 0644, 4255 .mode = 0644,
4256 .proc_handler = &proc_dointvec, 4256 .proc_handler = proc_dointvec,
4257 }, 4257 },
4258 { 4258 {
4259 .ctl_name = CTL_UNNUMBERED, 4259 .ctl_name = CTL_UNNUMBERED,
@@ -4261,7 +4261,7 @@ static struct addrconf_sysctl_table
4261 .data = &ipv6_devconf.accept_dad, 4261 .data = &ipv6_devconf.accept_dad,
4262 .maxlen = sizeof(int), 4262 .maxlen = sizeof(int),
4263 .mode = 0644, 4263 .mode = 0644,
4264 .proc_handler = &proc_dointvec, 4264 .proc_handler = proc_dointvec,
4265 }, 4265 },
4266 { 4266 {
4267 .ctl_name = 0, /* sentinel */ 4267 .ctl_name = 0, /* sentinel */