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:
Andrew Cooper committed 2020-01-03 18:37:24 +00:00
1 parent f4cf2529fd
commit e38e4dd152
3 files changed
+3 -4

No files matched your search

+1 -1
View File
@@ -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));
}
+1 -1
View File
@@ -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)
+1 -2
View File
@@ -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 */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.