diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-14 12:04:52 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-11-26 20:10:27 +0100 |
commit | d41b0e64d206f8948212b4d0f30c330db95c9636 (patch) | |
tree | 508c5ed0e5861b583ea7ee57f691e7ebf4404a05 /drivers/pci/msi.c | |
parent | Linux 5.4-rc4 (diff) | |
download | linux-d41b0e64d206f8948212b4d0f30c330db95c9636.tar.xz linux-d41b0e64d206f8948212b4d0f30c330db95c9636.zip |
PCI/MSI: Remove unused pci_irq_get_node()
The function pci_irq_get_node() is not used by anyone in the tree, so just
delete it.
Link: https://lore.kernel.org/r/20191014100452.GA6699@kroah.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Andrew Murray <andrew.murray@arm.com>
Diffstat (limited to 'drivers/pci/msi.c')
-rw-r--r-- | drivers/pci/msi.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index 0884bedcfc7a..f95fe23830f0 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c @@ -1315,22 +1315,6 @@ const struct cpumask *pci_irq_get_affinity(struct pci_dev *dev, int nr) } EXPORT_SYMBOL(pci_irq_get_affinity); -/** - * pci_irq_get_node - return the NUMA node of a particular MSI vector - * @pdev: PCI device to operate on - * @vec: device-relative interrupt vector index (0-based). - */ -int pci_irq_get_node(struct pci_dev *pdev, int vec) -{ - const struct cpumask *mask; - - mask = pci_irq_get_affinity(pdev, vec); - if (mask) - return local_memory_node(cpu_to_node(cpumask_first(mask))); - return dev_to_node(&pdev->dev); -} -EXPORT_SYMBOL(pci_irq_get_node); - struct pci_dev *msi_desc_to_pci_dev(struct msi_desc *desc) { return to_pci_dev(desc->dev); |