Loading
LoongArch: Fix definition of ftrace_regs_set_instruction_pointer()
mainline inclusion from mainline-v6.8 commit 91af17cd7d03db8836554c91ba7c38b0817aa980 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IB3IRE Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=91af17cd7d03db8836554c91ba7c38b0817aa980 --------------------------------------------------------------------------- The current definition of ftrace_regs_set_instruction_pointer() is not correct. Obviously, this function is used to set instruction pointer but not return value, so it should call instruction_pointer_set() instead of regs_set_return_value(). There is no side effect by now because it is only used for kernel live- patching which is not supported, so fix it to avoid failure when testing livepatch in the future. Fixes: 6fbff14a ("LoongArch: ftrace: Abstract DYNAMIC_FTRACE_WITH_ARGS accesses") Signed-off-by:Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by:
Huacai Chen <chenhuacai@loongson.cn>