xen/efi: Drop infinite loops and use unreachable()/noreturn
PATCH 1/1 xen/efi: Drop infinite loops and use unreachable()/noreturn
No functional change.
---
CC: Jan Beulich <[email protected]>
CC: Wei Liu <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Julien Grall <[email protected]>
CC: Volodymyr Babchuk <[email protected]>
--- xen/arch/arm/efi/efi-boot.h | 2 +- xen/arch/x86/efi/efi-boot.h | 2 +- xen/common/efi/boot.c | 1 - 3 files changed, 2 insertions(+), 3 deletions(-)
xen/arch/arm/efi/efi-boot.h +1 -1
@@ -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 noreturnefi_arch_post_exit_boot (void ) {efi_xen_start (fdt,fdt_totalsize (fdt)); }
xen/arch/x86/efi/efi-boot.h +1 -1
@@ -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)
xen/common/efi/boot.c +0 -1
@@ -1402,7 +1402,6 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)efi_exit_boot (ImageHandle, SystemTable);efi_arch_post_exit_boot (); -for ( ; ; );/* not reached */ }#ifndef CONFIG_ARM /* TODO - runtime service support */
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 3 lines · Andrew Cooper
No functional change.
Signed-off-by Andrew Cooper <[email protected]>
Preferably with one additional adjustment below.
xen/common/efi/boot.c efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) · line 1403
Quoted 9 lines
static void
__initefi_arch_cfg_file_early(EFI_FILE_HANDLE dir_handle, char *section)xen/common/efi/boot.c +0
-0@@ -1402,7 +1402,6 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)efi_exit_boot (ImageHandle, SystemTable);
efi_arch_post_exit_boot(); /* never returns */
Wei.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Jan Beulich
Acked-byQuoted 6 lines · Wei Liu
Quoted 3 lines · Andrew Cooper
No functional change.
Signed-off-by Andrew Cooper <[email protected]>Reviewed-by Wei Liu <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Hi Andrew,
Quoted 3 lines · Andrew Cooper
No functional change.
Signed-off-by Andrew Cooper <[email protected]>
Cheers,
Signature · 6 lines
Julien Grall _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel