18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci#include <linux/error-injection.h> 48c2ecf20Sopenharmony_ci#include <linux/kprobes.h> 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_civoid override_function_with_return(struct pt_regs *regs) 78c2ecf20Sopenharmony_ci{ 88c2ecf20Sopenharmony_ci instruction_pointer_set(regs, regs->lr); 98c2ecf20Sopenharmony_ci} 108c2ecf20Sopenharmony_ciNOKPROBE_SYMBOL(override_function_with_return); 11