ipv6: make struct ipv6_devconf static
authorAdrian Bunk <bunk@kernel.org>
Tue, 22 Jul 2008 21:21:58 +0000 (14:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jul 2008 21:21:58 +0000 (14:21 -0700)
struct ipv6_devconf can now become static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/if_inet6.h
net/ipv6/addrconf.c

index db66c792774353ccde4d499ba38b9fc31405edff..c8effa4b1feb68eea3e20e303e05021a45874c86 100644 (file)
@@ -193,8 +193,6 @@ struct inet6_dev
        struct rcu_head         rcu;
 };
 
-extern struct ipv6_devconf ipv6_devconf;
-
 static inline void ipv6_eth_mc_map(struct in6_addr *addr, char *buf)
 {
        /*
index 9f4fcce6379b88d4a6e0b0f388257b8907b4aec3..74d543d504a1d6fcfbe859235e70bd05418b4364 100644 (file)
@@ -153,7 +153,7 @@ static int ipv6_chk_same_addr(struct net *net, const struct in6_addr *addr,
 
 static ATOMIC_NOTIFIER_HEAD(inet6addr_chain);
 
-struct ipv6_devconf ipv6_devconf __read_mostly = {
+static struct ipv6_devconf ipv6_devconf __read_mostly = {
        .forwarding             = 0,
        .hop_limit              = IPV6_DEFAULT_HOPLIMIT,
        .mtu6                   = IPV6_MIN_MTU,