提交 542ccf45 编写于 作者: T Tobias Klauser 提交者: Bjorn Helgaas

PCI: hv: Make unnecessarily global IRQ masking functions static

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: NTobias Klauser <tklauser@distanz.ch>
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
Acked-by: NK. Y. Srinivasan <kys@microsoft.com>
上级 1001354c
...@@ -755,7 +755,7 @@ static int hv_set_affinity(struct irq_data *data, const struct cpumask *dest, ...@@ -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); 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); pci_msi_mask_irq(data);
} }
...@@ -770,7 +770,7 @@ void hv_irq_mask(struct irq_data *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 * is built out of this PCI bus's instance GUID and the function
* number of the device. * 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 msi_desc *msi_desc = irq_data_get_msi_desc(data);
struct irq_cfg *cfg = irqd_cfg(data); struct irq_cfg *cfg = irqd_cfg(data);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册