From: Stefano Stabellini <stefano.stabell...@amd.com> Signed-off-by: Stefano Stabellini <stefano.stabell...@amd.com> Signed-off-by: Sergiy Kibrik <sergiy_kib...@epam.com> Signed-off-by: Penny Zheng <penny.zh...@amd.com> --- xen/common/Makefile | 2 +- xen/include/hypercall-defs.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/xen/common/Makefile b/xen/common/Makefile index cba3b32733..31c6fb1b71 100644 --- a/xen/common/Makefile +++ b/xen/common/Makefile @@ -69,7 +69,7 @@ obj-$(CONFIG_COMPAT) += $(addprefix compat/,domain.o memory.o multicall.o xlat.o ifneq ($(CONFIG_PV_SHIM_EXCLUSIVE),y) obj-y += domctl.o obj-y += monitor.o -obj-y += sysctl.o +obj-$(CONFIG_SYSCTL) += sysctl.o endif extra-y := symbols-dummy.o diff --git a/xen/include/hypercall-defs.c b/xen/include/hypercall-defs.c index 7720a29ade..b2118e9adb 100644 --- a/xen/include/hypercall-defs.c +++ b/xen/include/hypercall-defs.c @@ -195,7 +195,9 @@ kexec_op(unsigned long op, void *uarg) dm_op(domid_t domid, unsigned int nr_bufs, xen_dm_op_buf_t *bufs) #endif #ifndef CONFIG_PV_SHIM_EXCLUSIVE +#ifdef CONFIG_SYSCTL sysctl(xen_sysctl_t *u_sysctl) +#endif domctl(xen_domctl_t *u_domctl) paging_domctl_cont(xen_domctl_t *u_domctl) platform_op(xen_platform_op_t *u_xenpf_op) @@ -274,7 +276,9 @@ physdev_op compat do hvm hvm do_arm hvm_op do do do do do #endif #ifndef CONFIG_PV_SHIM_EXCLUSIVE +#ifdef CONFIG_SYSCTL sysctl do do do do do +#endif domctl do do do do do #endif #ifdef CONFIG_KEXEC -- 2.34.1