Re: [PATCH] net: hix5hd2_gmac: avoid integer overload warning

2015-10-18 Thread David Miller
From: Arnd Bergmann Date: Fri, 16 Oct 2015 12:00:51 +0200 > BITS_RX_EN is an 'unsigned long' constant, so the ones complement of that > has bits set that do not fit into a 32-bit variable on 64-bit architectures, > which causes a harmless gcc warning: > >

Re: [PATCH] net: hix5hd2_gmac: avoid integer overload warning

2015-10-16 Thread Joe Perches
On Fri, 2015-10-16 at 13:28 +0200, Arnd Bergmann wrote: > On Friday 16 October 2015 11:14:44 David Laight wrote: > > From: Arnd Bergmann > > > Sent: 16 October 2015 11:01 > > > BITS_RX_EN is an 'unsigned long' constant, so the ones complement of that > > > has bits set that do not fit into a

Re: [PATCH] net: hix5hd2_gmac: avoid integer overload warning

2015-10-16 Thread Arnd Bergmann
On Friday 16 October 2015 14:22:15 Joe Perches wrote: > On Fri, 2015-10-16 at 21:50 +0300, Sergei Shtylyov wrote: > > On 10/16/2015 09:04 PM, Joe Perches wrote: > > > > BITS_RX_EN is an 'unsigned long' constant, so the ones complement of > > that > > has bits set that do not fit

Re: [PATCH] net: hix5hd2_gmac: avoid integer overload warning

2015-10-16 Thread Joe Perches
On Fri, 2015-10-16 at 21:50 +0300, Sergei Shtylyov wrote: > On 10/16/2015 09:04 PM, Joe Perches wrote: > > BITS_RX_EN is an 'unsigned long' constant, so the ones complement of that > has bits set that do not fit into a 32-bit variable on 64-bit > architectures, > which causes

RE: [PATCH] net: hix5hd2_gmac: avoid integer overload warning

2015-10-16 Thread David Laight
From: Arnd Bergmann > Sent: 16 October 2015 11:01 > BITS_RX_EN is an 'unsigned long' constant, so the ones complement of that > has bits set that do not fit into a 32-bit variable on 64-bit architectures, > which causes a harmless gcc warning: ... > static void hix5hd2_port_disable(struct

Re: [PATCH] net: hix5hd2_gmac: avoid integer overload warning

2015-10-16 Thread Arnd Bergmann
On Friday 16 October 2015 11:14:44 David Laight wrote: > From: Arnd Bergmann > > Sent: 16 October 2015 11:01 > > BITS_RX_EN is an 'unsigned long' constant, so the ones complement of that > > has bits set that do not fit into a 32-bit variable on 64-bit architectures, > > which causes a harmless