Function domain_pause_by_systemcontroller() is responsible for XEN_DOMCTL_pausedomain domctl-op, and shall be wrapped around 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 5241a1629e..e20fe2d40d 100644 --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -1598,10 +1598,12 @@ static int _domain_pause_by_systemcontroller(struct domain *d, bool sync) return 0; } +#ifdef CONFIG_DOMCTL int domain_pause_by_systemcontroller(struct domain *d) { return _domain_pause_by_systemcontroller(d, true /* sync */); } +#endif /* CONFIG_DOMCTL */ int domain_pause_by_systemcontroller_nosync(struct domain *d) { -- 2.34.1