[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
arm64/xen: Fix too few arguments to function ‘grub_file_open’
From: |
Lee Jones |
Subject: |
arm64/xen: Fix too few arguments to function ‘grub_file_open’ |
Date: |
Tue, 20 Nov 2018 10:48:40 +0000 |
User-agent: |
Mutt/1.9.4 (2018-02-28) |
From: Lee Jones <address@hidden>
arm64/xen: Fix too few arguments to function ‘grub_file_open’
Without this fix xen_boot.c omits:
loader/arm64/xen_boot.c: In function ‘grub_cmd_xen_module’:
loader/arm64/xen_boot.c:424:10: error: too few arguments to function
‘grub_file_open’
file = grub_file_open (argv[0]);
^~~~~~~~~~~~~~
In file included from ../include/grub/cache.h:23:0,
from loader/arm64/xen_boot.c:19:
../include/grub/file.h:204:25: note: declared here
grub_file_t EXPORT_FUNC(grub_file_open) (const char *name, enum grub_file_type
type);
^
../include/grub/symbol.h:68:25: note: in definition of macro ‘EXPORT_FUNC’
# define EXPORT_FUNC(x) x
^
loader/arm64/xen_boot.c: In function ‘grub_cmd_xen_hypervisor’:
loader/arm64/xen_boot.c:456:10: error: too few arguments to function
‘grub_file_open’
file = grub_file_open (argv[0]);
^~~~~~~~~~~~~~
Signed-off-by: Lee Jones <address@hidden>
diff --git a/grub-core/loader/arm64/xen_boot.c
b/grub-core/loader/arm64/xen_boot.c
index 5820412e8..1f49e3278 100644
--- a/grub-core/loader/arm64/xen_boot.c
+++ b/grub-core/loader/arm64/xen_boot.c
@@ -421,7 +421,7 @@ grub_cmd_xen_module (grub_command_t cmd
__attribute__((unused)),
grub_dprintf ("xen_loader", "Init module and node info\n");
- file = grub_file_open (argv[0]);
+ file = grub_file_open (argv[0], GRUB_FILE_TYPE_NONE);
if (!file)
goto fail;
@@ -453,7 +453,7 @@ grub_cmd_xen_hypervisor (grub_command_t cmd __attribute__
((unused)),
goto fail;
}
- file = grub_file_open (argv[0]);
+ file = grub_file_open (argv[0], GRUB_FILE_TYPE_NONE);
if (!file)
goto fail;
- [PATCH 0/5] Fix non-x86 builds after verifiers framework merged, Leif Lindholm, 2018/11/14
- [PATCH 2/5] file.h: add device tree file type, Leif Lindholm, 2018/11/14
- [PATCH 1/5] grub/verify.h: add include guard, Leif Lindholm, 2018/11/14
- [PATCH 5/5] arm-uboot, ia64, sparc64: fix up grub_file_open calls, Leif Lindholm, 2018/11/14
- [PATCH 3/5] loader/efi/fdt.c: fixup grub_file_open call, Leif Lindholm, 2018/11/14
- [PATCH 4/5] arm64/efi: fix breakage caused by verifiers, Leif Lindholm, 2018/11/14
- Re: [PATCH 0/5] Fix non-x86 builds after verifiers framework merged, Fu Wei Fu, 2018/11/15
- arm64/xen: Fix too few arguments to function ‘grub_create_loader_cmdline’, Lee Jones, 2018/11/20
- Re: arm64/xen: Fix too few arguments to function ‘grub_create_loader_cmdline’, Julien Grall, 2018/11/20
- Re: arm64/xen: Fix too few arguments to function ‘grub_create_loader_cmdline’, Daniel Kiper, 2018/11/21
- Re: arm64/xen: Fix too few arguments to function ‘grub_create_loader_cmdline’, Lee Jones, 2018/11/22
- arm64/xen: Fix implicit declaration of function ‘grub_file_filter_disable_compression, Lee Jones, 2018/11/20
- Re: arm64/xen: Fix implicit declaration of function ‘grub_file_filter_disable_compression, Julien Grall, 2018/11/20