Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[IA64] move ioremap/ioremap_nocache under __KERNEL__

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>
Signed-off-by: Tony Luck <tony.luck@intel.com>

authored by

Aron Griffis and committed by
Tony Luck
ffc45571 3bbe486b

+2 -2
+2 -2
include/asm-ia64/io.h
··· 417 417 # define outl_p outl 418 418 #endif 419 419 420 + # ifdef __KERNEL__ 421 + 420 422 extern void __iomem * ioremap(unsigned long offset, unsigned long size); 421 423 extern void __iomem * ioremap_nocache (unsigned long offset, unsigned long size); 422 424 ··· 431 429 #define dmi_ioremap ioremap 432 430 #define dmi_iounmap(x,l) iounmap(x) 433 431 #define dmi_alloc(l) kmalloc(l, GFP_ATOMIC) 434 - 435 - # ifdef __KERNEL__ 436 432 437 433 /* 438 434 * String version of IO memory access ops: