mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: Andrew Morton <akpm@osdl.org>
Cc: Pawe__ Sikora <pluto@pld-linux.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] [prefetch.h] warning: pointer of type `void *' used in arithmetic'
Date: Sun, 4 Jul 2004 08:49:20 +0200	[thread overview]
Message-ID: <20040704064920.GA1194@ucw.cz> (raw)
In-Reply-To: <20040703171811.1f10c5df.akpm@osdl.org>

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

  reply	other threads:[~2004-07-04  6:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-03 16:32 Paweł Sikora
2004-07-04  0:18 ` Andrew Morton
2004-07-04  6:49   ` Vojtech Pavlik [this message]
2004-07-04  6:51     ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040704064920.GA1194@ucw.cz \
    --to=vojtech@suse.cz \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pluto@pld-linux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®