Subject: [PATCH net-next] net: Remove unneeded export of a couple of xdp generic functions

From: David Ahern <[email-masked]>
Date: Thu, 20 Feb 2020 22:03:13 -0700

From: David Ahern <[email-masked]>

generic_xdp_tx and xdp_do_generic_redirect are only used by builtin
code, so remove the EXPORT_SYMBOL_GPL for them.

Signed-off-by: David Ahern <[email-masked]>
---
 net/core/dev.c    | 1 -
 net/core/filter.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/net/core/dev.c b/net/core/dev.c
index a6316b336128..0aaacfbe07ab 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -4649,7 +4649,6 @@ void generic_xdp_tx(struct sk_buff *skb, struct bpf_prog *xdp_prog)
 		kfree_skb(skb);
 	}
 }
-EXPORT_SYMBOL_GPL(generic_xdp_tx);
 
 static DEFINE_STATIC_KEY_FALSE(generic_xdp_needed_key);
 
diff --git a/net/core/filter.c b/net/core/filter.c
index c180871e606d..f17631c80f8b 100644
--- a/net/core/filter.c
+++ b/net/core/filter.c
@@ -3626,7 +3626,6 @@ int xdp_do_generic_redirect(struct net_device *dev, struct sk_buff *skb,
 	_trace_xdp_redirect_err(dev, xdp_prog, index, err);
 	return err;
 }
-EXPORT_SYMBOL_GPL(xdp_do_generic_redirect);
 
 BPF_CALL_2(bpf_xdp_redirect, u32, ifindex, u64, flags)
 {
-- 
2.17.1