All of lore.kernel.org
 help / color / mirror / Atom feed
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: [PATCH v3 (part 1)] arm64/xen: Fix implicit declaration of function ‘grub_file_filter_disable_compression'
Date: Tue, 20 Nov 2018 12:35:39 +0000	[thread overview]
Message-ID: <20181120123538.GV3513@dell> (raw)
In-Reply-To: <20181120113819.GS3513@dell>

From: Lee Jones <lee.jones@linaro.org>

arm64/xen: Fix implicit declaration of function ‘grub_file_filter_disable_compression'

Without this fix, building xen_boot.c emits:

loader/arm64/xen_boot.c:433:5: error: implicit declaration of function ‘grub_file_filter_disable_compression’; did you mean ‘grub_file_filter_unregister’? [-Werror=implicit-function-declaration]
     grub_file_filter_disable_compression ();
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     grub_file_filter_unregister
loader/arm64/xen_boot.c:433:5: error: nested extern declaration of ‘grub_file_filter_disable_compression’ [-Werror=nested-externs]

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 7d1adce1b..a01792a72 100644
--- a/grub-core/loader/arm64/xen_boot.c
+++ b/grub-core/loader/arm64/xen_boot.c
@@ -429,9 +429,9 @@ grub_cmd_xen_module (grub_command_t cmd __attribute__((unused)),
 
   grub_dprintf ("xen_loader", "Init module and node info\n");
 
-  if (nounzip)
-    grub_file_filter_disable_compression ();
-  file = grub_file_open (argv[0], GRUB_FILE_TYPE_LINUX_KERNEL);
+  file = grub_file_open (argv[0], GRUB_FILE_TYPE_LINUX_KERNEL
+			 | (nounzip ? GRUB_FILE_TYPE_NO_DECOMPRESS
+			    : GRUB_FILE_TYPE_NONE));
   if (!file)
     goto fail;


  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         ` Lee Jones [this message]
2018-11-21 14:59           ` [PATCH v3 (part 1)] arm64/xen: Fix implicit declaration of function ‘grub_file_filter_disable_compression' 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     ` arm64/xen: Fix too few arguments to function ‘grub_file_open’ Lee Jones
2018-11-20 11:05       ` 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=20181120123538.GV3513@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.