From 7881bf488263f52b8f6dd9935031d7b405958c0c Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 1 Apr 2019 11:09:43 +0200 Subject: [PATCH] x86/paging: paging_set_allocation() is init-only This is needed for Dom0 creation only, therefore it gets additionally framed by an #ifdef. Signed-off-by: Jan Beulich Reviewed-by: George Dunlap --- xen/arch/x86/mm/paging.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/mm/paging.c b/xen/arch/x86/mm/paging.c index 21db3eceb6..9b0f268e74 100644 --- a/xen/arch/x86/mm/paging.c +++ b/xen/arch/x86/mm/paging.c @@ -950,7 +950,9 @@ int paging_write_p2m_entry(struct p2m_domain *p2m, unsigned long gfn, return rc; } -int paging_set_allocation(struct domain *d, unsigned int pages, bool *preempted) +#ifdef CONFIG_HVM +int __init paging_set_allocation(struct domain *d, unsigned int pages, + bool *preempted) { int rc; @@ -965,6 +967,7 @@ int paging_set_allocation(struct domain *d, unsigned int pages, bool *preempted) return rc; } +#endif /* * Local variables: -- 2.30.2