Skip to content

Commit fc386ba

Browse files
YueHaibingborkmann
authored andcommitted
bpf, arm: Remove unused function emit_a32_alu_r()
Since commit b18bea2 ("ARM: net: bpf: improve 64-bit ALU implementation") this is unused anymore, so can remove it. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20220611040904.8976-1-yuehaibing@huawei.com
1 parent c49a44b commit fc386ba

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

arch/arm/net/bpf_jit_32.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -712,22 +712,6 @@ static inline void emit_alu_r(const u8 dst, const u8 src, const bool is64,
712712
}
713713
}
714714

715-
/* ALU operation (32 bit)
716-
* dst = dst (op) src
717-
*/
718-
static inline void emit_a32_alu_r(const s8 dst, const s8 src,
719-
struct jit_ctx *ctx, const bool is64,
720-
const bool hi, const u8 op) {
721-
const s8 *tmp = bpf2a32[TMP_REG_1];
722-
s8 rn, rd;
723-
724-
rn = arm_bpf_get_reg32(src, tmp[1], ctx);
725-
rd = arm_bpf_get_reg32(dst, tmp[0], ctx);
726-
/* ALU operation */
727-
emit_alu_r(rd, rn, is64, hi, op, ctx);
728-
arm_bpf_put_reg32(dst, rd, ctx);
729-
}
730-
731715
/* ALU operation (64 bit) */
732716
static inline void emit_a32_alu_r64(const bool is64, const s8 dst[],
733717
const s8 src[], struct jit_ctx *ctx,

0 commit comments

Comments
 (0)