From: Lee Jones <lee.jones@linaro.org>
To: Daniel Kiper <dkiper@net-space.pl>
Cc: Fu Wei Fu <fu.wei@linaro.org>,
Leif Lindholm <leif.lindholm@linaro.org>,
The development of GNU GRUB <grub-devel@gnu.org>,
Julien Grall <julien.grall@arm.com>
Subject: arm64/xen: Fix too few arguments to function ‘grub_file_open’
Date: Tue, 20 Nov 2018 10:48:40 +0000 [thread overview]
Message-ID: <20181120104840.GO3513@dell> (raw)
In-Reply-To: <20181116140737.wuox7v63y6lt2ymt@tomti.i.net-space.pl>
From: Lee Jones <lee.jones@linaro.org>
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 <lee.jones@linaro.org>
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;
next prev parent reply other threads:[~2018-11-20 13:36 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-14 19:29 [PATCH 0/5] Fix non-x86 builds after verifiers framework merged Leif Lindholm
2018-11-14 19:29 ` [PATCH 1/5] grub/verify.h: add include guard Leif Lindholm
2018-11-14 19:29 ` [PATCH 2/5] file.h: add device tree file type Leif Lindholm
2018-11-14 19:29 ` [PATCH 3/5] loader/efi/fdt.c: fixup grub_file_open call Leif Lindholm
2018-11-14 19:29 ` [PATCH 4/5] arm64/efi: fix breakage caused by verifiers Leif Lindholm
2018-11-14 19:29 ` [PATCH 5/5] arm-uboot, ia64, sparc64: fix up grub_file_open calls Leif Lindholm
2018-11-16 2:31 ` [PATCH 0/5] Fix non-x86 builds after verifiers framework merged Fu Wei Fu
2018-11-16 14:07 ` Daniel Kiper
2018-11-20 10:45 ` arm64/xen: Fix too few arguments to function ‘grub_create_loader_cmdline’ Lee Jones
2018-11-20 11:12 ` Julien Grall
2018-11-21 14:12 ` Daniel Kiper
2018-11-22 7:26 ` Lee Jones
2018-11-20 10:46 ` arm64/xen: Fix implicit declaration of function ‘grub_file_filter_disable_compression Lee Jones
2018-11-20 11:00 ` Julien Grall
2018-11-20 11:22 ` Lee Jones
2018-11-20 11:56 ` Julien Grall
2018-11-20 12:26 ` Lee Jones
2018-11-20 11:38 ` [PATCH v2] " Lee Jones
2018-11-20 12:35 ` [PATCH v3 (part 1)] arm64/xen: Fix implicit declaration of function ‘grub_file_filter_disable_compression' Lee Jones
2018-11-21 14:59 ` Daniel Kiper
2018-11-20 12:37 ` [PATCH v3 (part 2)] generic/blocklist: " Lee Jones
2018-11-20 18:55 ` Vladimir 'phcoder' Serbinenko
2018-11-21 14:14 ` Daniel Kiper
2018-11-20 10:48 ` Lee Jones [this message]
2018-11-20 11:05 ` arm64/xen: Fix too few arguments to function ‘grub_file_open’ Julien Grall
2018-11-20 11:20 ` Lee Jones
2018-11-20 11:39 ` [PATCH v2] " Lee Jones
2018-11-21 14:57 ` Daniel Kiper
2018-11-20 11:37 ` arm64/xen: Remove duplicate check for arguments Lee Jones
2018-11-20 18:54 ` Vladimir 'phcoder' Serbinenko
2018-11-16 14:05 ` [PATCH 0/5] Fix non-x86 builds after verifiers framework merged Daniel Kiper
2018-11-16 15:20 ` Leif Lindholm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181120104840.GO3513@dell \
--to=lee.jones@linaro.org \
--cc=dkiper@net-space.pl \
--cc=fu.wei@linaro.org \
--cc=grub-devel@gnu.org \
--cc=julien.grall@arm.com \
--cc=leif.lindholm@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.