[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] x86: put vcpumask_to_pcpumask under CONFIG_PV
commit 3cbecb3c6307a23d5a2227b8f48eb395131e998e Author: Wei Liu <wei.liu2@xxxxxxxxxx> AuthorDate: Fri Nov 2 19:28:51 2018 +0000 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Mon Nov 5 10:30:29 2018 +0000 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 <wei.liu2@xxxxxxxxxx> Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- 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; -- generated by git-patchbot for /home/xen/git/xen.git#staging _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |