Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2584689pxj; Mon, 17 May 2021 05:15:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmV6XTxo/OGgA6yB4pzUS66gebIaUGZzczanj+GQj0aDWry8tdV8zjZV7xHsayGQuob9t4 X-Received: by 2002:a05:6e02:2149:: with SMTP id d9mr33930096ilv.162.1621253708858; Mon, 17 May 2021 05:15:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621253708; cv=none; d=google.com; s=arc-20160816; b=UbXo8ZF6D2JWjq4HGycz6A9LmgHflACDCjX7pGDXHbOJNWHOP3aoHLqg0kYIsLkwPP MN12/u1VUXgOSAB4qmuF6WAV612pjAsOtkSedUWr8c5F8qZ/XMBrvM+HMPlXGZjjpAzj 1urE+Jc0HxwQCfITM2aenLHgVT9E1+sPr7MXDK7LTjIldG9sHuBW2Tqp69Vm87KJuRpO gpFL1kKXKFMpDSjUgZ5kbW/Zsl2tP5QdyFee5X4sDaUYeDMhjcJpWmwzPeNlLH0pWfLk SXTua1qFlcXxLkBzSY/azss+kemJzbQwQDlwMMUL8VMPhhwdcKq5YMk2IKLFEnfc2GR9 kf4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=YuWoC9M+lNTw01jS2XmoKNdGqlFF0Yu5Ev7B8cRQEB0=; b=dh5WNzWPD6Y/5p/HxtSCr7BixUu+/VKHXeZlNGAoRIuwD9719L/hy3V8qRLGBkFJ2P Fg7PoUmHuEO+KOk1h+/HW8ZkhNSJM7VLBThJN4hO4Jy+4ji8iFgJjft2WYwoEfBPBG+x 3Ln8Gi3zt9+WB+LeSV9XaWp8ExEGv5iNKW+ZV0cCNxRiZ/IwCrea7Y132vvB31hraHRP d0W9s9mK0P8XCTKfwCarFp3o8GWl86EbL+nwMiJIxtVgjvPBwJ9kehP+ZOQlpQJIsHIS cD9YFxrovPC+Np+fSKkVLPJFHmjPOfP6wnr/+q1VrGipLEyH/nMpxSPNLQaClEi+g6Vn V9fQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q8si20056051ilv.144.2021.05.17.05.14.55; Mon, 17 May 2021 05:15:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235143AbhEQGmL (ORCPT + 99 others); Mon, 17 May 2021 02:42:11 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3705 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233595AbhEQGlx (ORCPT ); Mon, 17 May 2021 02:41:53 -0400 Received: from dggems702-chm.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Fk8Zf758Yz16R37; Mon, 17 May 2021 14:37:46 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggems702-chm.china.huawei.com (10.3.19.179) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 17 May 2021 14:40:31 +0800 Received: from localhost.localdomain (10.67.165.24) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 17 May 2021 14:40:30 +0800 From: Xiaofei Tan To: , CC: , , , Xiaofei Tan Subject: [PATCH 6/9] tty: hvc_console: Fix coding style issues of block comments Date: Mon, 17 May 2021 14:37:10 +0800 Message-ID: <1621233433-27094-7-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1621233433-27094-1-git-send-email-tanxiaofei@huawei.com> References: <1621233433-27094-1-git-send-email-tanxiaofei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix coding style issues of block comments, reported by checkpatch.pl. Besides, add a period at the end of the sentenses. Signed-off-by: Xiaofei Tan --- drivers/tty/hvc/hvc_console.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/tty/hvc/hvc_console.c b/drivers/tty/hvc/hvc_console.c index 39018e5..a61cdf0 100644 --- a/drivers/tty/hvc/hvc_console.c +++ b/drivers/tty/hvc/hvc_console.c @@ -177,7 +177,8 @@ static void hvc_console_print(struct console *co, const char *b, r = cons_ops[index]->put_chars(vtermnos[index], c, i); if (r <= 0) { /* throw away characters on error - * but spin in case of -EAGAIN */ + * but spin in case of -EAGAIN. + */ if (r != -EAGAIN) { i = 0; } else { @@ -484,7 +485,8 @@ static int hvc_push(struct hvc_struct *hp) return 0; } /* throw away output on error; this happens when - there is no session connected to the vterm. */ + * there is no session connected to the vterm. + */ hp->n_outbuf = 0; } else hp->n_outbuf -= n; @@ -707,7 +709,8 @@ static int __hvc_poll(struct hvc_struct *hp, bool may_sleep) /* XXX should support a sequence */ if (buf[i] == '\x0f') { /* ^O */ /* if ^O is pressed again, reset - * sysrq_pressed and flip ^O char */ + * sysrq_pressed and flip ^O char. + */ sysrq_pressed = !sysrq_pressed; if (sysrq_pressed) continue; @@ -749,7 +752,8 @@ static int __hvc_poll(struct hvc_struct *hp, bool may_sleep) if (read_total) { /* Activity is occurring, so reset the polling backoff value to - a minimum for performance. */ + * a minimum for performance. + */ timeout = MIN_TIMEOUT; tty_flip_buffer_push(&hp->port); @@ -1037,7 +1041,8 @@ static int hvc_init(void) tty_set_operations(drv, &hvc_ops); /* Always start the kthread because there can be hotplug vty adapters - * added later. */ + * added later. + */ hvc_task = kthread_run(khvcd, NULL, "khvcd"); if (IS_ERR(hvc_task)) { printk(KERN_ERR "Couldn't create kthread for console.\n"); -- 2.8.1