LoongArch: ftrace: Implement ftrace_find_callable_addr() to simplify code
authorYouling Tang <tangyouling@loongson.cn>
Mon, 1 May 2023 09:19:53 +0000 (17:19 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Mon, 1 May 2023 09:19:53 +0000 (17:19 +0800)
commit24d4f52791dae16e478741cc397ba660a95b9d02
treed1b552c205a947981d405e57b517d111e5a6d885
parent819cf65575230bca02ad669daadba2ac04187ae1
LoongArch: ftrace: Implement ftrace_find_callable_addr() to simplify code

In the module processing functions, the same logic can be reused by
implementing ftrace_find_callable_addr().

Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/ftrace_dyn.c