Re: [PATCH -next] serial: 8250_pci: make pciserial_detach_ports() static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2017-02-05 at 16:12 +0000, Wei Yongjun wrote:
> From: Wei Yongjun <weiyongjun1@xxxxxxxxxx>
> 
> Fixes the following sparse warning:
> 
> drivers/tty/serial/8250/8250_pci.c:3916:6: warning:
>  symbol 'pciserial_detach_ports' was not declared. Should it be
> static?
> 

FWIW:
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

> Signed-off-by: Wei Yongjun <weiyongjun1@xxxxxxxxxx>
> ---
>  drivers/tty/serial/8250/8250_pci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/tty/serial/8250/8250_pci.c
> b/drivers/tty/serial/8250/8250_pci.c
> index f7ee4e0..35693d8 100644
> --- a/drivers/tty/serial/8250/8250_pci.c
> +++ b/drivers/tty/serial/8250/8250_pci.c
> @@ -3913,7 +3913,7 @@ pciserial_init_ports(struct pci_dev *dev, const
> struct pciserial_board *board)
>  }
>  EXPORT_SYMBOL_GPL(pciserial_init_ports);
>  
> -void pciserial_detach_ports(struct serial_private *priv)
> +static void pciserial_detach_ports(struct serial_private *priv)
>  {
>  	struct pci_serial_quirk *quirk;
>  	int i;
> 

-- 
Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Intel Finland Oy
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux