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 Kefengvoid 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