Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1395136pxj; Fri, 21 May 2021 13:11:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOahmJs2xZQQRRJBpl8gjKJkVOyIlhR0F0LBrZ12yqs0U94TnEH/ZDjxfB4CeDpWdgJumM X-Received: by 2002:a17:906:e09:: with SMTP id l9mr11704652eji.528.1621627862247; Fri, 21 May 2021 13:11:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621627862; cv=none; d=google.com; s=arc-20160816; b=X2IC2++t/8bmL2KmB4i3sODnPl69N9O+JO0LXUztV9gbjhYruAvz96fdi6uWY2+yTD AMarUGOf0bjkDWevl0cJOdB1DSKbvkPAEIyo2qOeoHgsuTe9FY+G9kkqp3+gEg/4gg+T UV6bp9tUomFkTWY11xjvAZhOM5QV6f9/H6SCsI4VHhier4zY/7TgKlL7QjlxOIH4+70G qbxb/8JiiFOnEiNHz/omusBRXOWxYlh6D4XFtHyiVw0rRDRsFMzzFSmW5ILIGVGkaJZW fVhPS79/Gf7dsFqYiU/koU7da0dhBIGSSr91eaXKExqBGyh0u1Sie5/uv9vWKCBVEXFM QcCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qpFHKPGGpbZzpTrfkshwASArvA4Uw0zZJJpSc95RPHc=; b=QVccoiZEL25b3YjFXhxf7IgxpvGk5k0THBQF/zgzLopzcNdtnRSxXpWrxdTaF9qbGz NM3ASuPqb1PlWYGTNruTAelTrzl5tXlnf8AGdSmiSHd2/CN9tye5dzFWxjYUB0d0C6um zZKxAWHulAP9bR/oTDS9sLROVlpjHXtWZJyh1Y1GigAaF9HQhb285b9TNl3viS4IxyIX +NXaAF3PNjW3Wqt450wDnYCn7JbYl41ZyXOvBepSm3Aim6/+9DrE0PcCwdYKenx6roGU UyNgafkvm7LEW+jYos3swihUQJq/cjBUYt1/3/wHJm6zTtUZodGKNM3i1IqvBke5kCPj va3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fP5rQdvO; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si7203849ede.603.2021.05.21.13.10.39; Fri, 21 May 2021 13:11:02 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fP5rQdvO; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233704AbhEUIpl (ORCPT + 99 others); Fri, 21 May 2021 04:45:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:34364 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230442AbhEUIpj (ORCPT ); Fri, 21 May 2021 04:45:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2551C61132; Fri, 21 May 2021 08:44:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621586657; bh=fY4e7ykqhvSoW1RpAc1F8J1V9nk15p3JpTYuVVpm084=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fP5rQdvOGkUlGaxvZZRkFpsiBQs84cK1wUJ26p1FuLErCL9f5W2Amjp9j6M5WiXhR fkbrdZ4Pr8UrJzli4BFy8X2iazL3l2h11JeklyzjIcNDjnvbwTlF0yEDM6UKEb5OTz OQ/6nnPyVk4ID5JICoD4dEPHVlQuv9/UcTitN3kHSL2EWnF90VjJFfP+ZGV/X7Zq57 XvMvr+IpVK9lABBN+43up9EPKtI0rENzkn2TpuwpeqM7jrDIQFCsnIAKjc6K6Heuhu hanoHoG8GxZx/J2htkxVwM1VHjVI4h9Gp9Qz2gVugX2F9KgbrmLEocz0r5xafyRq3e 5Dv8lrYHfS6EQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1lk0lU-000592-T9; Fri, 21 May 2021 10:44:17 +0200 Date: Fri, 21 May 2021 10:44:16 +0200 From: Johan Hovold To: Joe Perches Cc: Xiaofei Tan , gregkh@linuxfoundation.org, jirislaby@kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linuxarm@openeuler.org Subject: Re: [PATCH 6/9] tty: hvc_console: Fix coding style issues of block comments Message-ID: References: <1621233433-27094-1-git-send-email-tanxiaofei@huawei.com> <1621233433-27094-7-git-send-email-tanxiaofei@huawei.com> <3173f7f10e0c212c8c828d9ca4450927f757e7d2.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3173f7f10e0c212c8c828d9ca4450927f757e7d2.camel@perches.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 20, 2021 at 08:21:39AM -0700, Joe Perches wrote: > On Thu, 2021-05-20 at 10:21 +0200, Johan Hovold wrote: > > On Tue, May 18, 2021 at 12:01:22PM +0800, Xiaofei Tan wrote: > > > On 2021/5/17 22:15, Johan Hovold wrote: > > > > 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. > > > > This is the preferred style outside of networking. > > > > > BTW, How about add the '/*' check into checkpatch.pl? > > > > Checkpatch already has too many checks IMO > > I sometimes agree. What checkpatch messages do you think are excessive? The "unsigned" -> "unsigned int" one comes to mind (at least when running with -f). Most of the questionable ones are probably hidden behind --subjective, but due to the unfortunate alias of that switch as --strict, people don't get the message to use their own judgement and instead think they'll get a gold star for "full compliance". So my issue isn't so much which checkpatch itself rather than with how it is being used and promoted, for example, to introduce aspiring developers to kernel development in staging. It's a great tool to run on your own patches before submission (as was originally intended judging by the apt name), but if I could change something I'd drop the --strict alias for the --subjective checks and disable that switch for staging. Perhaps also add a warning or similar when running with -f on in-tree code outside of staging. > > and I'm a bit surprised that > > it doesn't check this already. Perhaps it's because you used the -f to > > run checkpatch on in-kernel code, which you should not. > > Likely not. If it was run on a suggested patch, checkpatch doesn't emit > many messages on unmodified patch context lines. And it shouldn't. Right, but here it appears to have been run using -f on in-tree code. You could still check for this when adding new comments, and perhaps it already does. > > it's just that you > > introduce noise in the logs and do pointless changes of context which > > makes it harder to use tools like git blame and makes backporting harder > > for no good reason. > > Pretty pointless metric IMO. Context changes in comments are mostly harmless. This isn't just about comment changes but the whole array of white-space shifting and other pendantry. And also reformatted comments makes it harder to do code forensics. > IMO: backporting of these sorts non-bug fix changes is done _far_ too often. I have yet to see AUTOSEL pick up white-space cleanups but there are certainly a few non-bug-fix patches currently being backported. Johan