diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-04-10 21:49:23 +0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-04-25 17:20:06 -0700 |
commit | ecfc3fcabbb5291d1e61600a3dac6cdbfdb04cb1 (patch) | |
tree | 8f6c7eba241584180e76d4698205b4b50b0cce84 /arch/mips/net | |
parent | c5b493ce192bd7a4e7bd073b5685aad121eeef82 (diff) | |
download | linux-ecfc3fcabbb5291d1e61600a3dac6cdbfdb04cb1.tar.bz2 |
MIPS: eBPF: Make ebpf_to_mips_reg() static
Fix sparse warning:
arch/mips/net/ebpf_jit.c:196:5: warning:
symbol 'ebpf_to_mips_reg' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'arch/mips/net')
-rw-r--r-- | arch/mips/net/ebpf_jit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/net/ebpf_jit.c b/arch/mips/net/ebpf_jit.c index 0effd3cba9a7..98bf0c222b5f 100644 --- a/arch/mips/net/ebpf_jit.c +++ b/arch/mips/net/ebpf_jit.c @@ -186,8 +186,9 @@ enum which_ebpf_reg { * separate frame pointer, so BPF_REG_10 relative accesses are * adjusted to be $sp relative. */ -int ebpf_to_mips_reg(struct jit_ctx *ctx, const struct bpf_insn *insn, - enum which_ebpf_reg w) +static int ebpf_to_mips_reg(struct jit_ctx *ctx, + const struct bpf_insn *insn, + enum which_ebpf_reg w) { int ebpf_reg = (w == src_reg || w == src_reg_no_fp) ? insn->src_reg : insn->dst_reg; |