summaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2018-02-23 10:11:19 +0100
committerMichal Simek <michal.simek@xilinx.com>2018-03-19 15:33:05 +0100
commit97ccedd793ac490f1f16c57c275e9181f85ad1cb (patch)
tree4f666ff45b950c202fb2def6018c4d90ffa10eb0 /arch/microblaze
parentc698ca5278934c0ae32297a8725ced2e27585d7f (diff)
downloadlinux-97ccedd793ac490f1f16c57c275e9181f85ad1cb.tar.bz2
microblaze: Provide pgprot_device/writecombine macros for nommu
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>
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/include/asm/pgtable.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/pgtable.h b/arch/microblaze/include/asm/pgtable.h
index e53b8532353c..db8b1fa83452 100644
--- a/arch/microblaze/include/asm/pgtable.h
+++ b/arch/microblaze/include/asm/pgtable.h
@@ -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)