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