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)
195
195
return ftrace_modify_code (pc , 0 , new , false);
196
196
}
197
197
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 )
199
199
{
200
200
#ifdef CONFIG_ARM64_MODULE_PLTS
201
201
struct plt_entry * plt = mod -> arch .ftrace_trampolines ;
202
202
203
- if (addr == FTRACE_ADDR )
204
- return & plt [FTRACE_PLT_IDX ];
205
- #endif
203
+ return & plt [FTRACE_PLT_IDX ];
204
+ #else
206
205
return NULL ;
206
+ #endif
207
207
}
208
208
209
209
static bool reachable_by_bl (unsigned long addr , unsigned long pc )
@@ -270,7 +270,7 @@ static bool ftrace_find_callable_addr(struct dyn_ftrace *rec,
270
270
if (WARN_ON (!mod ))
271
271
return false;
272
272
273
- plt = get_ftrace_plt (mod , * addr );
273
+ plt = get_ftrace_plt (mod );
274
274
if (!plt ) {
275
275
pr_err ("ftrace: no module PLT for %ps\n" , (void * )* addr );
276
276
return false;
You can’t perform that action at this time.
0 commit comments