riscv, bpf: inline bpf_get_smp_processor_id()
[linux-2.6-block.git] / kernel / bpf / core.c
index 99b8b1c9a248ca43bed5717e40b933a730ce61fc..aa59af9f9bd9ba6dc28f19cdb16879e5a7971b42 100644 (file)
@@ -2941,6 +2941,17 @@ bool __weak bpf_jit_needs_zext(void)
        return false;
 }
 
+/* Return true if the JIT inlines the call to the helper corresponding to
+ * the imm.
+ *
+ * The verifier will not patch the insn->imm for the call to the helper if
+ * this returns true.
+ */
+bool __weak bpf_jit_inlines_helper_call(s32 imm)
+{
+       return false;
+}
+
 /* Return TRUE if the JIT backend supports mixing bpf2bpf and tailcalls. */
 bool __weak bpf_jit_supports_subprog_tailcalls(void)
 {