From: Sergiy Kibrik Date: Thu, 19 Dec 2024 11:13:26 +0000 (+0200) Subject: xen/ioreq: Fix check for CONFIG_ARCH_VCPU_IOREQ_COMPLETION X-Git-Tag: 4.20.0-rc1~57 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e547f730e89e026a3d6e034988c555562581342a;p=xen.git xen/ioreq: Fix check for CONFIG_ARCH_VCPU_IOREQ_COMPLETION It should be CONFIG_ARCH_VCPU_IOREQ_COMPLETION (as in Kconfig) and not misspelled CONFIG_VCPU_ARCH_IOREQ_COMPLETION. Fixes: 979cfdd3e58c ("ioreq: do not build arch_vcpu_ioreq_completion() for non-VMX configurations") Signed-off-by: Sergiy Kibrik Acked-by: Andrew Cooper --- diff --git a/xen/arch/x86/hvm/ioreq.c b/xen/arch/x86/hvm/ioreq.c index 5c3d0c69aa..d6491df8e7 100644 --- a/xen/arch/x86/hvm/ioreq.c +++ b/xen/arch/x86/hvm/ioreq.c @@ -29,7 +29,7 @@ bool arch_ioreq_complete_mmio(void) return handle_mmio(); } -#ifdef CONFIG_VCPU_ARCH_IOREQ_COMPLETION +#ifdef CONFIG_ARCH_VCPU_IOREQ_COMPLETION bool arch_vcpu_ioreq_completion(enum vio_completion completion) { switch ( completion ) diff --git a/xen/include/xen/ioreq.h b/xen/include/xen/ioreq.h index 29a17e8ff5..4f3c6b598d 100644 --- a/xen/include/xen/ioreq.h +++ b/xen/include/xen/ioreq.h @@ -112,7 +112,7 @@ int ioreq_server_dm_op(struct xen_dm_op *op, struct domain *d, bool *const_op); bool arch_ioreq_complete_mmio(void); -#ifdef CONFIG_VCPU_ARCH_IOREQ_COMPLETION +#ifdef CONFIG_ARCH_VCPU_IOREQ_COMPLETION bool arch_vcpu_ioreq_completion(enum vio_completion completion); #else static inline bool arch_vcpu_ioreq_completion(enum vio_completion completion)