xref: /linux/tools/objtool/noreturns.h (revision 409c38d4f156740bf3165fd6ceae4fa6425eebf4)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 /*
4  * This is a (sorted!) list of all known __noreturn functions in the kernel.
5  * It's needed for objtool to properly reverse-engineer the control flow graph.
6  *
7  * Yes, this is unfortunate.  A better solution is in the works.
8  */
9 NORETURN(__kunit_abort)
10 NORETURN(__module_put_and_kthread_exit)
11 NORETURN(__reiserfs_panic)
12 NORETURN(__stack_chk_fail)
13 NORETURN(__tdx_hypercall_failed)
14 NORETURN(__ubsan_handle_builtin_unreachable)
15 NORETURN(arch_call_rest_init)
16 NORETURN(arch_cpu_idle_dead)
17 NORETURN(bch2_trans_in_restart_error)
18 NORETURN(bch2_trans_restart_error)
19 NORETURN(cpu_bringup_and_idle)
20 NORETURN(cpu_startup_entry)
21 NORETURN(do_exit)
22 NORETURN(do_group_exit)
23 NORETURN(do_task_dead)
24 NORETURN(ex_handler_msr_mce)
25 NORETURN(fortify_panic)
26 NORETURN(hlt_play_dead)
27 NORETURN(hv_ghcb_terminate)
28 NORETURN(kthread_complete_and_exit)
29 NORETURN(kthread_exit)
30 NORETURN(kunit_try_catch_throw)
31 NORETURN(machine_real_restart)
32 NORETURN(make_task_dead)
33 NORETURN(mpt_halt_firmware)
34 NORETURN(nmi_panic_self_stop)
35 NORETURN(panic)
36 NORETURN(panic_smp_self_stop)
37 NORETURN(rest_init)
38 NORETURN(rewind_stack_and_make_dead)
39 NORETURN(sev_es_terminate)
40 NORETURN(snp_abort)
41 NORETURN(start_kernel)
42 NORETURN(stop_this_cpu)
43 NORETURN(usercopy_abort)
44 NORETURN(x86_64_start_kernel)
45 NORETURN(x86_64_start_reservations)
46 NORETURN(xen_cpu_bringup_again)
47 NORETURN(xen_start_kernel)
48