]> git.hungrycats.org Git - linux/commitdiff
um: Serve io_remap_pfn_range()
authorRichard Weinberger <richard@nod.at>
Tue, 7 Feb 2012 00:22:47 +0000 (01:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Jun 2013 19:46:39 +0000 (12:46 -0700)
commit 4d94d6d030adfdea4837694d293ec6918d133ab2 upstream.

At some places io_remap_pfn_range() is needed.
UML has to serve it like all other archs do.

Signed-off-by: Richard Weinberger <richard@nod.at>
Tested-by: Antoine Martin <antoine@nagafix.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/um/include/asm/pgtable.h

index aa365c55ecf94b685bff6d33f96e33244247cf9f..5888f1b834771a102a7d212581ec1f3eb9aff3b2 100644 (file)
@@ -69,6 +69,8 @@ extern unsigned long end_iomem;
 #define PAGE_KERNEL    __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED)
 #define PAGE_KERNEL_EXEC       __pgprot(__PAGE_KERNEL_EXEC)
 
+#define io_remap_pfn_range     remap_pfn_range
+
 /*
  * The i386 can't do page protection for execute, and considers that the same
  * are read.