From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] KVM: x86: Fix compile when CONFIG_DMAR is not defined Date: Tue, 16 Sep 2008 10:12:50 -0700 Message-ID: <48CFE912.7010307@redhat.com> References: <1221585027-5248-1-git-send-email-amit.shah@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, weidong.han@intel.com, benami@il.ibm.com To: Amit Shah Return-path: Received: from mx2.redhat.com ([66.187.237.31]:57799 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753063AbYIPRQL (ORCPT ); Tue, 16 Sep 2008 13:16:11 -0400 In-Reply-To: <1221585027-5248-1-git-send-email-amit.shah@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Amit Shah wrote: > intel_iommu_found() is not defined if CONFIG_DMAR is not defined > > Signed-off-by: Amit Shah > --- > include/linux/kvm_host.h | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h > index 6252802..5b9d713 100644 > --- a/include/linux/kvm_host.h > +++ b/include/linux/kvm_host.h > @@ -331,6 +331,11 @@ static inline int kvm_iommu_unmap_guest(struct kvm *kvm) > { > return 0; > } > + > +static inline int intel_iommu_found() > +{ > + return 0; > +} > #endif /* CONFIG_DMAR */ > > static inline void kvm_guest_enter(void) > in linux/intel-iommu.h -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.