microblaze: Provide pgprot_device/writecombine macros for nommu
authorMichal Simek <michal.simek@xilinx.com>
Fri, 23 Feb 2018 09:11:19 +0000 (10:11 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 19 Mar 2018 14:33:05 +0000 (15:33 +0100)
These macros are required for generic mmap.c implementation created by:
commit f719582435af ("PCI: Add pci_mmap_resource_range() and use it for
ARM64") which Microblaze is going to use.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Suggested-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/include/asm/pgtable.h

index e53b8532353c5b8267604005b89327114b8b7d3c..db8b1fa83452c1fec163e068acb723d18b6166d8 100644 (file)
@@ -33,6 +33,8 @@ extern int mem_init_done;
 #define PAGE_KERNEL            __pgprot(0) /* these mean nothing to non MMU */
 
 #define pgprot_noncached(x)    (x)
+#define pgprot_writecombine    pgprot_noncached
+#define pgprot_device          pgprot_noncached
 
 #define __swp_type(x)          (0)
 #define __swp_offset(x)                (0)