public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* gcc 3.4 "makes pointer from integer without a cast" warnings in via-rhine-c
@ 2004-10-16 19:46 Lee Revell
  2004-10-18 11:18 ` Martin Waitz
  0 siblings, 1 reply; 3+ messages in thread
From: Lee Revell @ 2004-10-16 19:46 UTC (permalink / raw)
  To: rluethi; +Cc: linux-kernel

I get these warnings compiling via-rhine with gcc 3.4.  What is the
correct way to fix this?  This came up in another thread and someone
mentioned that just adding a cast is not a "real fix" but just hides the
problem.

drivers/net/via-rhine.c: In function `get_intr_status':
drivers/net/via-rhine.c:536: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/net/via-rhine.c:539: warning: passing arg 1 of `readb' makes pointer from integer without a cast
drivers/net/via-rhine.c: In function `rhine_power_init':
drivers/net/via-rhine.c:555: warning: passing arg 1 of `readb' makes pointer from integer without a cast
drivers/net/via-rhine.c:555: warning: passing arg 2 of `writeb' makes pointer from integer without a cast
drivers/net/via-rhine.c:558: warning: passing arg 2 of `writeb' makes pointer from integer without a cast

etc

Lee


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcc 3.4 "makes pointer from integer without a cast" warnings in via-rhine-c
       [not found] <1097957149.2148.22.camel@krustophenia.net>
@ 2004-10-17  7:12 ` Roger Luethi
  0 siblings, 0 replies; 3+ messages in thread
From: Roger Luethi @ 2004-10-17  7:12 UTC (permalink / raw)
  To: Lee Revell; +Cc: linux-kernel

On Sat, 16 Oct 2004 16:05:50 -0400, Lee Revell wrote:
> I get these warnings compiling via-rhine with gcc 3.4.  What is the
> correct way to fix this?  This came up in another thread and someone
> mentioned that just adding a cast is not a "real fix" but just hides the
> problem.

I am offline most of this month, so I may have missed something important
here, but my procmail filter caught Al Viro hacking via-rhine. You may
want to have a look at the 2.6.9-rc4-bird1 patchset he announced, it
looks related (I won't be able to for another couple of weeks at least).

Roger

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcc 3.4 "makes pointer from integer without a cast" warnings in via-rhine-c
  2004-10-16 19:46 gcc 3.4 "makes pointer from integer without a cast" warnings in via-rhine-c Lee Revell
@ 2004-10-18 11:18 ` Martin Waitz
  0 siblings, 0 replies; 3+ messages in thread
From: Martin Waitz @ 2004-10-18 11:18 UTC (permalink / raw)
  To: Lee Revell; +Cc: rluethi, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 361 bytes --]

hi :)

On Sat, Oct 16, 2004 at 03:46:07PM -0400, Lee Revell wrote:
> I get these warnings compiling via-rhine with gcc 3.4.  What is the
> correct way to fix this?  This came up in another thread and someone
> mentioned that just adding a cast is not a "real fix" but just hides the
> problem.

look at include/asm-generic/iomap.h

-- 
Martin Waitz

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-10-18 11:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-16 19:46 gcc 3.4 "makes pointer from integer without a cast" warnings in via-rhine-c Lee Revell
2004-10-18 11:18 ` Martin Waitz
     [not found] <1097957149.2148.22.camel@krustophenia.net>
2004-10-17  7:12 ` Roger Luethi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox