summaryrefslogtreecommitdiff
path: root/arch/um
diff options
context:
space:
mode:
authorLogan Gunthorpe <logang@deltatee.com>2017-05-24 15:42:15 -0600
committerRichard Weinberger <richard@nod.at>2017-07-05 23:43:14 +0200
commit1bcbfbfdeb0091036db7a32e1cd31b49cce5983a (patch)
tree3b9a86028c535b88a74ac45ae8156f417fd242ce /arch/um
parent0a987645672ebde7844a9c0732a5a25f3d4bb6c6 (diff)
um: add dummy ioremap and iounmap functions
The user mode architecture does not provide ioremap or iounmap, and because of this, the arch won't build when the functions are used in some core libraries. I have designs to use these functions in scatterlist.c where they'd almost certainly never be called on the um architecture but it does need to compile. Signed-off-by: Logan Gunthorpe <logang@deltatee.com> Signed-off-by: Stephen Bates <sbates@raithlin.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/include/asm/io.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/um/include/asm/io.h b/arch/um/include/asm/io.h
new file mode 100644
index 000000000000..8f35d574f35b
--- /dev/null
+++ b/arch/um/include/asm/io.h
@@ -0,0 +1,17 @@
+#ifndef _ASM_UM_IO_H
+#define _ASM_UM_IO_H
+
+#define ioremap ioremap
+static inline void __iomem *ioremap(phys_addr_t offset, size_t size)
+{
+ return (void __iomem *)(unsigned long)offset;
+}
+
+#define iounmap iounmap
+static inline void iounmap(void __iomem *addr)
+{
+}
+
+#include <asm-generic/io.h>
+
+#endif