On 9/1/2020 8:08 AM, Greg Kroah-Hartman wrote:
[ Upstream commit d6a7bb869dd8a516901591136a9a895fd829d6c6 ]

Fix build errors when CONFIG_PCI_MSI is not enabled by making the
driver depend on PCI_MSI:

ld: drivers/dma/idxd/device.o: in function `idxd_mask_msix_vector':
device.c:(.text+0x26f): undefined reference to `pci_msi_mask_irq'
ld: drivers/dma/idxd/device.o: in function `idxd_unmask_msix_vector':
device.c:(.text+0x2af): undefined reference to `pci_msi_unmask_irq'

Signed-off-by: Randy Dunlap <[email protected]>
Cc: Dave Jiang <[email protected]>
Cc: [email protected]
Cc: Vinod Koul <[email protected]>
Link: 
https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>

Acked-by: Dave Jiang <[email protected]>

---
  drivers/dma/Kconfig | 1 +
  1 file changed, 1 insertion(+)

diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig
index de41d7928bff2..984354ca877de 100644
--- a/drivers/dma/Kconfig
+++ b/drivers/dma/Kconfig
@@ -285,6 +285,7 @@ config INTEL_IDMA64
  config INTEL_IDXD
        tristate "Intel Data Accelerators support"
        depends on PCI && X86_64
+       depends on PCI_MSI
        select DMA_ENGINE
        select SBITMAP
        help

Reply via email to