Signed-off-by: Oleksii Kurochko <oleksii.kuroc...@gmail.com> --- xen/arch/riscv/include/asm/page.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/xen/arch/riscv/include/asm/page.h b/xen/arch/riscv/include/asm/page.h index 8e8ec9ee36..1c6add70a5 100644 --- a/xen/arch/riscv/include/asm/page.h +++ b/xen/arch/riscv/include/asm/page.h @@ -3,6 +3,8 @@ #ifndef _ASM_RISCV_PAGE_H #define _ASM_RISCV_PAGE_H +#ifndef __ASSEMBLY__ + #include <xen/const.h> #include <xen/types.h> @@ -60,4 +62,6 @@ static inline bool pte_is_valid(pte_t p) return p.pte & PTE_VALID; } +#endif /* __ASSEMBLY__ */ + #endif /* _ASM_RISCV_PAGE_H */ -- 2.40.1