From: Aron Griffis <aron@hp.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] move ioremap/ioremap_nocache under __KERNEL__
Date: Tue, 17 Oct 2006 04:28:15 +0000 [thread overview]
Message-ID: <20061017042814.GA4158@fc.hp.com> (raw)
I noticed these are declared extern outside of __KERNEL__, but surely
they wouldn't be available to userland since they're defined in
ioremap.c. Am I missing something here?
If I'm right about this, then there's probably a good deal of other
stuff in io.h that could move inside __KERNEL__, but at least this is
a start.
Signed-off-by: Aron Griffis <aron@hp.com>
diff -r 59a71f61e1df include/asm-ia64/io.h
--- a/include/asm-ia64/io.h Tue Oct 17 02:19:03 2006 +0700
+++ b/include/asm-ia64/io.h Tue Oct 17 00:24:12 2006 -0400
@@ -417,6 +417,8 @@ __writeq (unsigned long val, volatile vo
# define outl_p outl
#endif
+# ifdef __KERNEL__
+
extern void __iomem * ioremap(unsigned long offset, unsigned long size);
extern void __iomem * ioremap_nocache (unsigned long offset, unsigned long size);
@@ -429,8 +431,6 @@ iounmap (volatile void __iomem *addr)
#define dmi_ioremap ioremap
#define dmi_iounmap(x,l) iounmap(x)
#define dmi_alloc(l) kmalloc(l, GFP_ATOMIC)
-
-# ifdef __KERNEL__
/*
* String version of IO memory access ops:
reply other threads:[~2006-10-17 4:28 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=20061017042814.GA4158@fc.hp.com \
--to=aron@hp.com \
--cc=linux-ia64@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 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.