]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf9560c9d013fc4b18cbb33098c8a8d94bcf0967c
treeb50f2f9a9cb76b60cc90e878ec4df54cb020cf3a
parentda5ea9e536fa15d79eb1a02853f4b8186692b73b
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: d97ab005a58e ("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