[PATCH] vdpa: fix build dependency of VIRTIO_PCI_LIB

From: Jason Wang
Date: Fri Mar 12 2021 - 04:37:49 EST


The modern PCI device module should be built independently without
VIRTIO. This patch fixes this.

Fixes: 7075992ba8873(“vdpa: introduce virtio pci driver")
Reported-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Signed-off-by: Jason Wang <jasowang@xxxxxxxxxx>
---
drivers/Makefile | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/Makefile b/drivers/Makefile
index fd11b9ac4cc3..911ee117def4 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -42,6 +42,7 @@ obj-$(CONFIG_DMADEVICES) += dma/
obj-y += soc/

obj-$(CONFIG_VIRTIO) += virtio/
+obj-$(CONFIG_VIRTIO_PCI_LIB) += virtio/
obj-$(CONFIG_VDPA) += vdpa/
obj-$(CONFIG_XEN) += xen/

--
2.25.1