aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/net/ebpf_jit.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/net/ebpf_jit.c')
-rw-r--r--arch/mips/net/ebpf_jit.c5
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 {
186 * separate frame pointer, so BPF_REG_10 relative accesses are 186 * separate frame pointer, so BPF_REG_10 relative accesses are
187 * adjusted to be $sp relative. 187 * adjusted to be $sp relative.
188 */ 188 */
189int ebpf_to_mips_reg(struct jit_ctx *ctx, const struct bpf_insn *insn, 189static int ebpf_to_mips_reg(struct jit_ctx *ctx,
190 enum which_ebpf_reg w) 190 const struct bpf_insn *insn,
191 enum which_ebpf_reg w)
191{ 192{
192 int ebpf_reg = (w == src_reg || w == src_reg_no_fp) ? 193 int ebpf_reg = (w == src_reg || w == src_reg_no_fp) ?
193 insn->src_reg : insn->dst_reg; 194 insn->src_reg : insn->dst_reg;