Re: [PATCH] powerpc: fix the allyesconfig build

2020-11-30 Thread Stephen Rothwell
Hi Geert, On Mon, 30 Nov 2020 09:58:23 +0100 Geert Uytterhoeven wrote: > > Thanks for your patch! No worries, it has been a small irritant to me for quite a while. > I prefer to fix this in the driver instead. The space saving by packing the > structure is minimal. > I've sent a patch > https

Re: [PATCH] powerpc: fix the allyesconfig build

2020-11-30 Thread Geert Uytterhoeven
Hi Stephen, On Sat, Nov 28, 2020 at 2:28 AM Stephen Rothwell wrote: > There are 2 drivers that have arrays of packed structures that contain > pointers that end up at unaligned offsets. These produce warnings in > the PowerPC allyesconfig build like this: > > WARNING: 148 bad relocations > c

Re: [PATCH] powerpc: fix the allyesconfig build

2020-11-29 Thread Yunsheng Lin
On 2020/11/29 3:36, Jakub Kicinski wrote: > On Sat, 28 Nov 2020 16:20:54 +1100 Stephen Rothwell wrote: >> On Fri, 27 Nov 2020 17:56:42 -0800 Jakub Kicinski wrote: >>> >>> What's the offending structure in hisilicon? I'd rather have a look >>> packing structs with pointers in 'em sounds questionabl

Re: [PATCH] powerpc: fix the allyesconfig build

2020-11-28 Thread Jakub Kicinski
On Sat, 28 Nov 2020 16:20:54 +1100 Stephen Rothwell wrote: > On Fri, 27 Nov 2020 17:56:42 -0800 Jakub Kicinski wrote: > > > > What's the offending structure in hisilicon? I'd rather have a look > > packing structs with pointers in 'em sounds questionable. > > > > I only see these two: > > > > $

Re: [PATCH] powerpc: fix the allyesconfig build

2020-11-28 Thread Stephen Rothwell
Hi Jakub, On Fri, 27 Nov 2020 17:56:42 -0800 Jakub Kicinski wrote: > > What's the offending structure in hisilicon? I'd rather have a look > packing structs with pointers in 'em sounds questionable. > > I only see these two: > > $ git grep packed drivers/net/ethernet/hisilicon/ > drivers/net/et

Re: [PATCH] powerpc: fix the allyesconfig build

2020-11-27 Thread Yunsheng Lin
On 2020/11/28 9:56, Jakub Kicinski wrote: > On Sat, 28 Nov 2020 12:28:19 +1100 Stephen Rothwell wrote: >> There are 2 drivers that have arrays of packed structures that contain >> pointers that end up at unaligned offsets. These produce warnings in >> the PowerPC allyesconfig build like this: >> >

Re: [PATCH] powerpc: fix the allyesconfig build

2020-11-27 Thread Jakub Kicinski
On Sat, 28 Nov 2020 12:28:19 +1100 Stephen Rothwell wrote: > There are 2 drivers that have arrays of packed structures that contain > pointers that end up at unaligned offsets. These produce warnings in > the PowerPC allyesconfig build like this: > > WARNING: 148 bad relocations > ce56510

[PATCH] powerpc: fix the allyesconfig build

2020-11-27 Thread Stephen Rothwell
There are 2 drivers that have arrays of packed structures that contain pointers that end up at unaligned offsets. These produce warnings in the PowerPC allyesconfig build like this: WARNING: 148 bad relocations ce56510b R_PPC64_UADDR64 .rodata+0x01c72378 ce565126 R_PPC64