Re: [PATCH] bpf: make function xdp_do_generic_redirect_map() static

From: Daniel Borkmann
Date: Mon Dec 18 2017 - 19:38:58 EST


On 12/19/2017 12:17 AM, Xiongwei Song wrote:
> 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@xxxxxxxxx>

Applied to bpf-next, thanks Xiongwei!