提交 f9cdf7ca 编写于 作者: P Peter Zijlstra

x86: Mark stop_this_cpu() __noreturn

vmlinux.o: warning: objtool: smp_stop_nmi_callback()+0x2b: unreachable instruction

0000 0000000000047cf0 <smp_stop_nmi_callback>:
...
0026    47d16:  e8 00 00 00 00          call   47d1b <smp_stop_nmi_callback+0x2b>       47d17: R_X86_64_PLT32   stop_this_cpu-0x4
002b    47d1b:  b8 01 00 00 00          mov    $0x1,%eax
Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: NJosh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20220308154319.290905453@infradead.org
上级 4adb2368
...@@ -835,7 +835,7 @@ bool xen_set_default_idle(void); ...@@ -835,7 +835,7 @@ bool xen_set_default_idle(void);
#define xen_set_default_idle 0 #define xen_set_default_idle 0
#endif #endif
void stop_this_cpu(void *dummy); void __noreturn stop_this_cpu(void *dummy);
void microcode_check(void); void microcode_check(void);
enum l1tf_mitigations { enum l1tf_mitigations {
......
...@@ -747,7 +747,7 @@ bool xen_set_default_idle(void) ...@@ -747,7 +747,7 @@ bool xen_set_default_idle(void)
} }
#endif #endif
void stop_this_cpu(void *dummy) void __noreturn stop_this_cpu(void *dummy)
{ {
local_irq_disable(); local_irq_disable();
/* /*
......
...@@ -181,6 +181,7 @@ static bool __dead_end_function(struct objtool_file *file, struct symbol *func, ...@@ -181,6 +181,7 @@ static bool __dead_end_function(struct objtool_file *file, struct symbol *func,
"kunit_try_catch_throw", "kunit_try_catch_throw",
"xen_start_kernel", "xen_start_kernel",
"cpu_bringup_and_idle", "cpu_bringup_and_idle",
"stop_this_cpu",
}; };
if (!func) if (!func)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册