xref: /linux/arch/arm/lib/error-inject.c (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
1*aaa4dd1bSWang Kefeng // SPDX-License-Identifier: GPL-2.0
2*aaa4dd1bSWang Kefeng 
3*aaa4dd1bSWang Kefeng #include <linux/error-injection.h>
4*aaa4dd1bSWang Kefeng #include <linux/kprobes.h>
5*aaa4dd1bSWang Kefeng 
override_function_with_return(struct pt_regs * regs)6*aaa4dd1bSWang Kefeng void override_function_with_return(struct pt_regs *regs)
7*aaa4dd1bSWang Kefeng {
8*aaa4dd1bSWang Kefeng 	instruction_pointer_set(regs, regs->ARM_lr);
9*aaa4dd1bSWang Kefeng }
10*aaa4dd1bSWang Kefeng NOKPROBE_SYMBOL(override_function_with_return);
11