The make_call_t0 macro has been unused since commit b21cdb9523e5
("riscv: ftrace: support direct call using call_ops"). Remove it.Signed-off-by: Martin Kaiser <[email protected]> --- arch/riscv/include/asm/ftrace.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/riscv/include/asm/ftrace.h b/arch/riscv/include/asm/ftrace.h index e5026cd8f022..61849c1d71f5 100644 --- a/arch/riscv/include/asm/ftrace.h +++ b/arch/riscv/include/asm/ftrace.h @@ -95,14 +95,6 @@ struct dyn_arch_ftrace { (((offset & AUIPC_OFFSET_MASK) + AUIPC_PAD) | AUIPC_T0) : \ ((offset & AUIPC_OFFSET_MASK) | AUIPC_T0)) -#define make_call_t0(caller, callee, call) \ -do { \ - unsigned int offset = \ - (unsigned long) (callee) - (unsigned long) (caller); \ - call[0] = to_auipc_t0(offset); \ - call[1] = to_jalr_t0(offset); \ -} while (0) - /* * Only the jalr insn in the auipc+jalr is patched, so we make it 4 * bytes here. -- 2.43.7
