From: Randy Dunlap <randy.dunlap@oracle.com>
To: lkml <linux-kernel@vger.kernel.org>,
torvalds <torvalds@linux-foundation.org>
Cc: H Hartley Sweeten <hsweeten@visionengravers.com>
Subject: [PATCH 2/4] Documentation: fix ioremap return type
Date: Fri, 1 Jan 2010 20:35:41 -0800 [thread overview]
Message-ID: <20100101203541.6ce233bc.randy.dunlap@oracle.com> (raw)
From: H Hartley Sweeten <hsweeten@visionengravers.com>
Subject: Documentation: fix ioremap return type
ioremap() returns a void __iomem * not a char *. Update the documentation
file to reflect this.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
Documentation/IO-mapping.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.33-rc2-git4.orig/Documentation/IO-mapping.txt
+++ linux-2.6.33-rc2-git4/Documentation/IO-mapping.txt
@@ -157,7 +157,7 @@ For such memory, you can do things like
* access only the 640k-1MB area, so anything else
* has to be remapped.
*/
- char * baseptr = ioremap(0xFC000000, 1024*1024);
+ void __iomem *baseptr = ioremap(0xFC000000, 1024*1024);
/* write a 'A' to the offset 10 of the area */
writeb('A',baseptr+10);
reply other threads:[~2010-01-02 4:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20100101203541.6ce233bc.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=hsweeten@visionengravers.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.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
all inboxes | Powered by JetHome®