aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/route.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/route.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/route.c')
-rw-r--r--net/ipv6/route.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index d69fa462d3f0..4d40dc214b2d 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -2499,7 +2499,7 @@ ctl_table ipv6_route_table_template[] = {
2499 .data = &init_net.ipv6.sysctl.flush_delay, 2499 .data = &init_net.ipv6.sysctl.flush_delay,
2500 .maxlen = sizeof(int), 2500 .maxlen = sizeof(int),
2501 .mode = 0200, 2501 .mode = 0200,
2502 .proc_handler = &ipv6_sysctl_rtcache_flush 2502 .proc_handler = ipv6_sysctl_rtcache_flush
2503 }, 2503 },
2504 { 2504 {
2505 .ctl_name = NET_IPV6_ROUTE_GC_THRESH, 2505 .ctl_name = NET_IPV6_ROUTE_GC_THRESH,
@@ -2507,7 +2507,7 @@ ctl_table ipv6_route_table_template[] = {
2507 .data = &ip6_dst_ops_template.gc_thresh, 2507 .data = &ip6_dst_ops_template.gc_thresh,
2508 .maxlen = sizeof(int), 2508 .maxlen = sizeof(int),
2509 .mode = 0644, 2509 .mode = 0644,
2510 .proc_handler = &proc_dointvec, 2510 .proc_handler = proc_dointvec,
2511 }, 2511 },
2512 { 2512 {
2513 .ctl_name = NET_IPV6_ROUTE_MAX_SIZE, 2513 .ctl_name = NET_IPV6_ROUTE_MAX_SIZE,
@@ -2515,7 +2515,7 @@ ctl_table ipv6_route_table_template[] = {
2515 .data = &init_net.ipv6.sysctl.ip6_rt_max_size, 2515 .data = &init_net.ipv6.sysctl.ip6_rt_max_size,
2516 .maxlen = sizeof(int), 2516 .maxlen = sizeof(int),
2517 .mode = 0644, 2517 .mode = 0644,
2518 .proc_handler = &proc_dointvec, 2518 .proc_handler = proc_dointvec,
2519 }, 2519 },
2520 { 2520 {
2521 .ctl_name = NET_IPV6_ROUTE_GC_MIN_INTERVAL, 2521 .ctl_name = NET_IPV6_ROUTE_GC_MIN_INTERVAL,
@@ -2523,8 +2523,8 @@ ctl_table ipv6_route_table_template[] = {
2523 .data = &init_net.ipv6.sysctl.ip6_rt_gc_min_interval, 2523 .data = &init_net.ipv6.sysctl.ip6_rt_gc_min_interval,
2524 .maxlen = sizeof(int), 2524 .maxlen = sizeof(int),
2525 .mode = 0644, 2525 .mode = 0644,
2526 .proc_handler = &proc_dointvec_jiffies, 2526 .proc_handler = proc_dointvec_jiffies,
2527 .strategy = &sysctl_jiffies, 2527 .strategy = sysctl_jiffies,
2528 }, 2528 },
2529 { 2529 {
2530 .ctl_name = NET_IPV6_ROUTE_GC_TIMEOUT, 2530 .ctl_name = NET_IPV6_ROUTE_GC_TIMEOUT,
@@ -2532,8 +2532,8 @@ ctl_table ipv6_route_table_template[] = {
2532 .data = &init_net.ipv6.sysctl.ip6_rt_gc_timeout, 2532 .data = &init_net.ipv6.sysctl.ip6_rt_gc_timeout,
2533 .maxlen = sizeof(int), 2533 .maxlen = sizeof(int),
2534 .mode = 0644, 2534 .mode = 0644,
2535 .proc_handler = &proc_dointvec_jiffies, 2535 .proc_handler = proc_dointvec_jiffies,
2536 .strategy = &sysctl_jiffies, 2536 .strategy = sysctl_jiffies,
2537 }, 2537 },
2538 { 2538 {
2539 .ctl_name = NET_IPV6_ROUTE_GC_INTERVAL, 2539 .ctl_name = NET_IPV6_ROUTE_GC_INTERVAL,
@@ -2541,8 +2541,8 @@ ctl_table ipv6_route_table_template[] = {
2541 .data = &init_net.ipv6.sysctl.ip6_rt_gc_interval, 2541 .data = &init_net.ipv6.sysctl.ip6_rt_gc_interval,
2542 .maxlen = sizeof(int), 2542 .maxlen = sizeof(int),
2543 .mode = 0644, 2543 .mode = 0644,
2544 .proc_handler = &proc_dointvec_jiffies, 2544 .proc_handler = proc_dointvec_jiffies,
2545 .strategy = &sysctl_jiffies, 2545 .strategy = sysctl_jiffies,
2546 }, 2546 },
2547 { 2547 {
2548 .ctl_name = NET_IPV6_ROUTE_GC_ELASTICITY, 2548 .ctl_name = NET_IPV6_ROUTE_GC_ELASTICITY,
@@ -2550,8 +2550,8 @@ ctl_table ipv6_route_table_template[] = {
2550 .data = &init_net.ipv6.sysctl.ip6_rt_gc_elasticity, 2550 .data = &init_net.ipv6.sysctl.ip6_rt_gc_elasticity,
2551 .maxlen = sizeof(int), 2551 .maxlen = sizeof(int),
2552 .mode = 0644, 2552 .mode = 0644,
2553 .proc_handler = &proc_dointvec_jiffies, 2553 .proc_handler = proc_dointvec_jiffies,
2554 .strategy = &sysctl_jiffies, 2554 .strategy = sysctl_jiffies,
2555 }, 2555 },
2556 { 2556 {
2557 .ctl_name = NET_IPV6_ROUTE_MTU_EXPIRES, 2557 .ctl_name = NET_IPV6_ROUTE_MTU_EXPIRES,
@@ -2559,8 +2559,8 @@ ctl_table ipv6_route_table_template[] = {
2559 .data = &init_net.ipv6.sysctl.ip6_rt_mtu_expires, 2559 .data = &init_net.ipv6.sysctl.ip6_rt_mtu_expires,
2560 .maxlen = sizeof(int), 2560 .maxlen = sizeof(int),
2561 .mode = 0644, 2561 .mode = 0644,
2562 .proc_handler = &proc_dointvec_jiffies, 2562 .proc_handler = proc_dointvec_jiffies,
2563 .strategy = &sysctl_jiffies, 2563 .strategy = sysctl_jiffies,
2564 }, 2564 },
2565 { 2565 {
2566 .ctl_name = NET_IPV6_ROUTE_MIN_ADVMSS, 2566 .ctl_name = NET_IPV6_ROUTE_MIN_ADVMSS,
@@ -2568,8 +2568,8 @@ ctl_table ipv6_route_table_template[] = {
2568 .data = &init_net.ipv6.sysctl.ip6_rt_min_advmss, 2568 .data = &init_net.ipv6.sysctl.ip6_rt_min_advmss,
2569 .maxlen = sizeof(int), 2569 .maxlen = sizeof(int),
2570 .mode = 0644, 2570 .mode = 0644,
2571 .proc_handler = &proc_dointvec_jiffies, 2571 .proc_handler = proc_dointvec_jiffies,
2572 .strategy = &sysctl_jiffies, 2572 .strategy = sysctl_jiffies,
2573 }, 2573 },
2574 { 2574 {
2575 .ctl_name = NET_IPV6_ROUTE_GC_MIN_INTERVAL_MS, 2575 .ctl_name = NET_IPV6_ROUTE_GC_MIN_INTERVAL_MS,
@@ -2577,8 +2577,8 @@ ctl_table ipv6_route_table_template[] = {
2577 .data = &init_net.ipv6.sysctl.ip6_rt_gc_min_interval, 2577 .data = &init_net.ipv6.sysctl.ip6_rt_gc_min_interval,
2578 .maxlen = sizeof(int), 2578 .maxlen = sizeof(int),
2579 .mode = 0644, 2579 .mode = 0644,
2580 .proc_handler = &proc_dointvec_ms_jiffies, 2580 .proc_handler = proc_dointvec_ms_jiffies,
2581 .strategy = &sysctl_ms_jiffies, 2581 .strategy = sysctl_ms_jiffies,
2582 }, 2582 },
2583 { .ctl_name = 0 } 2583 { .ctl_name = 0 }
2584}; 2584};