Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1072630ybl; Wed, 4 Dec 2019 16:26:10 -0800 (PST) X-Google-Smtp-Source: APXvYqw1FeIeknyzhiIYfYQ3zU2UyYOULbod+al1pSM6LwYERxYIaoTIiHkzUzX6q6dXghWdBaRn X-Received: by 2002:a9d:24a6:: with SMTP id z35mr4486771ota.343.1575505569896; Wed, 04 Dec 2019 16:26:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575505569; cv=none; d=google.com; s=arc-20160816; b=ZZrV5PYVLLczK/+EuccS468tLJiQ4Od8q1gKaIat1DWZsFBuaeclblPd3yIA7mLkD8 cVy2UtFYiWT9jjx80Hp+vQn0JwCrLzKvboFCvUiQ28psSDPpN3wVJUzCXITo9gjrRJcV u9W/STjORM/DWNPcqs8yhoGsQy+BWYWcXH/3LndTNqeuNuIeqsmldlZan1w12xL6zWA4 s4P1SxUO/VqBq7v7Emn6h9DUV9g6F8gkpucl2rhYWl904iohEThWtSeVnbef70l2XF5D hdG6Eg0XVvSHbgYiO3G3wt1J1FBPskRin0BLxNM8H5AKeX5mPapPLTHfCTlBTOhxw1zL Jflg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=/eUMnA2bdVmJ3Ra2dDs3g0o3HPorR66dKJgFr3+nirA=; b=rdwuNLKZzT2jDzix1593ooVqaQKYCiEMXswjeyM9ULdxSno2Bx83RmrUgboYzpcg55 44IurYYEBWfAr1HRt6w9zZly79SvLD/Z7mMi9rS61Di52AtEA1GCbKCpmwN83KFmE4z2 1yZnPrYB3fiX84xkOH5VpEdrl1DVOBgk0RDNwbkPzjv9J9RsqHiJb3L/6Yx4BTaOWqLm yCiYxhhoq7ZMi4EqxkZxvpS0xKiOZJxIRAk3dJ/oj0F80aQcbcMKgTrUlbyIH1GiHgEy u0Kaz4G0nxti0fBReirIi05CYGfuWyDdFNiVAExlY/CwKtWwf7Ldle2nbbiMFe0Zx1qQ EoRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ryvX+Chr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id v21si3075673otj.282.2019.12.04.16.25.57; Wed, 04 Dec 2019 16:26:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ryvX+Chr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728757AbfLEAZW (ORCPT + 99 others); Wed, 4 Dec 2019 19:25:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:38660 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728692AbfLEAZT (ORCPT ); Wed, 4 Dec 2019 19:25:19 -0500 Received: from paulmck-ThinkPad-P72.home (50-39-105-78.bvtn.or.frontiernet.net [50.39.105.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6C6F221823; Thu, 5 Dec 2019 00:25:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575505518; bh=T/Kj7aasoT8tfhY99yWbDoxlX9qhhOFSHcc6kCya+w4=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=ryvX+ChrgSSB1Io3Gi7dVPJWmmRMoJY7/wQgtM0WahgDcb7IZkre4B1T7fdhsr3Tm VF8Qw6spRW2HMCohpoeq+MH5/VK6x+F+Tf3OpsgsjoeMMRsSMTnTA8BfQb246fKlUL fF5OD8qLXHdSujHPiANYICYblDdT3VPUADY062/M= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 3EA8E3522922; Wed, 4 Dec 2019 16:25:18 -0800 (PST) Date: Wed, 4 Dec 2019 16:25:18 -0800 From: "Paul E. McKenney" To: madhuparnabhowmik04@gmail.com Cc: joel@joelfernandes.org, rcu@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: [PATCH] Include: Linux: rculist_nulls: Add docbook comment headers Message-ID: <20191205002518.GP2889@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20191204120357.11658-1-madhuparnabhowmik04@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191204120357.11658-1-madhuparnabhowmik04@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 04, 2019 at 05:33:57PM +0530, madhuparnabhowmik04@gmail.com wrote: > From: Madhuparna Bhowmik > > This patch adds docbook comment headers for hlist_nulls_first_rcu > and hlist_nulls_next_rcu in rculist_nulls.h. > > Signed-off-by: Madhuparna Bhowmik > --- Good to see, thank you! A few grammar nits below -- could you please update and re-send? Thanx, Paul > include/linux/rculist_nulls.h | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/include/linux/rculist_nulls.h b/include/linux/rculist_nulls.h > index 517a06f36c7a..d796ef18ec52 100644 > --- a/include/linux/rculist_nulls.h > +++ b/include/linux/rculist_nulls.h > @@ -38,9 +38,17 @@ static inline void hlist_nulls_del_init_rcu(struct hlist_nulls_node *n) > } > } > > +/** > + * hlist_nulls_first_rcu - returns the first element of the hash list. > + * @head: the head for your list. Could you please say something like "The head of the list."? Just to keep point of view more consistent through the documentation. > + */ > #define hlist_nulls_first_rcu(head) \ > (*((struct hlist_nulls_node __rcu __force **)&(head)->first)) > > +/** > + * hlist_nulls_next_rcu - returns the element of the list next to @node. Here, could you please change "next to" to "after"? This removes the ambiguity where both the prior and the subsequent elements might be thought of as "next to". > + * @node: Element of the list. > + */ > #define hlist_nulls_next_rcu(node) \ > (*((struct hlist_nulls_node __rcu __force **)&(node)->next)) > > -- > 2.17.1 >