grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: arm64/xen: Fix too few arguments to function ‘grub_create_loader_cmd


From: Julien Grall
Subject: Re: arm64/xen: Fix too few arguments to function ‘grub_create_loader_cmdline’
Date: Tue, 20 Nov 2018 11:12:32 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1



On 20/11/2018 10:45, Lee Jones wrote:
From: Lee Jones <address@hidden>

arm64/xen: Fix too few arguments to function ‘grub_create_loader_cmdline’
Without this fix, building xen_boot.c omits: loader/arm64/xen_boot.c: In function ‘xen_boot_binary_load’:
loader/arm64/xen_boot.c:370:7: error: too few arguments to function 
‘grub_create_loader_cmdline’
        grub_create_loader_cmdline (argc - 1, argv + 1, binary->cmdline,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from loader/arm64/xen_boot.c:36:0:
../include/grub/lib/cmdline.h:29:12: note: declared here
  grub_err_t grub_create_loader_cmdline (int argc, char *argv[], char *buf,

Signed-off-by: Lee Jones <address@hidden>

Reviewed-by: Julien Grall <address@hidden>

Cheers,


diff --git a/grub-core/loader/arm64/xen_boot.c 
b/grub-core/loader/arm64/xen_boot.c
index 1003a0b99..33a855df4 100644
--- a/grub-core/loader/arm64/xen_boot.c
+++ b/grub-core/loader/arm64/xen_boot.c
@@ -368,7 +368,8 @@ xen_boot_binary_load (struct xen_boot_binary *binary, 
grub_file_t file,
           return;
         }
        grub_create_loader_cmdline (argc - 1, argv + 1, binary->cmdline,
-                                 binary->cmdline_size);
+                                 binary->cmdline_size,
+                                 GRUB_VERIFY_KERNEL_CMDLINE);
        grub_dprintf ("xen_loader",
                     "Xen_boot cmdline @ %p %s, size: %d\n",
                     binary->cmdline, binary->cmdline, binary->cmdline_size);


--
Julien Grall



reply via email to

[Prev in Thread] Current Thread [Next in Thread]