mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen/efi: Drop infinite loops and use unreachable()/noreturn
No functional change. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Wei Liu <wl@xen.org> Acked-by: Jan Beulich <jbeulich@suse.com> Acked-by: Julien Grall <julien@xen.org>
This commit is contained in:
1 parent
f4cf2529fd
commit
e38e4dd152
3 files changed
+3
-4
No files matched your search
@@ -367,7 +367,7 @@ static void __init efi_arch_pre_exit_boot(void)
|
||||
{
|
||||
}
|
||||
|
||||
static void __init efi_arch_post_exit_boot(void)
|
||||
static void __init noreturn efi_arch_post_exit_boot(void)
|
||||
{
|
||||
efi_xen_start(fdt, fdt_totalsize(fdt));
|
||||
}
|
||||
|
||||
@@ -268,7 +268,7 @@ static void __init noreturn efi_arch_post_exit_boot(void)
|
||||
[stkoff] "i" (STACK_SIZE - sizeof(struct cpu_info)),
|
||||
"D" (&mbi)
|
||||
: "memory" );
|
||||
for( ; ; ); /* not reached */
|
||||
unreachable();
|
||||
}
|
||||
|
||||
static void __init efi_arch_cfg_file_early(EFI_FILE_HANDLE dir_handle, char *section)
|
||||
|
||||
@@ -1401,8 +1401,7 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
|
||||
|
||||
efi_exit_boot(ImageHandle, SystemTable);
|
||||
|
||||
efi_arch_post_exit_boot();
|
||||
for( ; ; ); /* not reached */
|
||||
efi_arch_post_exit_boot(); /* Doesn't return. */
|
||||
}
|
||||
|
||||
#ifndef CONFIG_ARM /* TODO - runtime service support */
|
||||
|
||||