From: Wei Yongjun Date: Sun, 5 Feb 2017 16:12:34 +0000 (+0000) Subject: serial: 8250_pci: make pciserial_detach_ports() static X-Git-Tag: v5.15~11840^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80cd94e759fd3d7b9fb1a95fa41e2c23e557a525;p=platform%2Fkernel%2Flinux-starfive.git serial: 8250_pci: make pciserial_detach_ports() static 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? Signed-off-by: Wei Yongjun Reviewed-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index 0b63109..2c83fd5 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -3695,7 +3695,7 @@ err_out: } 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;