Patchwork [Trivial,28/33] ipv6: Convert use of typedef ctl_table to struct ctl_table

login
register
mail settings
Submitter Joe Perches
Date June 14, 2013, 2:37 a.m.
Message ID <43ebfe570d433155e880191f889d8b0a912257e5.1371177118.git.joe@perches.com>
Download mbox | patch
Permalink /patch/251210/
State Accepted
Delegated to: David Miller
Headers show

Comments

Joe Perches - June 14, 2013, 2:37 a.m.
This typedef is unnecessary and should just be removed.

Signed-off-by: Joe Perches <joe@perches.com>
---
 include/net/ipv6.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
David Miller - June 20, 2013, 6:18 a.m.
From: Joe Perches <joe@perches.com>
Date: Thu, 13 Jun 2013 19:37:53 -0700

> This typedef is unnecessary and should just be removed.
> 
> Signed-off-by: Joe Perches <joe@perches.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/include/net/ipv6.h b/include/net/ipv6.h
index ab47582..5fe5649 100644
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -859,8 +859,8 @@  static inline int snmp6_unregister_dev(struct inet6_dev *idev) { return 0; }
 #endif
 
 #ifdef CONFIG_SYSCTL
-extern ctl_table ipv6_route_table_template[];
-extern ctl_table ipv6_icmp_table_template[];
+extern struct ctl_table ipv6_route_table_template[];
+extern struct ctl_table ipv6_icmp_table_template[];
 
 extern struct ctl_table *ipv6_icmp_sysctl_init(struct net *net);
 extern struct ctl_table *ipv6_route_sysctl_init(struct net *net);