aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2013-09-01 22:06:53 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-03 00:00:50 -0400
commit5a17a390de7bdbcfff9b8f344273a886ca4cf8bf (patch)
tree9e5d0a9ab50d7700b8a92b6cce9094148f4043a1 /net/ipv4
parent660d98cae0a474887bb5d66e60422addb4c6532c (diff)
net: make snmp_mib_free static inline
Fengguang reported: net/built-in.o: In function `in6_dev_finish_destroy': (.text+0x4ca7d): undefined reference to `snmp_mib_free' this is due to snmp_mib_free() is defined when CONFIG_INET is enabled, but in6_dev_finish_destroy() is now moved to core kernel. I think snmp_mib_free() is small enough to be inlined, so just make it static inline. Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Cong Wang <amwang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/af_inet.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index b4d0be2b7ce9..7a1874b7b8fd 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -1532,18 +1532,6 @@ int snmp_mib_init(void __percpu *ptr[2], size_t mibsize, size_t align)
1532} 1532}
1533EXPORT_SYMBOL_GPL(snmp_mib_init); 1533EXPORT_SYMBOL_GPL(snmp_mib_init);
1534 1534
1535void snmp_mib_free(void __percpu *ptr[SNMP_ARRAY_SZ])
1536{
1537 int i;
1538
1539 BUG_ON(ptr == NULL);
1540 for (i = 0; i < SNMP_ARRAY_SZ; i++) {
1541 free_percpu(ptr[i]);
1542 ptr[i] = NULL;
1543 }
1544}
1545EXPORT_SYMBOL_GPL(snmp_mib_free);
1546
1547#ifdef CONFIG_IP_MULTICAST 1535#ifdef CONFIG_IP_MULTICAST
1548static const struct net_protocol igmp_protocol = { 1536static const struct net_protocol igmp_protocol = {
1549 .handler = igmp_rcv, 1537 .handler = igmp_rcv,