Function domain_set_node_affinity() is responsible for
XEN_DOMCTL_setnodeaffinity domctl-op, and shall be wrapped with CONFIG_DOMCTL

Signed-off-by: Penny Zheng <penny.zh...@amd.com>
---
 xen/common/domain.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xen/common/domain.c b/xen/common/domain.c
index be722c9f09..22313d761b 100644
--- a/xen/common/domain.c
+++ b/xen/common/domain.c
@@ -1097,6 +1097,7 @@ void __init setup_system_domains(void)
 #endif
 }
 
+#ifdef CONFIG_DOMCTL
 int domain_set_node_affinity(struct domain *d, const nodemask_t *affinity)
 {
     /* Being disjoint with the system is just wrong. */
@@ -1125,6 +1126,7 @@ out:
 
     return 0;
 }
+#endif /* CONFIG_DOMCTL */
 
 /* rcu_read_lock(&domlist_read_lock) must be held. */
 static struct domain *domid_to_domain(domid_t dom)
-- 
2.34.1


Reply via email to