All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lee Revell <rlrevell@joe-job.com>
To: rluethi@hellgate.ch
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: gcc 3.4 "makes pointer from integer without a cast" warnings in via-rhine-c
Date: Sat, 16 Oct 2004 15:46:07 -0400	[thread overview]
Message-ID: <1097955967.2148.12.camel@krustophenia.net> (raw)

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


             reply	other threads:[~2004-10-16 20:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-16 19:46 Lee Revell [this message]
2004-10-18 11:18 ` gcc 3.4 "makes pointer from integer without a cast" warnings in via-rhine-c Martin Waitz
     [not found] <1097957149.2148.22.camel@krustophenia.net>
2004-10-17  7:12 ` Roger Luethi

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=1097955967.2148.12.camel@krustophenia.net \
    --to=rlrevell@joe-job.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rluethi@hellgate.ch \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.