diff mbox

[3/4] PCI: hv: Make unnecessarily global IRQ masking functions static

Message ID 1488908126-2221-4-git-send-email-tim.gardner@canonical.com
State New
Headers show

Commit Message

Tim Gardner March 7, 2017, 5:35 p.m. UTC
From: Tobias Klauser <tklauser@distanz.ch>

BugLink: http://bugs.launchpad.net/bugs/1670518

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>
(cherry picked from commit 542ccf4551fa019a8ae9dfb7c8cd7e73a3d7e614)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
---
 drivers/pci/host/pci-hyperv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/pci/host/pci-hyperv.c b/drivers/pci/host/pci-hyperv.c
index 10bc3a0..7ff8a48 100644
--- a/drivers/pci/host/pci-hyperv.c
+++ b/drivers/pci/host/pci-hyperv.c
@@ -758,7 +758,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);
 }
@@ -773,7 +773,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);