* [PATCH] move ioremap/ioremap_nocache under __KERNEL__
@ 2006-10-17 4:28 Aron Griffis
0 siblings, 0 replies; only message in thread
From: Aron Griffis @ 2006-10-17 4:28 UTC (permalink / raw)
To: linux-ia64
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:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-17 4:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-17 4:28 [PATCH] move ioremap/ioremap_nocache under __KERNEL__ Aron Griffis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox