mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Vojtech Pavlik <vojtech@suse.cz>
Cc: pluto@pld-linux.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] [prefetch.h] warning: pointer of type `void *' used in arithmetic'
Date: Sat, 3 Jul 2004 23:51:50 -0700	[thread overview]
Message-ID: <20040703235150.4b569f34.akpm@osdl.org> (raw)
In-Reply-To: <20040704064920.GA1194@ucw.cz>

Vojtech Pavlik <vojtech@suse.cz> wrote:
>
> 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 ...
> 

This discussion fell off the mailing list (grr).

The warning was encountered when building the nvidia driver, and it indeed
uses -Wpointer-arith.

      reply	other threads:[~2004-07-04  6:53 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
2004-07-04  6:51     ` Andrew Morton [this message]

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=20040703235150.4b569f34.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pluto@pld-linux.org \
    --cc=vojtech@suse.cz \
    /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®