162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci
362306a36Sopenharmony_ci#include <linux/error-injection.h>
462306a36Sopenharmony_ci#include <linux/kprobes.h>
562306a36Sopenharmony_ci
662306a36Sopenharmony_civoid override_function_with_return(struct pt_regs *regs)
762306a36Sopenharmony_ci{
862306a36Sopenharmony_ci	instruction_pointer_set(regs, regs->lr);
962306a36Sopenharmony_ci}
1062306a36Sopenharmony_ciNOKPROBE_SYMBOL(override_function_with_return);
11