|
|
80913e |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
80913e |
From: Lee Jones <lee.jones@linaro.org>
|
|
|
80913e |
Date: Tue, 20 Nov 2018 10:45:04 +0000
|
|
|
80913e |
Subject: [PATCH] arm64/xen: Fix too few arguments to function
|
|
|
80913e |
grub_create_loader_cmdline()
|
|
|
80913e |
MIME-Version: 1.0
|
|
|
80913e |
Content-Type: text/plain; charset=UTF-8
|
|
|
80913e |
Content-Transfer-Encoding: 8bit
|
|
|
80913e |
|
|
|
80913e |
Without this fix, building xen_boot.c omits:
|
|
|
80913e |
|
|
|
80913e |
loader/arm64/xen_boot.c: In function ‘xen_boot_binary_load’:
|
|
|
80913e |
loader/arm64/xen_boot.c:370:7: error: too few arguments to function ‘grub_create_loader_cmdline’
|
|
|
80913e |
grub_create_loader_cmdline (argc - 1, argv + 1, binary->cmdline,
|
|
|
80913e |
^~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
80913e |
In file included from loader/arm64/xen_boot.c:36:0:
|
|
|
80913e |
../include/grub/lib/cmdline.h:29:12: note: declared here
|
|
|
80913e |
grub_err_t grub_create_loader_cmdline (int argc, char *argv[], char *buf,
|
|
|
80913e |
|
|
|
80913e |
Signed-off-by: Lee Jones <lee.jones@linaro.org>
|
|
|
80913e |
Reviewed-by: Julien Grall <julien.grall@arm.com>
|
|
|
80913e |
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
|
|
|
80913e |
---
|
|
|
80913e |
grub-core/loader/arm64/xen_boot.c | 3 ++-
|
|
|
80913e |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
80913e |
|
|
|
80913e |
diff --git a/grub-core/loader/arm64/xen_boot.c b/grub-core/loader/arm64/xen_boot.c
|
|
|
b32e65 |
index 318c833de..1a337866f 100644
|
|
|
80913e |
--- a/grub-core/loader/arm64/xen_boot.c
|
|
|
80913e |
+++ b/grub-core/loader/arm64/xen_boot.c
|
|
|
80913e |
@@ -367,7 +367,8 @@ xen_boot_binary_load (struct xen_boot_binary *binary, grub_file_t file,
|
|
|
80913e |
return;
|
|
|
80913e |
}
|
|
|
80913e |
grub_create_loader_cmdline (argc - 1, argv + 1, binary->cmdline,
|
|
|
80913e |
- binary->cmdline_size);
|
|
|
80913e |
+ binary->cmdline_size,
|
|
|
80913e |
+ GRUB_VERIFY_KERNEL_CMDLINE);
|
|
|
80913e |
grub_dprintf ("xen_loader",
|
|
|
80913e |
"Xen_boot cmdline @ %p %s, size: %d\n",
|
|
|
80913e |
binary->cmdline, binary->cmdline, binary->cmdline_size);
|