{x86,arm}/mm.c: Make populate_pt_range __init
PATCH 1/1 {x86,arm}/mm.c: Make populate_pt_range __init
It's only called from another __init function.
Signed-off-by George Dunlap <[email protected]>
---
CC: Andrew Cooper <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monne <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Julien Grall <[email protected]>
--- xen/arch/arm/mm.c | 2 +- xen/arch/x86/mm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
xen/arch/arm/mm.c +1 -1
@@ -1298,7 +1298,7 @@ int map_pages_to_xen(unsigned long virt,return xen_pt_update (virt, mfn, nr_mfns, flags); } -int populate_pt_range (unsigned long virt,unsigned long nr_mfns) +int __init populate_pt_range (unsigned long virt,unsigned long nr_mfns) {return xen_pt_update (virt,INVALID_MFN , nr_mfns, _PAGE_POPULATE); }
xen/arch/x86/mm.c +1 -1
@@ -5529,7 +5529,7 @@ int map_pages_to_xen(return rc; } -int populate_pt_range (unsigned long virt,unsigned long nr_mfns) +int __init populate_pt_range (unsigned long virt,unsigned long nr_mfns) {return map_pages_to_xen (virt,INVALID_MFN , nr_mfns,MAP_SMALL_PAGES ); }
Signature · 1 line
2.25.1
Quoted 3 lines · George Dunlap
It's only called from another
__initfunction.Signed-off-by George Dunlap <[email protected]>
Acked-by Andrew Cooper <[email protected]>
Hi George,
Quoted 3 lines · George Dunlap
It's only called from another
__initfunction.Signed-off-by George Dunlap <[email protected]>
Acked-by Julien Grall <[email protected]>
Cheers,
Quoted 38 lines
---
CC: Andrew Cooper <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monne <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Julien Grall <[email protected]>--- xen/arch/arm/mm.c | 2 +- xen/arch/x86/mm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)xen/arch/arm/mm.c +1
-1@@ -1298,7 +1298,7 @@ int map_pages_to_xen(unsigned long virt,return xen_pt_update (virt, mfn, nr_mfns, flags); } -int populate_pt_range (unsigned long virt,unsigned long nr_mfns) +int __init populate_pt_range (unsigned long virt,unsigned long nr_mfns) {return xen_pt_update (virt,INVALID_MFN , nr_mfns, _PAGE_POPULATE); }xen/arch/x86/mm.c +1
-1@@ -5529,7 +5529,7 @@ int map_pages_to_xen(return rc; } -int populate_pt_range (unsigned long virt,unsigned long nr_mfns) +int __init populate_pt_range (unsigned long virt,unsigned long nr_mfns) {return map_pages_to_xen (virt,INVALID_MFN , nr_mfns,MAP_SMALL_PAGES ); }
Signature · 1 line
Julien Grall