PCI: Add pci_irq_vector() and other stubs when !CONFIG_PCI
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 4 Sep 2019 12:26:00 +0000 (22:26 +1000)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 21 Sep 2019 14:51:55 +0000 (09:51 -0500)
commit0d8006ddbe89cbaedef06a8789ddefa1164a3a77
treeb50f2f9a9cb76b60cc90e878ec4df54cb020cf3a
parent46b2c32df7a462d0e64b68c513e5c4c1b2a399a7
PCI: Add pci_irq_vector() and other stubs when !CONFIG_PCI

Add stub functions pci_alloc_irq_vectors_affinity() and pci_irq_vector()
when CONFIG_PCI is off so drivers can use them without resorting to ifdefs.

Also move the PCI_IRQ_* macros outside of the ifdefs so they are always
available.

Fixes: 625f269a5a7a ("crypto: inside-secure - add support for PCI based FPGA development board")
Link: https://lore.kernel.org/r/20190904122600.GA28660@gondor.apana.org.au
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
include/linux/pci.h