From 85f98d703870c6ccccc82d8a42bfb46fe071be3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Fri, 29 Jul 2022 16:51:52 +0200 Subject: [PATCH] dde_linux: provide __phys_to_pfn for arm64 This macro is needed by the 'pinephone_camera_drv' driver port. Fixes #4625. --- .../lx_emul/shadow/arch/arm64/include/asm/memory.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/repos/dde_linux/src/include/lx_emul/shadow/arch/arm64/include/asm/memory.h b/repos/dde_linux/src/include/lx_emul/shadow/arch/arm64/include/asm/memory.h index f0d24e2d05..5d5aadde9a 100644 --- a/repos/dde_linux/src/include/lx_emul/shadow/arch/arm64/include/asm/memory.h +++ b/repos/dde_linux/src/include/lx_emul/shadow/arch/arm64/include/asm/memory.h @@ -18,6 +18,7 @@ #include #include +#include #include #include #include @@ -61,4 +62,16 @@ static inline struct page *virt_to_page(void const *v) { return lx_emul_virt_to_ #endif /* __ASSEMBLY__ */ +/* + * Normally included from and + * implemented via PHYS_PFN() + */ +#define __phys_to_pfn(paddr) PHYS_PFN(paddr) + +/* + * Normally included from and + * implemented via PFN_PHYS() + */ +#define __pfn_to_phys(pfn) PFN_PHYS(pfn) + #endif /* __ASM_MEMORY_H */