[PATCH 2/2] hv_pci: make hv_irq functions static

Dexuan Cui decui at microsoft.com
Tue Aug 23 02:55:53 UTC 2016


> From: devel [mailto:driverdev-devel-bounces at linuxdriverproject.org] On Behalf
> Of sthemmin at exchange.microsoft.com
> Sent: Tuesday, August 23, 2016 1:33
> To: KY Srinivasan <kys at microsoft.com>; Haiyang Zhang
> <haiyangz at microsoft.com>
> Cc: devel at linuxdriverproject.org; Stephen Hemminger
> <sthemmin at microsoft.com>
> Subject: [PATCH 2/2] hv_pci: make hv_irq functions static
> 
> From: Stephen Hemminger <sthemmin at microsoft.com>
> 
> Fix sparse warning because these functions only used in one file.
> 
> Signed-off-by: Stephen Hemminger <sthemmin at microsoft.com>
> ---
>  drivers/pci/host/pci-hyperv.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/pci/host/pci-hyperv.c b/drivers/pci/host/pci-hyperv.c
> index 6955ffdb..1ebe2b0 100644
> --- a/drivers/pci/host/pci-hyperv.c
> +++ b/drivers/pci/host/pci-hyperv.c
> @@ -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);
> --

Reviewed-by: Dexuan Cui <decui at microsoft.com>


More information about the devel mailing list