lwt_bpf: bpf_lwt_prog_cmp() can be static
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 12 Jan 2017 14:39:28 +0000 (14:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jan 2017 15:04:40 +0000 (10:04 -0500)
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>
net/core/lwt_bpf.c

index 71bb3e2eca080735a771a4c4eaf1a3b74b48da9e..40ef8ae8d93d8655c6d338139840371cd3328f29 100644 (file)
@@ -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