From: David Vrabel Date: Tue, 13 Jan 2015 17:16:42 +0000 (+0000) Subject: xen: add page_to_mfn() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=28e98c2c20e9d791cf58a624a5a2b1fca63ea47b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git xen: add page_to_mfn() pfn_to_mfn(page_to_pfn(p)) is a common use case so add a generic helper for it. Signed-off-by: David Vrabel Signed-off-by: David S. Miller --- diff --git a/include/xen/page.h b/include/xen/page.h index 12765b6f9517..c5ed20bb3fe9 100644 --- a/include/xen/page.h +++ b/include/xen/page.h @@ -3,6 +3,11 @@ #include +static inline unsigned long page_to_mfn(struct page *page) +{ + return pfn_to_mfn(page_to_pfn(page)); +} + struct xen_memory_region { phys_addr_t start; phys_addr_t size;