From patchwork Tue May 18 01:57:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jay Fang X-Patchwork-Id: 441616 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD6CFC43616 for ; Tue, 18 May 2021 01:57:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A017E613B9 for ; Tue, 18 May 2021 01:57:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346146AbhERB6q (ORCPT ); Mon, 17 May 2021 21:58:46 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3573 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346161AbhERB6p (ORCPT ); Mon, 17 May 2021 21:58:45 -0400 Received: from dggems704-chm.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FkfFZ1nm7zmVG6; Tue, 18 May 2021 09:54:42 +0800 (CST) Received: from dggeme758-chm.china.huawei.com (10.3.19.104) by dggems704-chm.china.huawei.com (10.3.19.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Tue, 18 May 2021 09:57:26 +0800 Received: from localhost.localdomain (10.69.192.56) by dggeme758-chm.china.huawei.com (10.3.19.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 18 May 2021 09:57:26 +0800 From: Jay Fang To: CC: , , , Subject: [PATCH 11/11] tty: serial: earlycon-arm-semihost : Fix some coding style issuses Date: Tue, 18 May 2021 09:57:18 +0800 Message-ID: <1621303038-12062-12-git-send-email-f.fangjian@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1621303038-12062-1-git-send-email-f.fangjian@huawei.com> References: <1621303038-12062-1-git-send-email-f.fangjian@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggeme758-chm.china.huawei.com (10.3.19.104) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org From: Zihao Tang 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 Signed-off-by: Jay Fang --- 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); }