xen/efi: Drop image_name from efi_arch_handle_cmdline()
PATCH 1/1 xen/efi: Drop image_name from efi_arch_handle_cmdline()
With all architectures no longer wanting an image name in the command line handling, drop the parameter and forgo making one up.
---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Julien Grall <[email protected]>
CC: Volodymyr Babchuk <[email protected]>
CC: Bertrand Marquis <[email protected]>
CC: Michal Orzel <[email protected]>
--- xen/arch/arm/efi/efi-boot.h | 3 +-- xen/arch/x86/efi/efi-boot.h | 3 +-- xen/common/efi/boot.c | 15 +-------------- 3 files changed, 3 insertions(+), 18 deletions(-)
xen/arch/arm/efi/efi-boot.h +1 -2
@@ -454,8 +454,7 @@ static void __init efi_arch_memory_setup(void) { } -static void __init efi_arch_handle_cmdline (CHAR16 *image_name, -CHAR16 *cmdline_options, +static void __init efi_arch_handle_cmdline (CHAR16 *cmdline_options,const char *cfgfile_options) {union string name;
xen/arch/x86/efi/efi-boot.h +1 -2
@@ -303,8 +303,7 @@ static void __init efi_arch_cfg_file_late(const EFI_LOADED_IMAGE *image, } } -static void __init efi_arch_handle_cmdline (CHAR16 *image_name, -CHAR16 *cmdline_options, +static void __init efi_arch_handle_cmdline (CHAR16 *cmdline_options,const char *cfgfile_options) {union string name;
xen/common/efi/boot.c +1 -14
@@ -1462,21 +1462,8 @@ void EFIAPI __init noreturn efi_start(EFI_HANDLE ImageHandle, } } -/* -* EFI_LOAD_OPTION does not supply an image name as first component: -* Make one up. -*/ -if ( argc && !*argv ) - { -EFI_FILE_HANDLE handle =get_parent_handle (loaded_image, - &file_name); - - handle->Close (handle); - *argv = file_name; - } - name.s =get_value (&cfg, section.s,"options" ); -efi_arch_handle_cmdline (argc ? *argv :NULL , options, name.s); +efi_arch_handle_cmdline (options, name.s);if ( !base_video ) {
base-commit: f96e2f64576cdbb147391c7cb399d393385719a9
Signature · 1 line
2.30.2
Quoted 4 lines · Andrew Cooper
With all architectures no longer wanting an image name in the command line handling, drop the parameter and forgo making one up.
Signed-off-by Andrew Cooper <[email protected]>
Quoted 6 lines · Jan Beulich
Quoted 4 lines · Andrew Cooper
With all architectures no longer wanting an image name in the command line handling, drop the parameter and forgo making one up.
Signed-off-by Andrew Cooper <[email protected]>Reviewed-by Jan Beulich <[email protected]>
Thanks.
I'm quite surprised at how much cleanup this particular investigation has yielded.
Definitely preferable to the first plan of using the const alias.
~Andrew
Hi Andrew,
Quoted 4 lines · Andrew Cooper
With all architectures no longer wanting an image name in the command line handling, drop the parameter and forgo making one up.
Signed-off-by Andrew Cooper <[email protected]>
I am not sure if you need one Ack for the change in arm/efi/efi-boot.h. If you do:
Cheers,
Signature · 1 line
Julien Grall
Quoted 8 lines · Andrew Cooper
With all architectures no longer wanting an image name in the command line handling, drop the parameter and forgo making one up.
Signed-off-by Andrew Cooper <[email protected]>
Quoted 11 lines
---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Julien Grall <[email protected]>
CC: Volodymyr Babchuk <[email protected]>
CC: Bertrand Marquis <[email protected]>
CC: Michal Orzel <[email protected]>
---xen/arch/arm/efi/efi-boot.h| 3 +--
Tested on ARM board