53 lines · c
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 */9NORETURN(__fortify_panic)10NORETURN(__ia32_sys_exit)11NORETURN(__ia32_sys_exit_group)12NORETURN(__kunit_abort)13NORETURN(__module_put_and_kthread_exit)14NORETURN(__reiserfs_panic)15NORETURN(__stack_chk_fail)16NORETURN(__tdx_hypercall_failed)17NORETURN(__ubsan_handle_builtin_unreachable)18NORETURN(__x64_sys_exit)19NORETURN(__x64_sys_exit_group)20NORETURN(arch_cpu_idle_dead)21NORETURN(bch2_trans_in_restart_error)22NORETURN(bch2_trans_restart_error)23NORETURN(cpu_bringup_and_idle)24NORETURN(cpu_startup_entry)25NORETURN(do_exit)26NORETURN(do_group_exit)27NORETURN(do_task_dead)28NORETURN(ex_handler_msr_mce)29NORETURN(hlt_play_dead)30NORETURN(hv_ghcb_terminate)31NORETURN(kthread_complete_and_exit)32NORETURN(kthread_exit)33NORETURN(kunit_try_catch_throw)34NORETURN(machine_real_restart)35NORETURN(make_task_dead)36NORETURN(mpt_halt_firmware)37NORETURN(nmi_panic_self_stop)38NORETURN(panic)39NORETURN(panic_smp_self_stop)40NORETURN(rest_init)41NORETURN(rewind_stack_and_make_dead)42NORETURN(rust_begin_unwind)43NORETURN(rust_helper_BUG)44NORETURN(sev_es_terminate)45NORETURN(snp_abort)46NORETURN(start_kernel)47NORETURN(stop_this_cpu)48NORETURN(usercopy_abort)49NORETURN(x86_64_start_kernel)50NORETURN(x86_64_start_reservations)51NORETURN(xen_cpu_bringup_again)52NORETURN(xen_start_kernel)53