lwt_bpf: bpf_lwt_prog_cmp() can be static
Subsystems (2)
PATCH 1/1 lwt_bpf: bpf_lwt_prog_cmp() can be static
From: Wei Yongjun <[email protected]>
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 <[email protected]>
--- net/core/lwt_bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/lwt_bpf.c +1 -1
@@ -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
Quoted 8 lines · Wei Yongjun
From: Wei Yongjun <[email protected]>
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 <[email protected]>
Acked-by Daniel Borkmann <[email protected]>
From: Wei Yongjun <[email protected]>
Date: Thu, 12 Jan 2017 14:39:28 +0000
Quoted 8 lines
From: Wei Yongjun <[email protected]>
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 <[email protected]>
Applied.