aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/filter.c
diff options
context:
space:
mode:
authorXiongwei Song <sxwjean@gmail.com>2017-12-19 07:17:15 +0800
committerDaniel Borkmann <daniel@iogearbox.net>2017-12-19 01:37:16 +0100
commitc060bc6115b6a204cb60e6b03fe64135731bc6c8 (patch)
tree1a0c6ef160a963fabd2bed465e5fca1786337a26 /net/core/filter.c
parentselftests/bpf: add netdevsim to config (diff)
downloadlinux-dev-c060bc6115b6a204cb60e6b03fe64135731bc6c8.tar.xz
linux-dev-c060bc6115b6a204cb60e6b03fe64135731bc6c8.zip
bpf: make function xdp_do_generic_redirect_map() static
The function xdp_do_generic_redirect_map() is only used in this file, so make it static. Clean up sparse warning: net/core/filter.c:2687:5: warning: no previous prototype for 'xdp_do_generic_redirect_map' [-Wmissing-prototypes] Signed-off-by: Xiongwei Song <sxwjean@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'net/core/filter.c')
-rw-r--r--net/core/filter.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/core/filter.c b/net/core/filter.c
index 754abe1041b7..130b842c3a15 100644
--- a/net/core/filter.c
+++ b/net/core/filter.c
@@ -2684,8 +2684,9 @@ static int __xdp_generic_ok_fwd_dev(struct sk_buff *skb, struct net_device *fwd)
return 0;
}
-int xdp_do_generic_redirect_map(struct net_device *dev, struct sk_buff *skb,
- struct bpf_prog *xdp_prog)
+static int xdp_do_generic_redirect_map(struct net_device *dev,
+ struct sk_buff *skb,
+ struct bpf_prog *xdp_prog)
{
struct redirect_info *ri = this_cpu_ptr(&redirect_info);
unsigned long map_owner = ri->map_owner;