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 <helin.zh...@intel.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.

Don't do that then :-)
Rightfully or not the Linux kernel requires 'void *' arithmetic.

        David

N�����r��y����b�X��ǧv�^�)޺{.n�+���z�^�)����w*jg��������ݢj/���z�ޖ��2�ޙ����&�)ߡ�a�����G���h��j:+v���w��٥

Reply via email to