Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1767139ybl; Thu, 5 Dec 2019 06:43:20 -0800 (PST) X-Google-Smtp-Source: APXvYqwK1SE3lp1hIGjyEG6WqHR39WwIT1zHyxGTQonbFs8glQ0RTjxSsOkWtogJLMM7V3YlH0kb X-Received: by 2002:a9d:67c1:: with SMTP id c1mr6522105otn.20.1575557000704; Thu, 05 Dec 2019 06:43:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575557000; cv=none; d=google.com; s=arc-20160816; b=bgkDKJ+kpsJEoHa4xO8u3WFxdGybM+ZeE/erWShNOI0/q3uS23Z/DjDBNRLfBl1Zem 8hXliaET495b8WSHrCikrkDu++pC4vN6pYf8lYI6GPPe1T/WwfIjcp9Gf/+7TXyWpjIC 86C7WwdidNW+vL8HtiCDPcarJi3B7deG4q2jhCiEjj9BFS7oevca8Y2Mr8ArGrADOhmN 4mWAZU1dSrD+lw+tBGgx0bXokA1EFHyppEa3dzkkATMAp7GlvMnr32dIBTuvskewnS67 Xto7SKAlp2r63VULH5FX8wgVRt5spLGGY2UR0ytCgLbQ5j15BZnxyZhvhyNWT9Q9T33F d+Hg== 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-transfer-encoding:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=WZph9rKwVuibhqU18+NlbNIs/Tq286UkhkK2IthgkkE=; b=yE7cVYRJgj6qMhq/c/vfpX8JgwLlCLPDphebB9WLgYZrvDMr0x2NQFUwqOUJ4cci7Z 2bAjMyFKotsiFjdTrSsqgyLwnAjwgtegXG2HRpMAYN4NzkpltDKbGaNulQRqfHjkayXu jL7ZOSvyEk9kFSCj8Jfq2iYCIzM91+/umSK0u33Dt/T+ojyzU+TFA8jmBnOlndS7KlvQ mMMAOsI4THxBFGKx7Wq8dgDJ72wHYf6FOMhi96LNhMr+vTThgP5OLA7AbLnR/PyzaECi GYcHS+We/fcxqSM9OdMo7PKiP125OkenY4E22lsrHGsea3lCvp21FWnGgeAkbBS9UCgx bESA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="wyB/qcr7"; 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 g25si5120725otp.20.2019.12.05.06.43.07; Thu, 05 Dec 2019 06:43:20 -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="wyB/qcr7"; 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 S1729450AbfLEOmg (ORCPT + 99 others); Thu, 5 Dec 2019 09:42:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:49446 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729109AbfLEOmg (ORCPT ); Thu, 5 Dec 2019 09:42:36 -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 A57BE21835; Thu, 5 Dec 2019 14:42:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575556955; bh=FtTd8bVxAAjI67XfQn8v1CtQq1OrzGzVsHz99P5CJdo=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=wyB/qcr7cl/TP8lD54Vc7qc5PKSdWWbxLU/jD1ESiCX238PRKuX2vUf5uT872/UqM 8v8DKdfIwCLe+OqlL6CjnaicKcl7FMooslC4nu8T0GcDWyRHyoZTnsrWSOhiB6t7do EsVLSL1biRboSkS8IPxWZn4JS7A15urYFkuSF+6k= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 7A49E35202C9; Thu, 5 Dec 2019 06:42:35 -0800 (PST) Date: Thu, 5 Dec 2019 06:42:35 -0800 From: "Paul E. McKenney" To: Madhuparna Bhowmik Cc: Joel Fernandes , 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: <20191205144235.GQ2889@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20191204120357.11658-1-madhuparnabhowmik04@gmail.com> <20191205002518.GP2889@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Thu, Dec 05, 2019 at 11:25:39AM +0530, Madhuparna Bhowmik wrote: > On Thu, Dec 5, 2019 at 5:55 AM Paul E. McKenney wrote: > > > 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? > > > > Thank you, I will send the updated patch soon. > > > > 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. > > > > Sure, I will change it to "head of the list". > Moreover, in the rest of the docbook comments in the same file > (rculist_nulls.h), "head for your list" is used. > So, should I change that as well in a separate patch, such that it is > consistent throughout the file? Please do! Thanx, Paul > > > + */ > > > #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". > > > > Sure, I will do it. Thank you for pointing out. > > Regards, > Madhuparna > > > > > + * @node: Element of the list. > > > + */ > > > #define hlist_nulls_next_rcu(node) \ > > > (*((struct hlist_nulls_node __rcu __force **)&(node)->next)) > > > > > > -- > > > 2.17.1 > > > > > > ᐧ