Skip to content

Commit 888c848

Browse files
AdrianBunkdavem330
authored andcommitted
ipv6: make struct ipv6_devconf static
struct ipv6_devconf can now become static. Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4d6971e commit 888c848

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

include/net/if_inet6.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ struct inet6_dev
193193
struct rcu_head rcu;
194194
};
195195

196-
extern struct ipv6_devconf ipv6_devconf;
197-
198196
static inline void ipv6_eth_mc_map(struct in6_addr *addr, char *buf)
199197
{
200198
/*

net/ipv6/addrconf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ static int ipv6_chk_same_addr(struct net *net, const struct in6_addr *addr,
153153

154154
static ATOMIC_NOTIFIER_HEAD(inet6addr_chain);
155155

156-
struct ipv6_devconf ipv6_devconf __read_mostly = {
156+
static struct ipv6_devconf ipv6_devconf __read_mostly = {
157157
.forwarding = 0,
158158
.hop_limit = IPV6_DEFAULT_HOPLIMIT,
159159
.mtu6 = IPV6_MIN_MTU,

0 commit comments

Comments
 (0)