Message ID | 2-v1-df057e0f92c3+91-vfio_arm_compile_test_jgg@nvidia.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Tidy some parts of the VFIO kconfig world | expand |
Hi Jason, On 2/23/21 8:17 PM, Jason Gunthorpe wrote: > x86 can build platform bus code too, so vfio-platform and all the platform > reset implementations compile successfully on x86. A similar patch was sent recently, see [PATCH v1] vfio: platform: enable compile test https://www.spinics.net/lists/kvm/msg230677.html Thanks Eric > > Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> > --- > drivers/vfio/platform/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/vfio/platform/Kconfig b/drivers/vfio/platform/Kconfig > index dc1a3c44f2c62b..233efde219cc10 100644 > --- a/drivers/vfio/platform/Kconfig > +++ b/drivers/vfio/platform/Kconfig > @@ -1,7 +1,7 @@ > # SPDX-License-Identifier: GPL-2.0-only > config VFIO_PLATFORM > tristate "VFIO support for platform devices" > - depends on VFIO && EVENTFD && (ARM || ARM64) > + depends on VFIO && EVENTFD && (ARM || ARM64 || COMPILE_TEST) > select VFIO_VIRQFD > help > Support for platform devices with VFIO. This is required to make >
On Wed, Feb 24, 2021 at 10:42:10AM +0100, Auger Eric wrote: > Hi Jason, > On 2/23/21 8:17 PM, Jason Gunthorpe wrote: > > x86 can build platform bus code too, so vfio-platform and all the platform > > reset implementations compile successfully on x86. > > A similar patch was sent recently, see > [PATCH v1] vfio: platform: enable compile test > https://www.spinics.net/lists/kvm/msg230677.html Well, it does look like it got lost/abandoned, so lets focus on this series. Thanks, Jason
diff --git a/drivers/vfio/platform/Kconfig b/drivers/vfio/platform/Kconfig index dc1a3c44f2c62b..233efde219cc10 100644 --- a/drivers/vfio/platform/Kconfig +++ b/drivers/vfio/platform/Kconfig @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config VFIO_PLATFORM tristate "VFIO support for platform devices" - depends on VFIO && EVENTFD && (ARM || ARM64) + depends on VFIO && EVENTFD && (ARM || ARM64 || COMPILE_TEST) select VFIO_VIRQFD help Support for platform devices with VFIO. This is required to make
x86 can build platform bus code too, so vfio-platform and all the platform reset implementations compile successfully on x86. Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> --- drivers/vfio/platform/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)