summaryrefslogtreecommitdiff
path: root/drivers/vfio/cdx/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/vfio/cdx/Makefile')
-rw-r--r--drivers/vfio/cdx/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/vfio/cdx/Makefile b/drivers/vfio/cdx/Makefile
index cd4a2e6fe609..dadbef2419ea 100644
--- a/drivers/vfio/cdx/Makefile
+++ b/drivers/vfio/cdx/Makefile
@@ -6,3 +6,7 @@
obj-$(CONFIG_VFIO_CDX) += vfio-cdx.o
vfio-cdx-objs := main.o
+
+ifdef CONFIG_GENERIC_MSI_IRQ
+vfio-cdx-objs += intr.o
+endif