From: Roland Dreier <roland@topspin.com>
To: linux-kernel@vger.kernel.org
Subject: What types are the parameters of memcpy_toio?
Date: 16 May 2004 21:03:29 -0700 [thread overview]
Message-ID: <52lljrwvhq.fsf@topspin.com> (raw)
This may be a silly question, but what are the types of the parameters
of memcpy_toio and memcpy_fromio? I was under the impression that IO
addresses are "cookies" and not pointers, and hence should be kept as
unsigned long.
However, <asm-x86_64/io.h> declares them as
void *memcpy_fromio(void*,const void*,unsigned);
void *memcpy_toio(void*,const void*,unsigned);
which means my code (which uses unsigned long) gets warnings like
warning: passing arg 1 of `memcpy_toio' makes pointer from integer without a cast
Other architectures seem to expect the IO address to be unsigned long
and explicitly cast it to a pointer.
Thanks,
Roland
next reply other threads:[~2004-05-17 4:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-17 4:03 Roland Dreier [this message]
2004-05-17 18:28 ` memcpy_to/fromio cleanups for x86_64 Roland Dreier
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=52lljrwvhq.fsf@topspin.com \
--to=roland@topspin.com \
--cc=linux-kernel@vger.kernel.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