diff mbox series

dmaengine: idxd: fix missing symbol for pci_msi_mask_irq()

Message ID 159413909204.59019.6521464735007914513.stgit@djiang5-desk3.ch.intel.com
State Not Applicable
Headers show
Series dmaengine: idxd: fix missing symbol for pci_msi_mask_irq() | expand

Commit Message

Dave Jiang July 7, 2020, 4:24 p.m. UTC
lkp report compile issue without CONFIG_PCI_MSI_IRQ_DOMAIN being set. Add
dependency to the driver to ensure symbol is valid.

   ld: drivers/dma/idxd/device.o: in function `idxd_mask_msix_vector':
>> drivers/dma/idxd/device.c:24: undefined reference to `pci_msi_mask_irq'
   ld: drivers/dma/idxd/device.o: in function `idxd_unmask_msix_vector':
>> drivers/dma/idxd/device.c:41: undefined reference to `pci_msi_unmask_irq'

Fixes: 3592633e52d2 ("dmaengine: idxd: move idxd interrupt handling to mask instead of ignore")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
 drivers/dma/Kconfig |    1 +
 1 file changed, 1 insertion(+)
diff mbox series


diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig
index b70e90765ad3..cd89fe38834b 100644
--- a/drivers/dma/Kconfig
+++ b/drivers/dma/Kconfig
@@ -286,6 +286,7 @@  config INTEL_IDXD
 	tristate "Intel Data Accelerators support"
 	depends on PCI && X86_64
 	depends on SBITMAP
+	depends on PCI_MSI_IRQ_DOMAIN
 	select DMA_ENGINE
 	  Enable support for the Intel(R) data accelerators present