From: Zihao Tang <tangzihao1@xxxxxxxxxxxxx> Fix the following checkpatch warnings: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #39: FILE: ./drivers/tty/serial/earlycon-arm-semihost.c:39: +static void smh_write(struct console *con, const char *s, unsigned n) WARNING: Missing a blank line after declarations #42: FILE: ./drivers/tty/serial/earlycon-arm-semihost.c:42: + struct earlycon_device *dev = con->data; + uart_console_write(&dev->port, s, n, smh_putc); Signed-off-by: Zihao Tang <tangzihao1@xxxxxxxxxxxxx> Signed-off-by: Jay Fang <f.fangjian@xxxxxxxxxx> --- drivers/tty/serial/earlycon-arm-semihost.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/earlycon-arm-semihost.c b/drivers/tty/serial/earlycon-arm-semihost.c index fa096c1..3db23c3 100644 --- a/drivers/tty/serial/earlycon-arm-semihost.c +++ b/drivers/tty/serial/earlycon-arm-semihost.c @@ -36,9 +36,10 @@ static void smh_putc(struct uart_port *port, int c) #endif } -static void smh_write(struct console *con, const char *s, unsigned n) +static void smh_write(struct console *con, const char *s, unsigned int n) { struct earlycon_device *dev = con->data; + uart_console_write(&dev->port, s, n, smh_putc); } -- 2.7.4