]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
PCI: hv: Make unnecessarily global IRQ masking functions static
authorTobias Klauser <tklauser@distanz.ch>
Mon, 31 Oct 2016 11:04:09 +0000 (12:04 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 31 Oct 2016 18:22:42 +0000 (13:22 -0500)
Make hv_irq_mask() and hv_irq_unmask() static as they are only used in
pci-hyperv.c

This fixes a sparse warning.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: K. Y. Srinivasan <kys@microsoft.com>
drivers/pci/host/pci-hyperv.c

index 763ff87458288180dfd3ab19baf4e52a84fcfef3..06c98695c06c62cb75a50e2bcae97b663858e651 100644 (file)
@@ -755,7 +755,7 @@ static int hv_set_affinity(struct irq_data *data, const struct cpumask *dest,
        return parent->chip->irq_set_affinity(parent, dest, force);
 }
 
-void hv_irq_mask(struct irq_data *data)
+static void hv_irq_mask(struct irq_data *data)
 {
        pci_msi_mask_irq(data);
 }
@@ -770,7 +770,7 @@ void hv_irq_mask(struct irq_data *data)
  * is built out of this PCI bus's instance GUID and the function
  * number of the device.
  */
-void hv_irq_unmask(struct irq_data *data)
+static void hv_irq_unmask(struct irq_data *data)
 {
        struct msi_desc *msi_desc = irq_data_get_msi_desc(data);
        struct irq_cfg *cfg = irqd_cfg(data);