@@ -52,6 +52,7 @@ config IA64
select HAVE_MOD_ARCH_SPECIFIC
select MODULES_USE_ELF_RELA
select ARCH_USE_CMPXCHG_LOCKREF
+ select ARCH_HAS_MEMREMAP
select HAVE_ARCH_AUDITSYSCALL
default y
help
@@ -101,6 +101,16 @@ ioremap (unsigned long phys_addr, unsigned long size)
}
EXPORT_SYMBOL(ioremap);
+/*
+ * Cache mapping-type is determined internal to ioremap and can't be
+ * externally specified
+ */
+void *arch_memremap(resource_size_t offset, size_t size, unsigned long flags)
+{
+ return (void __force *) ioremap(offset, size);
+}
+EXPORT_SYMBOL(arch_memremap);
+
void __iomem *
ioremap_nocache (unsigned long phys_addr, unsigned long size)
{
In preparation for removing ioremap_cache() introduce arch_memremap() for ia64. Given that ia64 does not allow external control for caching types, this simply aliases arch_memremap() with the ia64 ioremap() implementation. Cc: Arnd Bergmann <arnd@arndb.de> Cc: Tony Luck <tony.luck@intel.com> Cc: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- arch/ia64/Kconfig | 1 + arch/ia64/mm/ioremap.c | 10 ++++++++++ 2 files changed, 11 insertions(+)