From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH v2] kvm-vfio: do not use module_init Date: Wed, 24 Sep 2014 14:07:37 +0200 Message-ID: <5422B409.5000808@redhat.com> References: <1411559780-12676-1-git-send-email-pbonzini@redhat.com> <20140924120505.GF28823@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , Gleb Natapov , Alex Williamson To: Will Deacon Return-path: In-Reply-To: <20140924120505.GF28823@arm.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org Il 24/09/2014 14:05, Will Deacon ha scritto: >> > +#ifdef CONFIG_KVM_VFIO >> > +#include "vfio.h" >> > +#endif > Can't you include this unconditionally, then have the #ifdef in the header > and a static inline kvm_vfio_ops_init that returns 0? Yup. What was I thinking... Paolo