linux/arch/x86/lib/error-inject.c

// SPDX-License-Identifier: GPL-2.0

#include <linux/linkage.h>
#include <linux/error-injection.h>
#include <linux/kprobes.h>
#include <linux/objtool.h>

asmlinkage void just_return_func(void);

asm;

void override_function_with_return(struct pt_regs *regs)
{}
NOKPROBE_SYMBOL(override_function_with_return);