summaryrefslogtreecommitdiff
path: root/arch/loongarch/net/bpf_jit.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/loongarch/net/bpf_jit.h')
-rw-r--r--arch/loongarch/net/bpf_jit.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/loongarch/net/bpf_jit.h b/arch/loongarch/net/bpf_jit.h
index 68586338ecf8..f9c569f53949 100644
--- a/arch/loongarch/net/bpf_jit.h
+++ b/arch/loongarch/net/bpf_jit.h
@@ -27,6 +27,11 @@ struct jit_data {
struct jit_ctx ctx;
};
+static inline void emit_nop(union loongarch_instruction *insn)
+{
+ insn->word = INSN_NOP;
+}
+
#define emit_insn(ctx, func, ...) \
do { \
if (ctx->image != NULL) { \