lkml.org 
[lkml]   [2004]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] [prefetch.h] warning: pointer of type `void *' used in arithmetic'
On Sat, Jul 03, 2004 at 05:18:11PM -0700, Andrew Morton wrote:
> Pawe__ Sikora <pluto@pld-linux.org> wrote:
> >
> > warning killed.
>
> > --- /var/tmp/linux/include/linux/prefetch.h.orig 2004-06-16 07:20:25.000000000 +0200
> > +++ /var/tmp/linux/include/linux/prefetch.h 2004-07-03 18:28:10.478861720 +0200
> > @@ -59,7 +59,7 @@
> > {
> > #ifdef ARCH_HAS_PREFETCH
> > char *cp;
> > - char *end = addr + len;
> > + char *end = (char *)addr + len;
>
> What version of the compiler is generating this warning?

As far as I know, any gcc if and only if you pass "-Wpointer-arith" to
it. The kernel doesn't do that, leaving me wondering ...

--
Vojtech Pavlik
SuSE Labs, SuSE CR
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.028 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site