diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-11-03 21:21:05 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-03 21:21:05 -0500 |
commit | 6d9f239a1edb31d6133230f478fd1dc2da338ec5 (patch) | |
tree | 305fa0da95a49db4e342f3f3042f8be0968b03ce /net/ipv4/route.c | |
parent | 6cf3f41e6c08bca6641a695449791c38a25f35ff (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/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index f47b9db0db7f..0dc0c3826763 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -3118,7 +3118,7 @@ static ctl_table ipv4_route_table[] = { | |||
3118 | .data = &ipv4_dst_ops.gc_thresh, | 3118 | .data = &ipv4_dst_ops.gc_thresh, |
3119 | .maxlen = sizeof(int), | 3119 | .maxlen = sizeof(int), |
3120 | .mode = 0644, | 3120 | .mode = 0644, |
3121 | .proc_handler = &proc_dointvec, | 3121 | .proc_handler = proc_dointvec, |
3122 | }, | 3122 | }, |
3123 | { | 3123 | { |
3124 | .ctl_name = NET_IPV4_ROUTE_MAX_SIZE, | 3124 | .ctl_name = NET_IPV4_ROUTE_MAX_SIZE, |
@@ -3126,7 +3126,7 @@ static ctl_table ipv4_route_table[] = { | |||
3126 | .data = &ip_rt_max_size, | 3126 | .data = &ip_rt_max_size, |
3127 | .maxlen = sizeof(int), | 3127 | .maxlen = sizeof(int), |
3128 | .mode = 0644, | 3128 | .mode = 0644, |
3129 | .proc_handler = &proc_dointvec, | 3129 | .proc_handler = proc_dointvec, |
3130 | }, | 3130 | }, |
3131 | { | 3131 | { |
3132 | /* Deprecated. Use gc_min_interval_ms */ | 3132 | /* Deprecated. Use gc_min_interval_ms */ |
@@ -3136,8 +3136,8 @@ static ctl_table ipv4_route_table[] = { | |||
3136 | .data = &ip_rt_gc_min_interval, | 3136 | .data = &ip_rt_gc_min_interval, |
3137 | .maxlen = sizeof(int), | 3137 | .maxlen = sizeof(int), |
3138 | .mode = 0644, | 3138 | .mode = 0644, |
3139 | .proc_handler = &proc_dointvec_jiffies, | 3139 | .proc_handler = proc_dointvec_jiffies, |
3140 | .strategy = &sysctl_jiffies, | 3140 | .strategy = sysctl_jiffies, |
3141 | }, | 3141 | }, |
3142 | { | 3142 | { |
3143 | .ctl_name = NET_IPV4_ROUTE_GC_MIN_INTERVAL_MS, | 3143 | .ctl_name = NET_IPV4_ROUTE_GC_MIN_INTERVAL_MS, |
@@ -3145,8 +3145,8 @@ static ctl_table ipv4_route_table[] = { | |||
3145 | .data = &ip_rt_gc_min_interval, | 3145 | .data = &ip_rt_gc_min_interval, |
3146 | .maxlen = sizeof(int), | 3146 | .maxlen = sizeof(int), |
3147 | .mode = 0644, | 3147 | .mode = 0644, |
3148 | .proc_handler = &proc_dointvec_ms_jiffies, | 3148 | .proc_handler = proc_dointvec_ms_jiffies, |
3149 | .strategy = &sysctl_ms_jiffies, | 3149 | .strategy = sysctl_ms_jiffies, |
3150 | }, | 3150 | }, |
3151 | { | 3151 | { |
3152 | .ctl_name = NET_IPV4_ROUTE_GC_TIMEOUT, | 3152 | .ctl_name = NET_IPV4_ROUTE_GC_TIMEOUT, |
@@ -3154,8 +3154,8 @@ static ctl_table ipv4_route_table[] = { | |||
3154 | .data = &ip_rt_gc_timeout, | 3154 | .data = &ip_rt_gc_timeout, |
3155 | .maxlen = sizeof(int), | 3155 | .maxlen = sizeof(int), |
3156 | .mode = 0644, | 3156 | .mode = 0644, |
3157 | .proc_handler = &proc_dointvec_jiffies, | 3157 | .proc_handler = proc_dointvec_jiffies, |
3158 | .strategy = &sysctl_jiffies, | 3158 | .strategy = sysctl_jiffies, |
3159 | }, | 3159 | }, |
3160 | { | 3160 | { |
3161 | .ctl_name = NET_IPV4_ROUTE_GC_INTERVAL, | 3161 | .ctl_name = NET_IPV4_ROUTE_GC_INTERVAL, |
@@ -3163,8 +3163,8 @@ static ctl_table ipv4_route_table[] = { | |||
3163 | .data = &ip_rt_gc_interval, | 3163 | .data = &ip_rt_gc_interval, |
3164 | .maxlen = sizeof(int), | 3164 | .maxlen = sizeof(int), |
3165 | .mode = 0644, | 3165 | .mode = 0644, |
3166 | .proc_handler = &proc_dointvec_jiffies, | 3166 | .proc_handler = proc_dointvec_jiffies, |
3167 | .strategy = &sysctl_jiffies, | 3167 | .strategy = sysctl_jiffies, |
3168 | }, | 3168 | }, |
3169 | { | 3169 | { |
3170 | .ctl_name = NET_IPV4_ROUTE_REDIRECT_LOAD, | 3170 | .ctl_name = NET_IPV4_ROUTE_REDIRECT_LOAD, |
@@ -3172,7 +3172,7 @@ static ctl_table ipv4_route_table[] = { | |||
3172 | .data = &ip_rt_redirect_load, | 3172 | .data = &ip_rt_redirect_load, |
3173 | .maxlen = sizeof(int), | 3173 | .maxlen = sizeof(int), |
3174 | .mode = 0644, | 3174 | .mode = 0644, |
3175 | .proc_handler = &proc_dointvec, | 3175 | .proc_handler = proc_dointvec, |
3176 | }, | 3176 | }, |
3177 | { | 3177 | { |
3178 | .ctl_name = NET_IPV4_ROUTE_REDIRECT_NUMBER, | 3178 | .ctl_name = NET_IPV4_ROUTE_REDIRECT_NUMBER, |
@@ -3180,7 +3180,7 @@ static ctl_table ipv4_route_table[] = { | |||
3180 | .data = &ip_rt_redirect_number, | 3180 | .data = &ip_rt_redirect_number, |
3181 | .maxlen = sizeof(int), | 3181 | .maxlen = sizeof(int), |
3182 | .mode = 0644, | 3182 | .mode = 0644, |
3183 | .proc_handler = &proc_dointvec, | 3183 | .proc_handler = proc_dointvec, |
3184 | }, | 3184 | }, |
3185 | { | 3185 | { |
3186 | .ctl_name = NET_IPV4_ROUTE_REDIRECT_SILENCE, | 3186 | .ctl_name = NET_IPV4_ROUTE_REDIRECT_SILENCE, |
@@ -3188,7 +3188,7 @@ static ctl_table ipv4_route_table[] = { | |||
3188 | .data = &ip_rt_redirect_silence, | 3188 | .data = &ip_rt_redirect_silence, |
3189 | .maxlen = sizeof(int), | 3189 | .maxlen = sizeof(int), |
3190 | .mode = 0644, | 3190 | .mode = 0644, |
3191 | .proc_handler = &proc_dointvec, | 3191 | .proc_handler = proc_dointvec, |
3192 | }, | 3192 | }, |
3193 | { | 3193 | { |
3194 | .ctl_name = NET_IPV4_ROUTE_ERROR_COST, | 3194 | .ctl_name = NET_IPV4_ROUTE_ERROR_COST, |
@@ -3196,7 +3196,7 @@ static ctl_table ipv4_route_table[] = { | |||
3196 | .data = &ip_rt_error_cost, | 3196 | .data = &ip_rt_error_cost, |
3197 | .maxlen = sizeof(int), | 3197 | .maxlen = sizeof(int), |
3198 | .mode = 0644, | 3198 | .mode = 0644, |
3199 | .proc_handler = &proc_dointvec, | 3199 | .proc_handler = proc_dointvec, |
3200 | }, | 3200 | }, |
3201 | { | 3201 | { |
3202 | .ctl_name = NET_IPV4_ROUTE_ERROR_BURST, | 3202 | .ctl_name = NET_IPV4_ROUTE_ERROR_BURST, |
@@ -3204,7 +3204,7 @@ static ctl_table ipv4_route_table[] = { | |||
3204 | .data = &ip_rt_error_burst, | 3204 | .data = &ip_rt_error_burst, |
3205 | .maxlen = sizeof(int), | 3205 | .maxlen = sizeof(int), |
3206 | .mode = 0644, | 3206 | .mode = 0644, |
3207 | .proc_handler = &proc_dointvec, | 3207 | .proc_handler = proc_dointvec, |
3208 | }, | 3208 | }, |
3209 | { | 3209 | { |
3210 | .ctl_name = NET_IPV4_ROUTE_GC_ELASTICITY, | 3210 | .ctl_name = NET_IPV4_ROUTE_GC_ELASTICITY, |
@@ -3212,7 +3212,7 @@ static ctl_table ipv4_route_table[] = { | |||
3212 | .data = &ip_rt_gc_elasticity, | 3212 | .data = &ip_rt_gc_elasticity, |
3213 | .maxlen = sizeof(int), | 3213 | .maxlen = sizeof(int), |
3214 | .mode = 0644, | 3214 | .mode = 0644, |
3215 | .proc_handler = &proc_dointvec, | 3215 | .proc_handler = proc_dointvec, |
3216 | }, | 3216 | }, |
3217 | { | 3217 | { |
3218 | .ctl_name = NET_IPV4_ROUTE_MTU_EXPIRES, | 3218 | .ctl_name = NET_IPV4_ROUTE_MTU_EXPIRES, |
@@ -3220,8 +3220,8 @@ static ctl_table ipv4_route_table[] = { | |||
3220 | .data = &ip_rt_mtu_expires, | 3220 | .data = &ip_rt_mtu_expires, |
3221 | .maxlen = sizeof(int), | 3221 | .maxlen = sizeof(int), |
3222 | .mode = 0644, | 3222 | .mode = 0644, |
3223 | .proc_handler = &proc_dointvec_jiffies, | 3223 | .proc_handler = proc_dointvec_jiffies, |
3224 | .strategy = &sysctl_jiffies, | 3224 | .strategy = sysctl_jiffies, |
3225 | }, | 3225 | }, |
3226 | { | 3226 | { |
3227 | .ctl_name = NET_IPV4_ROUTE_MIN_PMTU, | 3227 | .ctl_name = NET_IPV4_ROUTE_MIN_PMTU, |
@@ -3229,7 +3229,7 @@ static ctl_table ipv4_route_table[] = { | |||
3229 | .data = &ip_rt_min_pmtu, | 3229 | .data = &ip_rt_min_pmtu, |
3230 | .maxlen = sizeof(int), | 3230 | .maxlen = sizeof(int), |
3231 | .mode = 0644, | 3231 | .mode = 0644, |
3232 | .proc_handler = &proc_dointvec, | 3232 | .proc_handler = proc_dointvec, |
3233 | }, | 3233 | }, |
3234 | { | 3234 | { |
3235 | .ctl_name = NET_IPV4_ROUTE_MIN_ADVMSS, | 3235 | .ctl_name = NET_IPV4_ROUTE_MIN_ADVMSS, |
@@ -3237,7 +3237,7 @@ static ctl_table ipv4_route_table[] = { | |||
3237 | .data = &ip_rt_min_advmss, | 3237 | .data = &ip_rt_min_advmss, |
3238 | .maxlen = sizeof(int), | 3238 | .maxlen = sizeof(int), |
3239 | .mode = 0644, | 3239 | .mode = 0644, |
3240 | .proc_handler = &proc_dointvec, | 3240 | .proc_handler = proc_dointvec, |
3241 | }, | 3241 | }, |
3242 | { | 3242 | { |
3243 | .ctl_name = NET_IPV4_ROUTE_SECRET_INTERVAL, | 3243 | .ctl_name = NET_IPV4_ROUTE_SECRET_INTERVAL, |
@@ -3245,8 +3245,8 @@ static ctl_table ipv4_route_table[] = { | |||
3245 | .data = &ip_rt_secret_interval, | 3245 | .data = &ip_rt_secret_interval, |
3246 | .maxlen = sizeof(int), | 3246 | .maxlen = sizeof(int), |
3247 | .mode = 0644, | 3247 | .mode = 0644, |
3248 | .proc_handler = &ipv4_sysctl_rt_secret_interval, | 3248 | .proc_handler = ipv4_sysctl_rt_secret_interval, |
3249 | .strategy = &ipv4_sysctl_rt_secret_interval_strategy, | 3249 | .strategy = ipv4_sysctl_rt_secret_interval_strategy, |
3250 | }, | 3250 | }, |
3251 | { .ctl_name = 0 } | 3251 | { .ctl_name = 0 } |
3252 | }; | 3252 | }; |
@@ -3274,8 +3274,8 @@ static struct ctl_table ipv4_route_flush_table[] = { | |||
3274 | .procname = "flush", | 3274 | .procname = "flush", |
3275 | .maxlen = sizeof(int), | 3275 | .maxlen = sizeof(int), |
3276 | .mode = 0200, | 3276 | .mode = 0200, |
3277 | .proc_handler = &ipv4_sysctl_rtcache_flush, | 3277 | .proc_handler = ipv4_sysctl_rtcache_flush, |
3278 | .strategy = &ipv4_sysctl_rtcache_flush_strategy, | 3278 | .strategy = ipv4_sysctl_rtcache_flush_strategy, |
3279 | }, | 3279 | }, |
3280 | { .ctl_name = 0 }, | 3280 | { .ctl_name = 0 }, |
3281 | }; | 3281 | }; |