Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3116265ybz; Sun, 3 May 2020 17:43:28 -0700 (PDT) X-Google-Smtp-Source: APiQypIz5/euLc0PDUDYHRWfxZWahAOghfCSUuJ34Ra7CN2h+ynbRqGuWqV32D2q8V7c6+S5ZW6y X-Received: by 2002:a17:906:4ecb:: with SMTP id i11mr12402954ejv.79.1588553008288; Sun, 03 May 2020 17:43:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588553008; cv=none; d=google.com; s=arc-20160816; b=aP9vtyuXy/M5uFQZ59xZC9nYBtb8mAYDRmK/mEQrFP0kThq5a2N/Mh/U8LkKtYsK5c hrEP6dDCIfoGyVpjaQSM0n4d4JJglYlw1BhPt799IaFtLo1A8gpwrfXHaPjeEkdBHJjB EdO8hNK2Y+0ykydUQISGNfB05rjgGA7qcD01PV1mNGUJWOGKzochzEplPK5IueufpNv2 2jwQf1o48h1Xep36LjIOO48/wrQALVGz/JDxSorRQpUbQXisv+ZxZYxhcJg5+aFMpevp RscjLJMNHArhzMo+K2GmdHwU8wWFFypb3etscDnv3dw7U5eROMxqxfKCIBlkpimYW167 kpMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=PhoRsdVUpxSefTN3nA18NxBE6Bc3GIrO3qESKoaBeLw=; b=S+3KBbNzvoy8h9TtX2PAzSU+VG3ZlC9mGG66FociP6SBhMa8bhUyRyyScqXV/T+0QP 6gsMPibnrWG2//CyfoK++6s0Z0ox+GG6HQ+4HVZfcq0l0Qp2474YVBE90n1UC21DL3rC ccnLU7gV370giXSM/oh6/FHdqztATFaPj26OcarwsM0GXCp/Nyfaq2069TYmmb0hgPgt YAAGPswuEfA7EZzwMn4F7oca3xsNgRXkSgvXi2uqqK20AnqGS9T+es6ga0UymNu5mxCW FypM7zHV5aP3+5J6qXiK00QwzwL2R9f/weGjqVvD4834PgceREK79r+2LwK+POnHQnse rVlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=eiIirED3; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b22si559909eds.109.2020.05.03.17.43.04; Sun, 03 May 2020 17:43:28 -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=@joelfernandes.org header.s=google header.b=eiIirED3; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727030AbgEDAli (ORCPT + 99 others); Sun, 3 May 2020 20:41:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726842AbgEDAlh (ORCPT ); Sun, 3 May 2020 20:41:37 -0400 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94AD5C061A0E for ; Sun, 3 May 2020 17:41:37 -0700 (PDT) Received: by mail-qt1-x843.google.com with SMTP id z90so12705080qtd.10 for ; Sun, 03 May 2020 17:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=PhoRsdVUpxSefTN3nA18NxBE6Bc3GIrO3qESKoaBeLw=; b=eiIirED3qHhOWipGjeDdkfgS6x9vBM5QEEOf5fRffYbj9YWUhCyermSfNDb9pxgsaL RIsNfefUqTcEkuOc2GNAnhFoEyZOcoLG8zd6vtNEyf3FvwpXOyxGMNGw9P3XhM3utgRr nOGkEiElDA/CQ+ecaVClVdNWF9en8Q5WFMcZs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=PhoRsdVUpxSefTN3nA18NxBE6Bc3GIrO3qESKoaBeLw=; b=q++AAbs4K2pBfoIjwksiFPNWokVLZ/Wk0N+11BZibx3so8k9Xk47FTtHSts+utJAh8 ceWj91CrEehFw6smDogXIJH70oaB8GSLFqdvJm6KFAIRrHrunSGoPkxOIx/wRs6GnzBS eLXZlEwk98+RX5XUgIRQ9b0C4mY2OUGJVAivWkXEVxfvaR7+4ItR7LBa5V1lX4zG9c+X 8ndon2QfzCXiYstMhXRRIxCwi0wTKs+3lWM3PlC3OiW5GNTasf1MtYRxaOqdxdfrasUb OHgC2QQI3f2b8D+zpDB2ls4lAlT1GyT532wqX5Dr3ODRJmYoov4QJWCSAFGnyWnkyRgY pGFw== X-Gm-Message-State: AGi0PuYpf2FM/iAWyMVfaBjjUGMI1Pz1jSQ5O4eaTDdssAWUc8IO1ljx YI8Skz923W4c8/3sheJvELEsKg== X-Received: by 2002:ac8:44aa:: with SMTP id a10mr15083681qto.230.1588552896694; Sun, 03 May 2020 17:41:36 -0700 (PDT) Received: from localhost ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id t14sm9407295qtj.71.2020.05.03.17.41.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 May 2020 17:41:36 -0700 (PDT) Date: Sun, 3 May 2020 20:41:35 -0400 From: Joel Fernandes To: "Paul E. McKenney" Cc: Joe Perches , "Uladzislau Rezki (Sony)" , LKML , linux-mm@kvack.org, Andrew Morton , "Theodore Y . Ts'o" , Matthew Wilcox , RCU , Oleksiy Avramchenko Subject: Re: [PATCH 03/24] rcu/tree: Use consistent style for comments Message-ID: <20200504004135.GF212435@google.com> References: <20200428205903.61704-1-urezki@gmail.com> <20200428205903.61704-4-urezki@gmail.com> <20200501190555.GB7560@paulmck-ThinkPad-P72> <93f764ad743082f2bbab4595eb892c2004e61b44.camel@perches.com> <20200503234400.GB197097@google.com> <20200504002309.GD2869@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200504002309.GD2869@paulmck-ThinkPad-P72> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 03, 2020 at 05:23:09PM -0700, Paul E. McKenney wrote: > On Sun, May 03, 2020 at 07:44:00PM -0400, Joel Fernandes wrote: > > On Fri, May 01, 2020 at 01:52:46PM -0700, Joe Perches wrote: > > > On Fri, 2020-05-01 at 12:05 -0700, Paul E. McKenney wrote: > > > > On Tue, Apr 28, 2020 at 10:58:42PM +0200, Uladzislau Rezki (Sony) wrote: > > > > > Simple clean up of comments in kfree_rcu() code to keep it consistent > > > > > with majority of commenting styles. > > > [] > > > > on /* */ style? > > > > > > > > I am (slowly) moving RCU to "//" for those reasons. ;-) > > > > > > I hope c99 comment styles are more commonly used soon too. > > > checkpatch doesn't care. > > > > > > Perhaps a change to coding-style.rst > > > --- > > > Documentation/process/coding-style.rst | 5 +++++ > > > 1 file changed, 5 insertions(+) > > > > > > diff --git a/Documentation/process/coding-style.rst b/Documentation/process/coding-style.rst > > > index acb2f1b..fee647 100644 > > > --- a/Documentation/process/coding-style.rst > > > +++ b/Documentation/process/coding-style.rst > > > @@ -565,6 +565,11 @@ comments is a little different. > > > * but there is no initial almost-blank line. > > > */ > > > > > > +.. code-block:: c > > > + > > > + // Single line and inline comments may also use the c99 // style > > > + // Block comments as well > > > + > > > It's also important to comment data, whether they are basic types or derived > > > types. To this end, use just one data declaration per line (no commas for > > > multiple data declarations). This leaves you room for a small comment on each > > > > Yeah that's fine with me. This patch just tries to keep it consistent. I am > > Ok with either style. > > My approach has been gradual change. Big-bang changes of this sort > cause quite a bit of trouble. So I use "//" in new code and (sometimes) > convert nearby ones when making a change. Ok thanks for the guidance on that, will follow similar conversion strategy as well. thanks, - Joel