hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/arch/x86/lib/error-inject.c
....@@ -1,15 +1,17 @@
11 // SPDX-License-Identifier: GPL-2.0
22
3
+#include <linux/linkage.h>
34 #include <linux/error-injection.h>
45 #include <linux/kprobes.h>
56
67 asmlinkage void just_return_func(void);
78
89 asm(
10
+ ".text\n"
911 ".type just_return_func, @function\n"
1012 ".globl just_return_func\n"
1113 "just_return_func:\n"
12
- " ret\n"
14
+ ASM_RET
1315 ".size just_return_func, .-just_return_func\n"
1416 );
1517