From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no 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 C9663C28CBC for ; Sun, 3 May 2020 23:44:03 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 840F1206F0 for ; Sun, 3 May 2020 23:44:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b="tlwDo1UF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 840F1206F0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=joelfernandes.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 117668E0005; Sun, 3 May 2020 19:44:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0C8A08E0001; Sun, 3 May 2020 19:44:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EF8328E0005; Sun, 3 May 2020 19:44:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0174.hostedemail.com [216.40.44.174]) by kanga.kvack.org (Postfix) with ESMTP id D40688E0001 for ; Sun, 3 May 2020 19:44:02 -0400 (EDT) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 9A76E18F50 for ; Sun, 3 May 2020 23:44:02 +0000 (UTC) X-FDA: 76777038324.26.cork64_405e06b0c350e X-HE-Tag: cork64_405e06b0c350e X-Filterd-Recvd-Size: 4629 Received: from mail-qv1-f65.google.com (mail-qv1-f65.google.com [209.85.219.65]) by imf37.hostedemail.com (Postfix) with ESMTP for ; Sun, 3 May 2020 23:44:02 +0000 (UTC) Received: by mail-qv1-f65.google.com with SMTP id v10so7558871qvr.2 for ; Sun, 03 May 2020 16:44:02 -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=DB+JYuSo5NfqsXCq3zyrJCZb3Y4yeKrCLHhEr8ezCWA=; b=tlwDo1UFFjggk18KKshuuXk5JVVs+U2gr7+t0nvL8/AG/9SmGl0NvMkoHs5Je1ZwzH Y2w/huQ1gDu2Bi5JCmcrBJtYTlKmfUu8pGUkl0tu2j+U92RxjwYM2/0LK1yg7tcsDjZj rwCqaUUkEZZc1e7btDT6fPzXnn+tkhZSfOir4= 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=DB+JYuSo5NfqsXCq3zyrJCZb3Y4yeKrCLHhEr8ezCWA=; b=O4p5oTgqCbwFgCHOPF9LjEqR9mmHmeM8qvr82YIis+WFSDgJ0VvnEbwg8hu0kYonfE gOZrGVPxpswUoNcP4Ym/qDkboKycFycRDQGVdvkepTYo6XtIvg+kBzaqa7G+5qulgfFO aOIjodocREY2SOJ1V8QFGWOWnTKU6UJfC1NB0VshgiveeZxMW7fkgfnRPmPBZcurPah2 9dFb268Fg+kle71Z5F0kGnnsZIUgqTfgDJ2eRuHlPrg0wOshAC5+NRKlCyU1kAr63kar q/ULKIyzkG5Y1tvMlHm67AkiC4aZVEqn/RJRgBDyumztVOticKrC0LIoRn7BC94ThGGk LNzg== X-Gm-Message-State: AGi0PuYiuA794nJYTduYG+TLUIKxQeLSXJIOhjt7uOMo+NpJxKJIF3qE mrQPhP+pcCp++TL9LNh8VkcToW1gR0g= X-Google-Smtp-Source: APiQypJVVPJ+XIfOn2dfpDsqfHoDLQL9dpTm5PdKz0C5NHGQBgQNETFGjA9G1W/RD/S/0iXkjOwIlw== X-Received: by 2002:a0c:ba17:: with SMTP id w23mr14508596qvf.176.1588549441596; Sun, 03 May 2020 16:44:01 -0700 (PDT) Received: from localhost ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id n10sm8444942qkk.105.2020.05.03.16.44.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 May 2020 16:44:00 -0700 (PDT) Date: Sun, 3 May 2020 19:44:00 -0400 From: Joel Fernandes To: Joe Perches Cc: paulmck@kernel.org, "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: <20200503234400.GB197097@google.com> References: <20200428205903.61704-1-urezki@gmail.com> <20200428205903.61704-4-urezki@gmail.com> <20200501190555.GB7560@paulmck-ThinkPad-P72> <93f764ad743082f2bbab4595eb892c2004e61b44.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <93f764ad743082f2bbab4595eb892c2004e61b44.camel@perches.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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. thanks, - Joel