arm64: ftrace: Simplify get_ftrace_plt
authorFlorent Revest <revest@chromium.org>
Wed, 5 Apr 2023 18:02:47 +0000 (20:02 +0200)
committerWill Deacon <will@kernel.org>
Tue, 11 Apr 2023 17:06:39 +0000 (18:06 +0100)
commit0f59dca63bf2c329e9afeddae2a7ff91cce4cb44
tree976a2223c6f45b34744052544a73155977eabee4
parent2aa6ac03516d078cf0c35aaa273b5cd11ea9734c
arm64: ftrace: Simplify get_ftrace_plt

Following recent refactorings, the get_ftrace_plt function only ever
gets called with addr = FTRACE_ADDR so its code can be simplified to
always return the ftrace trampoline plt.

Signed-off-by: Florent Revest <revest@chromium.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20230405180250.2046566-3-revest@chromium.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/ftrace.c