summary refs log tree commit diff
path: root/arch/riscv/include/asm/mmio.h
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2020-05-11 10:19:54 +0800
committerPalmer Dabbelt <palmerdabbelt@google.com>2020-05-12 17:20:32 -0700
commitfa8174aa225fe3d53b37552e5066e6f0301dbabd (patch)
treeceb19f1f2b90a7f3ccd8af97c2d4834de7d2bec3 /arch/riscv/include/asm/mmio.h
parent0502bee37cdef755d63eee60236562e5605e2480 (diff)
downloadlinux-fa8174aa225fe3d53b37552e5066e6f0301dbabd.tar.gz
riscv: Add pgprot_writecombine/device and PAGE_SHARED defination if NOMMU
Some drivers use PAGE_SHARED, pgprot_writecombine()/pgprot_device(),
add the defination to fix build error if NOMMU.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/include/asm/mmio.h')
-rw-r--r--arch/riscv/include/asm/mmio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/mmio.h b/arch/riscv/include/asm/mmio.h
index a2c809df2733..56053c9838b2 100644
--- a/arch/riscv/include/asm/mmio.h
+++ b/arch/riscv/include/asm/mmio.h
@@ -16,6 +16,8 @@
 
 #ifndef CONFIG_MMU
 #define pgprot_noncached(x)	(x)
+#define pgprot_writecombine(x)	(x)
+#define pgprot_device(x)	(x)
 #endif /* CONFIG_MMU */
 
 /* Generic IO read/write.  These perform native-endian accesses. */