dde_linux: provide __phys_to_pfn for arm64

This macro is needed by the 'pinephone_camera_drv' driver port.

Fixes #4625.
This commit is contained in:
Josef Söntgen 2022-07-29 16:51:52 +02:00 committed by Christian Helmuth
parent 95ee0f58f2
commit 85f98d7038

View File

@ -18,6 +18,7 @@
#include <asm/page-def.h>
#include <linux/sizes.h>
#include <linux/pfn.h>
#include <lx_emul/debug.h>
#include <lx_emul/alloc.h>
#include <lx_emul/page_virt.h>
@ -61,4 +62,16 @@ static inline struct page *virt_to_page(void const *v) { return lx_emul_virt_to_
#endif /* __ASSEMBLY__ */
/*
* Normally included from <asm-generic/memory_model.h> and
* implemented via PHYS_PFN()
*/
#define __phys_to_pfn(paddr) PHYS_PFN(paddr)
/*
* Normally included from <asm-generic/memory_model.h> and
* implemented via PFN_PHYS()
*/
#define __pfn_to_phys(pfn) PFN_PHYS(pfn)
#endif /* __ASM_MEMORY_H */