]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: make snmp_mib_free static inline
authorCong Wang <amwang@redhat.com>
Mon, 2 Sep 2013 02:06:53 +0000 (10:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Sep 2013 04:00:50 +0000 (21:00 -0700)
commit5a17a390de7bdbcfff9b8f344273a886ca4cf8bf
tree9e5d0a9ab50d7700b8a92b6cce9094148f4043a1
parent660d98cae0a474887bb5d66e60422addb4c6532c
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>
include/net/ip.h
net/ipv4/af_inet.c