Re: [net-next 06/16] i40e: Properly cast type for arithmetic

2015-11-25 Thread Rustad, Mark D
Joe Perches wrote: > On Wed, 2015-11-25 at 02:46 -0800, Jeff Kirsher wrote: >> On Tue, 2015-11-24 at 16:43 -0800, Joe Perches wrote: >>> On Tue, 2015-11-24 at 16:04 -0800, Jeff Kirsher wrote: From: Helin Zhang Pointer of type void * shouldn't be used in arithmetic, which may

Re: [net-next 06/16] i40e: Properly cast type for arithmetic

2015-11-25 Thread Joe Perches
On Wed, 2015-11-25 at 02:46 -0800, Jeff Kirsher wrote: > On Tue, 2015-11-24 at 16:43 -0800, Joe Perches wrote: > > On Tue, 2015-11-24 at 16:04 -0800, Jeff Kirsher wrote: > > > From: Helin Zhang > > > > > > Pointer of type void * shouldn't be used in arithmetic, which may > > > result in compilati

RE: [net-next 06/16] i40e: Properly cast type for arithmetic

2015-11-25 Thread David Laight
From: Jeff Kirsher > Sent: 25 November 2015 10:47 > On Tue, 2015-11-24 at 16:43 -0800, Joe Perches wrote: > > On Tue, 2015-11-24 at 16:04 -0800, Jeff Kirsher wrote: > > > From: Helin Zhang > > > > > > Pointer of type void * shouldn't be used in arithmetic, which may > > > result in compilation err

Re: [net-next 06/16] i40e: Properly cast type for arithmetic

2015-11-25 Thread Jeff Kirsher
On Tue, 2015-11-24 at 16:43 -0800, Joe Perches wrote: > On Tue, 2015-11-24 at 16:04 -0800, Jeff Kirsher wrote: > > From: Helin Zhang > > > > Pointer of type void * shouldn't be used in arithmetic, which may > > result in compilation error. Casting of (u8 *) can be added to fix > > that. > > > >

Re: [net-next 06/16] i40e: Properly cast type for arithmetic

2015-11-24 Thread David Miller
From: Joe Perches Date: Tue, 24 Nov 2015 16:43:32 -0800 > On Tue, 2015-11-24 at 16:04 -0800, Jeff Kirsher wrote: >> From: Helin Zhang >> >> Pointer of type void * shouldn't be used in arithmetic, which may >> result in compilation error. Casting of (u8 *) can be added to fix >> that. >> > > v

Re: [net-next 06/16] i40e: Properly cast type for arithmetic

2015-11-24 Thread Joe Perches
On Tue, 2015-11-24 at 16:04 -0800, Jeff Kirsher wrote: > From: Helin Zhang > > Pointer of type void * shouldn't be used in arithmetic, which may > result in compilation error. Casting of (u8 *) can be added to fix > that. > void * arithmetic is used quite frequently in the kernel. What compile

[net-next 06/16] i40e: Properly cast type for arithmetic

2015-11-24 Thread Jeff Kirsher
From: Helin Zhang Pointer of type void * shouldn't be used in arithmetic, which may result in compilation error. Casting of (u8 *) can be added to fix that. Change-ID: I273aa57cdef7cacac5c552c348d585cd09d7e06b Signed-off-by: Helin Zhang Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher ---