diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2017-01-12 14:39:28 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-12 10:04:40 -0500 |
commit | 79471b10d67a52f5b3744d2e14c06437a65746f2 (patch) | |
tree | 64d6310bb2f6621661640d3d17e5bf1e8b7bf9e8 /net/core | |
parent | 5df285f6a9221ef5584eff234ea2848370067923 (diff) | |
download | linux-79471b10d67a52f5b3744d2e14c06437a65746f2.tar.bz2 |
lwt_bpf: bpf_lwt_prog_cmp() can be static
Fixes the following sparse warning:
net/core/lwt_bpf.c:355:5: warning:
symbol 'bpf_lwt_prog_cmp' was not declared. Should it be static?
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/lwt_bpf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/lwt_bpf.c b/net/core/lwt_bpf.c index 71bb3e2eca08..40ef8ae8d93d 100644 --- a/net/core/lwt_bpf.c +++ b/net/core/lwt_bpf.c @@ -352,7 +352,7 @@ static int bpf_encap_nlsize(struct lwtunnel_state *lwtstate) 0; } -int bpf_lwt_prog_cmp(struct bpf_lwt_prog *a, struct bpf_lwt_prog *b) +static int bpf_lwt_prog_cmp(struct bpf_lwt_prog *a, struct bpf_lwt_prog *b) { /* FIXME: * The LWT state is currently rebuilt for delete requests which |