kernel/arch/x86/lib/error-inject.c
.. .. @@ -1,15 +1,17 @@ 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 3 +#include <linux/linkage.h>3 4 #include <linux/error-injection.h> 4 5 #include <linux/kprobes.h> 5 6 6 7 asmlinkage void just_return_func(void); 7 8 8 9 asm( 10 + ".text\n"9 11 ".type just_return_func, @function\n" 10 12 ".globl just_return_func\n" 11 13 "just_return_func:\n" 12 - " ret\n"14 + ASM_RET13 15 ".size just_return_func, .-just_return_func\n" 14 16 ); 15 17