All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Chang <mchang@suse.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Cc: Neil MacLeod <neil@nmacleod.com>
Subject: Re: gcc9.1 and f2fs
Date: Fri, 17 May 2019 15:13:20 +0800	[thread overview]
Message-ID: <20190517071320.GC31228@mazu> (raw)
In-Reply-To: <cb630a6f-4fcf-435e-c277-dae749661ba1@physik.fu-berlin.de>

Hello John,

Except for lacking commit message and SOB, the fix is LGTM. 

You could add my Reviewed-by: Michael Chang <mchang@suse.com> if you
resend the patch to mailing list with those missing message fixed.

Thanks,
Michael

On Mon, May 06, 2019 at 07:59:42PM +0200, John Paul Adrian Glaubitz wrote:
> On 5/6/19 7:15 PM, Neil MacLeod wrote:
> > Does anyone have a patch?
> 
> Try the attached patch.
> 
> Adrian
> 
> -- 
>  .''`.  John Paul Adrian Glaubitz
> : :' :  Debian Developer - glaubitz@debian.org
> `. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
>   `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

> >From b0d03dd5605220d0d23d72e662f10ce7b02a54a6 Mon Sep 17 00:00:00 2001
> From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
> Date: Mon, 6 May 2019 19:55:01 +0200
> Subject: [PATCH] f2fs: Disable gcc9 -Waddress-of-packed-member
> 
> ---
>  grub-core/fs/f2fs.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/grub-core/fs/f2fs.c b/grub-core/fs/f2fs.c
> index 1cad2615f..0dd09bc23 100644
> --- a/grub-core/fs/f2fs.c
> +++ b/grub-core/fs/f2fs.c
> @@ -1235,6 +1235,12 @@ grub_f2fs_utf16_to_utf8 (grub_uint16_t *in_buf_le)
>    return out_buf;
>  }
>  
> + 
> +#if __GNUC__ >= 9
> +#pragma GCC diagnostic push
> +#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
> +#endif
> +
>  static grub_err_t
>  grub_f2fs_label (grub_device_t device, char **label)
>  {
> @@ -1255,6 +1261,10 @@ grub_f2fs_label (grub_device_t device, char **label)
>    return grub_errno;
>  }
>  
> +#if __GNUC__ >= 9
> +#pragma GCC diagnostic pop
> +#endif
> +
>  static grub_err_t
>  grub_f2fs_uuid (grub_device_t device, char **uuid)
>  {
> -- 
> 2.20.1
> 

> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel



  parent reply	other threads:[~2019-05-17  7:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-06 17:15 gcc9.1 and f2fs Neil MacLeod
2019-05-06 17:31 ` Bruce Dubbs
2019-05-06 17:36   ` Neil MacLeod
2019-05-06 17:59 ` John Paul Adrian Glaubitz
2019-05-06 18:19   ` Neil MacLeod
2019-05-06 19:58     ` Neil MacLeod
2019-05-08  0:51       ` Neil MacLeod
2019-05-08  1:09         ` Neil MacLeod
2019-05-10 10:56           ` Daniel Kiper
2019-05-17  7:31         ` Michael Chang
2019-05-17  7:13   ` Michael Chang [this message]
2019-05-17  9:03     ` John Paul Adrian Glaubitz
2019-05-17 17:12     ` Bruce Dubbs
2019-05-20 11:55       ` Daniel Kiper

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=20190517071320.GC31228@mazu \
    --to=mchang@suse.com \
    --cc=grub-devel@gnu.org \
    --cc=neil@nmacleod.com \
    /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.