From: Eyal Lebedinsky <eyal@eyal.emu.id.au>
To: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linux 2.4.26-rc2
Date: Sun, 11 Apr 2004 16:20:42 +1000 [thread overview]
Message-ID: <4078E3BA.8040707@eyal.emu.id.au> (raw)
In-Reply-To: <20040406004251.GA24918@logos.cnet>
Marcelo Tosatti wrote:
> Hi,
>
> Here goes the second release candidate. It contains an ACPI update,
> networking updates, IDE updates, XFS update, etc.
Building the (binary) nvidia driver I got this warning:
In file included from /lib/modules/2.4.26-rc2/build/include/linux/vmalloc.h:8,
from nv-linux.h:62,
from os-interface.c:26:
/lib/modules/2.4.26-rc2/build/include/linux/highmem.h: In function `bh_kmap':
/lib/modules/2.4.26-rc2/build/include/linux/highmem.h:20: warning: pointer of type `void *' used in arithmetic
Looking there I see:
static inline char *bh_kmap(struct buffer_head *bh)
{
return kmap(bh->b_page) + bh_offset(bh);
}
And in /usr/include/linux/highmem.h I see:
static inline void *kmap(struct page *page) { return page_address(page); }
So we really are doing 'void *' math, which is not right. Maybe a cast is
called for in bh_kmap(), like:
return (char *)kmap(bh->b_page) + bh_offset(bh);
--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>
next prev parent reply other threads:[~2004-04-11 6:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-06 0:42 Marcelo Tosatti
2004-04-06 1:57 ` Paul Mackerras
2004-04-08 19:11 ` Marcelo Tosatti
2004-04-11 6:20 ` Eyal Lebedinsky [this message]
[not found] ` <20040414121231.GA1406@logos.cnet>
2004-04-15 23:14 ` Eyal Lebedinsky
2004-04-16 0:58 ` Jeff Garzik
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=4078E3BA.8040707@eyal.emu.id.au \
--to=eyal@eyal.emu.id.au \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.com \
/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®