Re: [PATCH] Fix issues with -Waddress-of-packed-member

2019-01-21 Thread Jeff Law
On 1/20/19 10:10 AM, Bernd Edlinger wrote: > On 1/20/19 4:40 PM, H.J. Lu wrote: >> On Sun, Jan 20, 2019 at 5:29 AM Bernd Edlinger >> wrote: >>> Hi, >>> >>> >>> I tried to build linux yesterday, and became aware that there are a few >>> false-positive warnings with -Waddress-of-packed-member: >>> >

Re: [PATCH] Fix issues with -Waddress-of-packed-member

2019-01-21 Thread Jeff Law
On 1/20/19 6:29 AM, Bernd Edlinger wrote: > Hi, > > > I tried to build linux yesterday, and became aware that there are a few > false-positive warnings with -Waddress-of-packed-member: > > struct t { > char a; > int b; > int *c; > int d[10]; > } __attribute__((packed)); > > struct t t0;

Re: [PATCH] Fix issues with -Waddress-of-packed-member

2019-01-20 Thread H.J. Lu
On Sun, Jan 20, 2019 at 9:10 AM Bernd Edlinger wrote: > > On 1/20/19 4:40 PM, H.J. Lu wrote: > > On Sun, Jan 20, 2019 at 5:29 AM Bernd Edlinger > > wrote: > >> > >> Hi, > >> > >> > >> I tried to build linux yesterday, and became aware that there are a few > >> false-positive warnings with -Waddre

Re: [PATCH] Fix issues with -Waddress-of-packed-member

2019-01-20 Thread Bernd Edlinger
On 1/20/19 4:40 PM, H.J. Lu wrote: > On Sun, Jan 20, 2019 at 5:29 AM Bernd Edlinger > wrote: >> >> Hi, >> >> >> I tried to build linux yesterday, and became aware that there are a few >> false-positive warnings with -Waddress-of-packed-member: >> >> struct t { >> char a; >> int b; >> int *c;

Re: [PATCH] Fix issues with -Waddress-of-packed-member

2019-01-20 Thread H.J. Lu
On Sun, Jan 20, 2019 at 5:29 AM Bernd Edlinger wrote: > > Hi, > > > I tried to build linux yesterday, and became aware that there are a few > false-positive warnings with -Waddress-of-packed-member: > > struct t { > char a; > int b; > int *c; > int d[10]; > } __attribute__((packed)); > > s

[PATCH] Fix issues with -Waddress-of-packed-member

2019-01-20 Thread Bernd Edlinger
Hi, I tried to build linux yesterday, and became aware that there are a few false-positive warnings with -Waddress-of-packed-member: struct t { char a; int b; int *c; int d[10]; } __attribute__((packed)); struct t t0; struct t *t1; struct t **t2; t2 = &t1; i1 = t0.c; I fixed them quic