[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1448448411.3154.32.camel@intel.com>
Date: Wed, 25 Nov 2015 02:46:51 -0800
From: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
To: Joe Perches <joe@...ches.com>, davem@...emloft.net
Cc: Helin Zhang <helin.zhang@...el.com>, netdev@...r.kernel.org,
nhorman@...hat.com, sassmann@...hat.com, jogreene@...hat.com
Subject: Re: [net-next 06/16] i40e: Properly cast type for arithmetic
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 <helin.zhang@...el.com>
> >
> > 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 compiler emits an error?
When you use the gcc -Wpointer-arith, it generates the warning.
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists