Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1375076pxj; Wed, 19 May 2021 04:50:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMoZ0FgX6nWo7kAJa0CjREpI0C+RtTHtGIkwES4dvL7JkOFl3cQIGVWZu/16Sh8vzBRWFg X-Received: by 2002:a17:906:606:: with SMTP id s6mr10210048ejb.206.1621425012403; Wed, 19 May 2021 04:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621425012; cv=none; d=google.com; s=arc-20160816; b=vAI+PNCJb3ZOTENtBu25XolgoGB6Lgw22OQ//ck920ZEo85frv2yTl4BTfH2LdT0UQ jZkjvjJcB2F+DyAn3gUYWZAhj9zyTbyOYzKle3XQU/MQzy77H4gXAfcYAoOeI+lBimtk uLqFzMHPwZ+mI4VgtHypRKpOa/KStHuvFjZ1APMT43vx+zNjwbG4IgMThMbnUeh3HZ6A cJWRaHVCOHnEVbjLcNyJxBu4i//yogqo+A7iVBbm6pJVgr9zz6IOUBPdOC6XfY++rLNx CcA4WXP490h2kXbMjoY0LhaIV8Dgyhh8pWoSPFnaTv/DSmVlVPQqzTs14I9xzlsiP29I vlUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=Gmu0nnQVm0sg+8cj359N05cy6hIZFq9Uumv4Ns+7yqs=; b=fdEGozDKVtDkaPvLSUi4dM7vaAPbNpE5q4C7sLez0yUADQmrScPPRxPF66O+zN5ULL iX4lp4T3wL3EQAIHsPVo1xCdbGxelXwetLcU72af3BJE8LtAa2uI2MMNhCZ0+jGT7I/y IA66NDY8ORcyZQ74zq2Tzv+9zg4z9rCz+xj6yF6MWaXuhHvUzgHrE8Vf528PT/pWQ38k JxRYUTby+/YENYlCzH0W0SvKftV0yf7G9+KBFEuauj8AwqVb0czEekplJcq7/NfTrxES mo57OmrBMJngIx3BUgRT3rXeSzU1Px/NdEiJDn4g9+nhHIl888s6xAp0MKNiPg0xTtRE /9UA== 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 se5si11755412ejb.554.2021.05.19.04.49.49; Wed, 19 May 2021 04:50:12 -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 S232077AbhERECn (ORCPT + 99 others); Tue, 18 May 2021 00:02:43 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:3014 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230378AbhERECm (ORCPT ); Tue, 18 May 2021 00:02:42 -0400 Received: from dggems705-chm.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Fkj183rCwzlfn2; Tue, 18 May 2021 11:59:08 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggems705-chm.china.huawei.com (10.3.19.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 18 May 2021 12:01:23 +0800 Received: from [127.0.0.1] (10.40.192.162) 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; Tue, 18 May 2021 12:01:23 +0800 Subject: Re: [PATCH 6/9] tty: hvc_console: Fix coding style issues of block comments To: Johan Hovold References: <1621233433-27094-1-git-send-email-tanxiaofei@huawei.com> <1621233433-27094-7-git-send-email-tanxiaofei@huawei.com> CC: , , , , From: Xiaofei Tan Message-ID: Date: Tue, 18 May 2021 12:01:22 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.40.192.162] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) 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 Hi Johan, Thanks for reviewing this patch. On 2021/5/17 22:15, Johan Hovold wrote: > On Mon, May 17, 2021 at 02:37:10PM +0800, Xiaofei Tan wrote: >> 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. >> + */ > > How is this an improvement? First, the multi-line comment style is > > /* > * ... > */ > Yes, mostly we use this style. I can follow it if new version is needed. BTW, How about add the '/*' check into checkpatch.pl? > Second, that sentence is not capitalised so why do add a period? > How about capitalize the sentence, or just remove the period ? > Third, why are you sending checkpatch.pl cleanups for files outside of > staging? > I'm sorry, Is this a rule, or kind of tradition? I've never heard of this before. > Unless doing some real changes to the files in question as well this is > mostly just churn and noise that makes it harder to backport fixes and > do code forensics for no real gain. > I'm not sure. But if cleanup patches have made it hard to backport fixes and do code forensics, then the code quality may not be good enough. > Greg may disagree, but I don't think we should be encouraging this kind > of patches. > > Johan > > . >