Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xfrm: remove unneeded export_symbols

None of them have any external callers, make them static.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>

authored by

Florian Westphal and committed by
Steffen Klassert
bb9cd077 c53ac41e

+4 -9
-2
include/net/xfrm.h
··· 1568 1568 int xfrm4_extract_output(struct xfrm_state *x, struct sk_buff *skb); 1569 1569 int xfrm4_output(struct net *net, struct sock *sk, struct sk_buff *skb); 1570 1570 int xfrm4_output_finish(struct sock *sk, struct sk_buff *skb); 1571 - int xfrm4_rcv_cb(struct sk_buff *skb, u8 protocol, int err); 1572 1571 int xfrm4_protocol_register(struct xfrm4_protocol *handler, unsigned char protocol); 1573 1572 int xfrm4_protocol_deregister(struct xfrm4_protocol *handler, unsigned char protocol); 1574 1573 int xfrm4_tunnel_register(struct xfrm_tunnel *handler, unsigned short family); ··· 1583 1584 int xfrm6_input_addr(struct sk_buff *skb, xfrm_address_t *daddr, 1584 1585 xfrm_address_t *saddr, u8 proto); 1585 1586 void xfrm6_local_error(struct sk_buff *skb, u32 mtu); 1586 - int xfrm6_rcv_cb(struct sk_buff *skb, u8 protocol, int err); 1587 1587 int xfrm6_protocol_register(struct xfrm6_protocol *handler, unsigned char protocol); 1588 1588 int xfrm6_protocol_deregister(struct xfrm6_protocol *handler, unsigned char protocol); 1589 1589 int xfrm6_tunnel_register(struct xfrm6_tunnel *handler, unsigned short family);
+1 -2
net/ipv4/xfrm4_protocol.c
··· 46 46 handler != NULL; \ 47 47 handler = rcu_dereference(handler->next)) \ 48 48 49 - int xfrm4_rcv_cb(struct sk_buff *skb, u8 protocol, int err) 49 + static int xfrm4_rcv_cb(struct sk_buff *skb, u8 protocol, int err) 50 50 { 51 51 int ret; 52 52 struct xfrm4_protocol *handler; ··· 61 61 62 62 return 0; 63 63 } 64 - EXPORT_SYMBOL(xfrm4_rcv_cb); 65 64 66 65 int xfrm4_rcv_encap(struct sk_buff *skb, int nexthdr, __be32 spi, 67 66 int encap_type)
+1 -2
net/ipv6/xfrm6_protocol.c
··· 46 46 handler != NULL; \ 47 47 handler = rcu_dereference(handler->next)) \ 48 48 49 - int xfrm6_rcv_cb(struct sk_buff *skb, u8 protocol, int err) 49 + static int xfrm6_rcv_cb(struct sk_buff *skb, u8 protocol, int err) 50 50 { 51 51 int ret; 52 52 struct xfrm6_protocol *handler; ··· 61 61 62 62 return 0; 63 63 } 64 - EXPORT_SYMBOL(xfrm6_rcv_cb); 65 64 66 65 static int xfrm6_esp_rcv(struct sk_buff *skb) 67 66 {
+2 -3
net/xfrm/xfrm_state.c
··· 173 173 int __xfrm_state_delete(struct xfrm_state *x); 174 174 175 175 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol); 176 - bool km_is_alive(const struct km_event *c); 176 + static bool km_is_alive(const struct km_event *c); 177 177 void km_state_expired(struct xfrm_state *x, int hard, u32 portid); 178 178 179 179 static DEFINE_SPINLOCK(xfrm_type_lock); ··· 2025 2025 } 2026 2026 EXPORT_SYMBOL(km_report); 2027 2027 2028 - bool km_is_alive(const struct km_event *c) 2028 + static bool km_is_alive(const struct km_event *c) 2029 2029 { 2030 2030 struct xfrm_mgr *km; 2031 2031 bool is_alive = false; ··· 2041 2041 2042 2042 return is_alive; 2043 2043 } 2044 - EXPORT_SYMBOL(km_is_alive); 2045 2044 2046 2045 int xfrm_user_policy(struct sock *sk, int optname, u8 __user *optval, int optlen) 2047 2046 {