File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -195,15 +195,15 @@ int ftrace_update_ftrace_func(ftrace_func_t func)
195195 return ftrace_modify_code (pc , 0 , new , false);
196196}
197197
198- static struct plt_entry * get_ftrace_plt (struct module * mod , unsigned long addr )
198+ static struct plt_entry * get_ftrace_plt (struct module * mod )
199199{
200200#ifdef CONFIG_MODULES
201201 struct plt_entry * plt = mod -> arch .ftrace_trampolines ;
202202
203- if (addr == FTRACE_ADDR )
204- return & plt [FTRACE_PLT_IDX ];
205- #endif
203+ return & plt [FTRACE_PLT_IDX ];
204+ #else
206205 return NULL ;
206+ #endif
207207}
208208
209209static bool reachable_by_bl (unsigned long addr , unsigned long pc )
@@ -270,7 +270,7 @@ static bool ftrace_find_callable_addr(struct dyn_ftrace *rec,
270270 if (WARN_ON (!mod ))
271271 return false;
272272
273- plt = get_ftrace_plt (mod , * addr );
273+ plt = get_ftrace_plt (mod );
274274 if (!plt ) {
275275 pr_err ("ftrace: no module PLT for %ps\n" , (void * )* addr );
276276 return false;
You can’t perform that action at this time.
0 commit comments