diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2020-05-11 10:19:54 +0800 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2020-05-12 17:20:32 -0700 |
commit | fa8174aa225fe3d53b37552e5066e6f0301dbabd (patch) | |
tree | ceb19f1f2b90a7f3ccd8af97c2d4834de7d2bec3 /arch/riscv/include/asm/mmio.h | |
parent | 0502bee37cdef755d63eee60236562e5605e2480 (diff) | |
download | linux-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.h | 2 |
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. */ |