xref: /openbmc/linux/arch/riscv/include/asm/vmalloc.h (revision ecfb9f40)
1 #ifndef _ASM_RISCV_VMALLOC_H
2 #define _ASM_RISCV_VMALLOC_H
3 
4 #ifdef CONFIG_HAVE_ARCH_HUGE_VMAP
5 
6 #define IOREMAP_MAX_ORDER (PUD_SHIFT)
7 
8 #define arch_vmap_pud_supported arch_vmap_pud_supported
9 static inline bool arch_vmap_pud_supported(pgprot_t prot)
10 {
11 	return true;
12 }
13 
14 #define arch_vmap_pmd_supported arch_vmap_pmd_supported
15 static inline bool arch_vmap_pmd_supported(pgprot_t prot)
16 {
17 	return true;
18 }
19 
20 #endif
21 
22 #endif /* _ASM_RISCV_VMALLOC_H */
23