From 3cbecb3c6307a23d5a2227b8f48eb395131e998e Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Fri, 2 Nov 2018 19:28:51 +0000 Subject: [PATCH] x86: put vcpumask_to_pcpumask under CONFIG_PV This function is used by PV code only. This issue is discovered by clang build. Drop spurious inline while at it. Signed-off-by: Wei Liu Reviewed-by: Andrew Cooper --- xen/arch/x86/mm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index 703f3301a5..f043e43ac7 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -3057,7 +3057,8 @@ int new_guest_cr3(mfn_t mfn) #endif } -static inline int vcpumask_to_pcpumask( +#ifdef CONFIG_PV +static int vcpumask_to_pcpumask( struct domain *d, XEN_GUEST_HANDLE_PARAM(const_void) bmap, cpumask_t *pmask) { unsigned int vcpu_id, vcpu_bias, offs; @@ -3099,7 +3100,6 @@ static inline int vcpumask_to_pcpumask( } } -#ifdef CONFIG_PV static struct domain *get_pg_owner(domid_t domid) { struct domain *pg_owner = NULL, *curr = current->domain; -- 2.30.2