[xen master] xen/arm: setup: use maddr_to_mfn rather than _mfn(paddr_to_pfn(...))

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen master] xen/arm: setup: use maddr_to_mfn rather than _mfn(paddr_to_pfn(...))

patchbot
commit c8d474db606d92496e6284b98cd212b954fbc4b6
Author:     Julien Grall <[hidden email]>
AuthorDate: Wed Feb 21 13:46:23 2018 +0000
Commit:     Julien Grall <[hidden email]>
CommitDate: Fri Apr 6 09:43:29 2018 +0100

    xen/arm: setup: use maddr_to_mfn rather than _mfn(paddr_to_pfn(...))
   
    Signed-off-by: Julien Grall <[hidden email]>
    Reviewed-by: George Dunlap <[hidden email]>
    Acked-by: Stefano Stabellini <[hidden email]>
---
 xen/arch/arm/setup.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c
index e6f8e23abd..6e49e8fd1f 100644
--- a/xen/arch/arm/setup.c
+++ b/xen/arch/arm/setup.c
@@ -268,8 +268,8 @@ void __init discard_initial_modules(void)
         if ( mi->module[i].kind == BOOTMOD_XEN )
             continue;
 
-        if ( !mfn_valid(_mfn(paddr_to_pfn(s))) ||
-             !mfn_valid(_mfn(paddr_to_pfn(e))))
+        if ( !mfn_valid(maddr_to_mfn(s)) ||
+             !mfn_valid(maddr_to_mfn(e)) )
             continue;
 
         dt_unreserved_regions(s, e, init_domheap_pages, 0);
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog