Skip to content

Commit e37eabe

Browse files
committed
Revert "LoongArch: BPF: Fix off-by-one error in build_prologue()"
This reverts commit e9ccb26 which is commit 7e2586991e36663c9bc48c828b83eab180ad30a9 upstream. It breaks the build. Link: https://lore.kernel.org/r/[email protected] Reported-by: Guenter Roeck <[email protected]> Cc: Vincent Li <[email protected]> Cc: Hengqi Chen <[email protected]> Cc: Huacai Chen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent b66bc16 commit e37eabe

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

arch/loongarch/net/bpf_jit.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ static void build_prologue(struct jit_ctx *ctx)
142142
*/
143143
if (seen_tail_call(ctx) && seen_call(ctx))
144144
move_reg(ctx, TCC_SAVED, REG_TCC);
145-
else
146-
emit_insn(ctx, nop);
147145

148146
ctx->stack_size = stack_adjust;
149147
}

arch/loongarch/net/bpf_jit.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ struct jit_data {
2525
struct jit_ctx ctx;
2626
};
2727

28-
static inline void emit_nop(union loongarch_instruction *insn)
29-
{
30-
insn->word = INSN_NOP;
31-
}
32-
3328
#define emit_insn(ctx, func, ...) \
3429
do { \
3530
if (ctx->image != NULL) { \

0 commit comments

Comments
 (0)