All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] generic/blocklist: Fix flag name
@ 2019-07-05 11:45 David Michael
  2019-07-05 22:03 ` Daniel Kiper
  0 siblings, 1 reply; 3+ messages in thread
From: David Michael @ 2019-07-05 11:45 UTC (permalink / raw)
  To: grub-devel

Signed-off-by: David Michael <fedora.dm0@gmail.com>
---

Hi,

I tried to test the new release and hit this build failure:

In file included from ../grub-core/osdep/blocklist.c:6:0:
../grub-core/osdep/generic/blocklist.c: In function ‘grub_install_get_blocklist’:
../grub-core/osdep/generic/blocklist.c:62:67: error: ‘FILE_TYPE_NO_DECOMPRESS’ undeclared (first use in this function); did you mean ‘GRUB_FILE_TYPE_NO_DECOMPRESS’?
       file = grub_file_open (core_path_dev, GRUB_FILE_TYPE_NONE | FILE_TYPE_NO_DECOMPRESS);
                                                                   ^~~~~~~~~~~~~~~~~~~~~~~
                                                                   GRUB_FILE_TYPE_NO_DECOMPRESS
../grub-core/osdep/generic/blocklist.c:62:67: note: each undeclared identifier is reported only once for each function it appears in

It seems to be fixed by this change.  Can it be applied for the next release?

Thanks.

David

 grub-core/osdep/generic/blocklist.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/grub-core/osdep/generic/blocklist.c b/grub-core/osdep/generic/blocklist.c
index ea2a511b6..2d9040302 100644
--- a/grub-core/osdep/generic/blocklist.c
+++ b/grub-core/osdep/generic/blocklist.c
@@ -59,7 +59,7 @@ grub_install_get_blocklist (grub_device_t root_dev,
 
       grub_disk_cache_invalidate_all ();
 
-      file = grub_file_open (core_path_dev, GRUB_FILE_TYPE_NONE | FILE_TYPE_NO_DECOMPRESS);
+      file = grub_file_open (core_path_dev, GRUB_FILE_TYPE_NONE | GRUB_FILE_TYPE_NO_DECOMPRESS);
       if (file)
 	{
 	  if (grub_file_size (file) != core_size)
@@ -116,7 +116,7 @@ grub_install_get_blocklist (grub_device_t root_dev,
 
   grub_file_t file;
   /* Now read the core image to determine where the sectors are.  */
-  file = grub_file_open (core_path_dev, GRUB_FILE_TYPE_NONE | FILE_TYPE_NO_DECOMPRESS);
+  file = grub_file_open (core_path_dev, GRUB_FILE_TYPE_NONE | GRUB_FILE_TYPE_NO_DECOMPRESS);
   if (! file)
     grub_util_error ("%s", grub_errmsg);
 
-- 
2.20.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] generic/blocklist: Fix flag name
  2019-07-05 11:45 [PATCH] generic/blocklist: Fix flag name David Michael
@ 2019-07-05 22:03 ` Daniel Kiper
  2019-07-05 22:25   ` David Michael
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Kiper @ 2019-07-05 22:03 UTC (permalink / raw)
  To: David Michael; +Cc: grub-devel

On Fri, Jul 05, 2019 at 07:45:59AM -0400, David Michael wrote:
> Signed-off-by: David Michael <fedora.dm0@gmail.com>
> ---
>
> Hi,
>
> I tried to test the new release and hit this build failure:
>
> In file included from ../grub-core/osdep/blocklist.c:6:0:
> ../grub-core/osdep/generic/blocklist.c: In function ‘grub_install_get_blocklist’:
> ../grub-core/osdep/generic/blocklist.c:62:67: error: ‘FILE_TYPE_NO_DECOMPRESS’ undeclared (first use in this function); did you mean ‘GRUB_FILE_TYPE_NO_DECOMPRESS’?
>        file = grub_file_open (core_path_dev, GRUB_FILE_TYPE_NONE | FILE_TYPE_NO_DECOMPRESS);
>                                                                    ^~~~~~~~~~~~~~~~~~~~~~~
>                                                                    GRUB_FILE_TYPE_NO_DECOMPRESS
> ../grub-core/osdep/generic/blocklist.c:62:67: note: each undeclared identifier is reported only once for each function it appears in
>
> It seems to be fixed by this change.  Can it be applied for the next release?

Hmmm... How come? Several people at least build tested GRUB before
release and this did not surface. Could you tell us which options you
use with configure script? Anyway, patch LGTM but I want to know why the
breakage did not appeared earlier.

Daniel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] generic/blocklist: Fix flag name
  2019-07-05 22:03 ` Daniel Kiper
@ 2019-07-05 22:25   ` David Michael
  0 siblings, 0 replies; 3+ messages in thread
From: David Michael @ 2019-07-05 22:25 UTC (permalink / raw)
  To: Daniel Kiper; +Cc: The development of GNU GRUB

On Fri, Jul 5, 2019 at 6:03 PM Daniel Kiper <dkiper@net-space.pl> wrote:
>
> On Fri, Jul 05, 2019 at 07:45:59AM -0400, David Michael wrote:
> > Signed-off-by: David Michael <fedora.dm0@gmail.com>
> > ---
> >
> > Hi,
> >
> > I tried to test the new release and hit this build failure:
> >
> > In file included from ../grub-core/osdep/blocklist.c:6:0:
> > ../grub-core/osdep/generic/blocklist.c: In function ‘grub_install_get_blocklist’:
> > ../grub-core/osdep/generic/blocklist.c:62:67: error: ‘FILE_TYPE_NO_DECOMPRESS’ undeclared (first use in this function); did you mean ‘GRUB_FILE_TYPE_NO_DECOMPRESS’?
> >        file = grub_file_open (core_path_dev, GRUB_FILE_TYPE_NONE | FILE_TYPE_NO_DECOMPRESS);
> >                                                                    ^~~~~~~~~~~~~~~~~~~~~~~
> >                                                                    GRUB_FILE_TYPE_NO_DECOMPRESS
> > ../grub-core/osdep/generic/blocklist.c:62:67: note: each undeclared identifier is reported only once for each function it appears in
> >
> > It seems to be fixed by this change.  Can it be applied for the next release?
>
> Hmmm... How come? Several people at least build tested GRUB before
> release and this did not surface. Could you tell us which options you
> use with configure script? Anyway, patch LGTM but I want to know why the
> breakage did not appeared earlier.

It looks like it's because I built it for Hurd, and the error is only
present in the non-Linux/Windows version of that file.  The top-level
osdep/blocklist.c file is just the following:

#ifdef __linux__
#include "linux/blocklist.c"
#elif defined (__MINGW32__) || defined (__CYGWIN__)
#include "windows/blocklist.c"
#else
#include "generic/blocklist.c"
#endif

So I think the release is okay for the common platforms.

Thanks.

David


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-05 22:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-05 11:45 [PATCH] generic/blocklist: Fix flag name David Michael
2019-07-05 22:03 ` Daniel Kiper
2019-07-05 22:25   ` David Michael

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.