Re: [PATCH, RFT] byteswap: try to avoid __builtin_constant_p gcc bug

2016-04-28 Thread Quinn Tran
t...@infradead.org>, David Rientjes <rient...@google.com>, Andrew Morton <a...@linux-foundation.org>, Ingo Molnar <mi...@kernel.org>, Himanshu Madhani <himanshu.madh...@qlogic.com>, Dept-Eng QLA2xxx Upstream <qla2xxx-upstr...@qlogic.com>, Jan Hubicka <hubi...@ucw.c

Re: [PATCH, RFT] byteswap: try to avoid __builtin_constant_p gcc bug

2016-04-28 Thread Quinn Tran
s , Andrew Morton , Ingo Molnar , Himanshu Madhani , Dept-Eng QLA2xxx Upstream , Jan Hubicka Subject: Re: [PATCH, RFT] byteswap: try to avoid __builtin_constant_p gcc bug >On Thu, Apr 28, 2016 at 12:00:36AM +0200, Arnd Bergmann wrote: >> This is another attempt to avoid a regression in ww

Re: [PATCH, RFT] byteswap: try to avoid __builtin_constant_p gcc bug

2016-04-27 Thread Josh Poimboeuf
On Thu, Apr 28, 2016 at 12:00:36AM +0200, Arnd Bergmann wrote: > This is another attempt to avoid a regression in wwn_to_u64() > after that started using get_unaligned_be64(), which in turn > ran into a bug on gcc-4.9 through 6.1. > > As part of the problem is how __builtin_constant_p gets

Re: [PATCH, RFT] byteswap: try to avoid __builtin_constant_p gcc bug

2016-04-27 Thread Josh Poimboeuf
On Thu, Apr 28, 2016 at 12:00:36AM +0200, Arnd Bergmann wrote: > This is another attempt to avoid a regression in wwn_to_u64() > after that started using get_unaligned_be64(), which in turn > ran into a bug on gcc-4.9 through 6.1. > > As part of the problem is how __builtin_constant_p gets

[PATCH, RFT] byteswap: try to avoid __builtin_constant_p gcc bug

2016-04-27 Thread Arnd Bergmann
This is another attempt to avoid a regression in wwn_to_u64() after that started using get_unaligned_be64(), which in turn ran into a bug on gcc-4.9 through 6.1. As part of the problem is how __builtin_constant_p gets evaluated on an argument passed by reference into an inline function, this

[PATCH, RFT] byteswap: try to avoid __builtin_constant_p gcc bug

2016-04-27 Thread Arnd Bergmann
This is another attempt to avoid a regression in wwn_to_u64() after that started using get_unaligned_be64(), which in turn ran into a bug on gcc-4.9 through 6.1. As part of the problem is how __builtin_constant_p gets evaluated on an argument passed by reference into an inline function, this