diff mbox series

[1/2] grub: Enhance Waddress-of-packed-member patch to cover x86_64 testcase

Message ID 20190303003834.44637-1-raj.khem@gmail.com
State New
Headers show
Series [1/2] grub: Enhance Waddress-of-packed-member patch to cover x86_64 testcase | expand

Commit Message

Khem Raj March 3, 2019, 12:38 a.m. UTC
This was not compiled last time when testing aarch64

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 .../files/disable-address-of-packed-member.patch    | 13 +++++++++++++
 1 file changed, 13 insertions(+)

-- 
2.21.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Comments

Armin Kuster March 3, 2019, 1:57 a.m. UTC | #1
On 3/2/19 4:38 PM, Khem Raj wrote:
> This was not compiled last time when testing aarch64


The subject and body have conflicting archs.
is it both?
- armin
>

> Signed-off-by: Khem Raj <raj.khem@gmail.com>

> ---

>  .../files/disable-address-of-packed-member.patch    | 13 +++++++++++++

>  1 file changed, 13 insertions(+)

>

> diff --git a/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch b/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch

> index 4af6a599d5..415f52ebe3 100644

> --- a/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch

> +++ b/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch

> @@ -247,3 +247,16 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>

>   

>   static grub_dl_t my_mod;

>   

> +--- a/grub-core/commands/usbtest.c

> ++++ b/grub-core/commands/usbtest.c

> +@@ -63,6 +63,10 @@ static const char *usb_devspeed[] =

> +     "High"

> +   };

> + 

> ++#if __GNUC__ >= 9

> ++#pragma GCC diagnostic ignored "-Waddress-of-packed-member"

> ++#endif

> ++

> + static grub_usb_err_t

> + grub_usb_get_string (grub_usb_device_t dev, grub_uint8_t index, int langid,

> + 		     char **string)



-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Khem Raj March 3, 2019, 2:36 a.m. UTC | #2
On Sat, Mar 2, 2019 at 5:57 PM akuster808 <akuster808@gmail.com> wrote:

>

>

> On 3/2/19 4:38 PM, Khem Raj wrote:

> > This was not compiled last time when testing aarch64

>

> The subject and body have conflicting archs.

> is it both?




That’s just for history since last time I tested it with
Aarch64/Gcc9 and now I got to test x86_64/gcc9
And saw that the patch was not taking care of additional test cases that
were getting built for x86

>

> - armin

> >

> > Signed-off-by: Khem Raj <raj.khem@gmail.com>

> > ---

> >  .../files/disable-address-of-packed-member.patch    | 13 +++++++++++++

> >  1 file changed, 13 insertions(+)

> >

> > diff --git

> a/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch

> b/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch

> > index 4af6a599d5..415f52ebe3 100644

> > --- a/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch

> > +++ b/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch

> > @@ -247,3 +247,16 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>

> >

> >   static grub_dl_t my_mod;

> >

> > +--- a/grub-core/commands/usbtest.c

> > ++++ b/grub-core/commands/usbtest.c

> > +@@ -63,6 +63,10 @@ static const char *usb_devspeed[] =

> > +     "High"

> > +   };

> > +

> > ++#if __GNUC__ >= 9

> > ++#pragma GCC diagnostic ignored "-Waddress-of-packed-member"

> > ++#endif

> > ++

> > + static grub_usb_err_t

> > + grub_usb_get_string (grub_usb_device_t dev, grub_uint8_t index, int

> langid,

> > +                  char **string)

>

>

>
<div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 2, 2019 at 5:57 PM akuster808 &lt;<a href="mailto:akuster808@gmail.com">akuster808@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On 3/2/19 4:38 PM, Khem Raj wrote:<br>
&gt; This was not compiled last time when testing aarch64<br>
<br>
The subject and body have conflicting archs.<br>
is it both?</blockquote><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">That’s just for history since last time I tested it with </div><div dir="auto">Aarch64/Gcc9 and now I got to test x86_64/gcc9</div><div dir="auto">And saw that the patch was not taking care of additional test cases that were getting built for x86</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
- armin<br>
&gt;<br>
&gt; Signed-off-by: Khem Raj &lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>&gt;<br>
&gt; ---<br>
&gt;  .../files/disable-address-of-packed-member.patch    | 13 +++++++++++++<br>
&gt;  1 file changed, 13 insertions(+)<br>
&gt;<br>
&gt; diff --git a/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch b/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch<br>
&gt; index 4af6a599d5..415f52ebe3 100644<br>
&gt; --- a/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch<br>
&gt; +++ b/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch<br>
&gt; @@ -247,3 +247,16 @@ Signed-off-by: Khem Raj &lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>&gt;<br>
&gt;   <br>
&gt;   static grub_dl_t my_mod;<br>
&gt;   <br>
&gt; +--- a/grub-core/commands/usbtest.c<br>
&gt; ++++ b/grub-core/commands/usbtest.c<br>
&gt; +@@ -63,6 +63,10 @@ static const char *usb_devspeed[] =<br>
&gt; +     &quot;High&quot;<br>
&gt; +   };<br>
&gt; + <br>
&gt; ++#if __GNUC__ &gt;= 9<br>
&gt; ++#pragma GCC diagnostic ignored &quot;-Waddress-of-packed-member&quot;<br>
&gt; ++#endif<br>
&gt; ++<br>
&gt; + static grub_usb_err_t<br>
&gt; + grub_usb_get_string (grub_usb_device_t dev, grub_uint8_t index, int langid,<br>
&gt; +                  char **string)<br>
<br>
<br>
</blockquote></div></div>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Richard Purdie March 3, 2019, 3:43 p.m. UTC | #3
On Sat, 2019-03-02 at 17:57 -0800, akuster808 wrote:
> 

> On 3/2/19 4:38 PM, Khem Raj wrote:

> > This was not compiled last time when testing aarch64

> 

> The subject and body have conflicting archs.

> is it both?



I've tweaked the commit message...

Cheers,

Richard

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch b/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch
index 4af6a599d5..415f52ebe3 100644
--- a/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch
+++ b/meta/recipes-bsp/grub/files/disable-address-of-packed-member.patch
@@ -247,3 +247,16 @@  Signed-off-by: Khem Raj <raj.khem@gmail.com>
  
  static grub_dl_t my_mod;
  
+--- a/grub-core/commands/usbtest.c
++++ b/grub-core/commands/usbtest.c
+@@ -63,6 +63,10 @@ static const char *usb_devspeed[] =
+     "High"
+   };
+ 
++#if __GNUC__ >= 9
++#pragma GCC diagnostic ignored "-Waddress-of-packed-member"
++#endif
++
+ static grub_usb_err_t
+ grub_usb_get_string (grub_usb_device_t dev, grub_uint8_t index, int langid,
+ 		     char **string)