p***@xen.org
2018-11-19 11:45:04 UTC
commit 3cbecb3c6307a23d5a2227b8f48eb395131e998e
Author: Wei Liu <***@citrix.com>
AuthorDate: Fri Nov 2 19:28:51 2018 +0000
Commit: Wei Liu <***@citrix.com>
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 <***@citrix.com>
Reviewed-by: Andrew Cooper <***@citrix.com>
---
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#master
Author: Wei Liu <***@citrix.com>
AuthorDate: Fri Nov 2 19:28:51 2018 +0000
Commit: Wei Liu <***@citrix.com>
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 <***@citrix.com>
Reviewed-by: Andrew Cooper <***@citrix.com>
---
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#master