From: Jan Beulich Date: Mon, 1 Apr 2019 09:09:43 +0000 (+0200) Subject: x86/paging: paging_set_allocation() is init-only X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~2427 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7881bf488263f52b8f6dd9935031d7b405958c0c;p=xen.git 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 --- 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: