Merge tag 'riscv-for-linus-6.10-mw2' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-block.git] / include / linux / ftrace.h
index e3a83ebd1b333fb72f683e02a684373d0ed20282..800995c425e0860168efddd651fd6e08ca9d15d4 100644 (file)
@@ -819,7 +819,8 @@ static inline int ftrace_init_nop(struct module *mod, struct dyn_ftrace *rec)
 extern int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr);
 
 #if defined(CONFIG_DYNAMIC_FTRACE_WITH_REGS) || \
-       defined(CONFIG_DYNAMIC_FTRACE_WITH_CALL_OPS)
+       defined(CONFIG_DYNAMIC_FTRACE_WITH_CALL_OPS) || \
+       defined(CONFIG_DYNAMIC_FTRACE_WITH_DIRECT_CALLS)
 /**
  * ftrace_modify_call - convert from one addr to another (no nop)
  * @rec: the call site record (e.g. mcount/fentry)