]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
tty/serial: serial8250_set_divisor() can be static
authorkbuild test robot <fengguang.wu@intel.com>
Sat, 31 Jan 2015 00:58:34 +0000 (08:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Feb 2015 18:11:28 +0000 (10:11 -0800)
drivers/tty/serial/8250/8250_core.c:2503:6: sparse: symbol 'serial8250_set_divisor' was not declared. Should it be static?

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c

index 57d13b058a484af9e555250f0e07891821bbec9f..46ae9fda68b631886cfb8022a88297b8764cefc3 100644 (file)
@@ -2500,7 +2500,7 @@ static unsigned char serial8250_compute_lcr(struct uart_8250_port *up,
        return cval;
 }
 
-void serial8250_set_divisor(struct uart_port *port, unsigned int baud,
+static void serial8250_set_divisor(struct uart_port *port, unsigned int baud,
                            unsigned int quot, unsigned int quot_frac)
 {
        struct uart_8250_port *up = up_to_u8250p(port);