Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1464064ybp; Fri, 4 Oct 2019 15:28:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCe1WvO1wsLivAXF7eTFJOwYf6MsyPVaqwNt8zMKC1BMyeALcx7y6SyMrDMhNdCuE4W9hg X-Received: by 2002:aa7:c40c:: with SMTP id j12mr18072853edq.284.1570228087610; Fri, 04 Oct 2019 15:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570228087; cv=none; d=google.com; s=arc-20160816; b=hR4hpqYZy9ppr71Tjd4yIS81NI3KtOQAcYcaJueJFG0sDFq88qeuIpi6wl5aP5B6xT 9H6FSopa0XwCqJyUy2wmzezDamGd71iQS3nDSNUXrPt8MGlnEE075jG4prGq/juK4aJz wp2j/e99m7pfHSUXtGdELWrJw8R4GoNhzBLvDZ6C3AkjAbBq5dSFDDEtjIrQ9cwPZ9Ki 4g29whmwuTCuC0alDU3/PNQx9pfnoBK3DT3RGdESMgJRfVYODMBy2JGIMYi4VX2C9g3z bnWVAO+ztcdn6icHK7eLXmnZMz0xTSB44nVY/wi9S56hTpbpijUOJ/xwQINRfZ9N6Z9K HA5Q== 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=Iavd2g2e8/z/E/g0CArCLVnWFdzvX4OV5ql0lI76p8Q=; b=bRI+t0AcTxw8Bcc/In7t0cYmD0GXyPs5VKNCD0Zj7qbiy8v42jXuBEtqgsmLm1edEt Gdv6NmHSaPNdKjHkptinzaL6m1y1eyGuqI069yM/NytNqNaGLtwpEIUTQZkugk2RFdNY LpmjUxe91+xa/Nq3C1TFhmjmS3cYP+KIt4VHK1W5h5hTG5xN3CWuCN9ZzMKC7zBpR6UX bHKo7oJkXDaLZPiD7ODC6+xLhog7c1ZvpwHghTLDuvd4+84tjrwq2PW4nahD6rvLsviX M9imKN/IEHNjJ6dM/iC0uz6+rDg+XIcLjIM+uKm55EUyNb5CjOx2kL22I4jzUyiny7Yh A+vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sb9wMcnu; 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 ck2si3514669ejb.346.2019.10.04.15.27.44; Fri, 04 Oct 2019 15:28:07 -0700 (PDT) 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=sb9wMcnu; 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 S2387855AbfJDWYl (ORCPT + 99 others); Fri, 4 Oct 2019 18:24:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:45276 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726002AbfJDWYl (ORCPT ); Fri, 4 Oct 2019 18:24:41 -0400 Received: from paulmck-ThinkPad-P72 (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 B11FD222C0; Fri, 4 Oct 2019 22:24:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570227880; bh=/1rNu8CVWv+a4qh8uRDvMq0gED61r/4CcMH8+ga6R/Q=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=sb9wMcnuaX+/3taBbhX2+xIXYHwcnlKDeARYNZX7cc+BS0HUEjs0bUCOf6hm2v1pE Sn+THIehdjES5UsvPDjhBRGQ0ujQYI05nH+WBVgzmK8Mp9/HV5EglcFjmpLc+aHS1z CRWtmRkk122ecVMohuxORrBJA8UYrLoH3AEc2Gek= Date: Fri, 4 Oct 2019 15:24:39 -0700 From: "Paul E. McKenney" To: Jonathan =?iso-8859-1?Q?Neusch=E4fer?= Cc: rcu@vger.kernel.org, Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , linux-kernel@vger.kernel.org Subject: Re: [PATCH] rculist: Describe variadic macro argument in a Sphinx-compatible way Message-ID: <20191004222439.GR2689@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20191004215402.28008-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191004215402.28008-1-j.neuschaefer@gmx.net> 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 Fri, Oct 04, 2019 at 11:54:02PM +0200, Jonathan Neusch?fer wrote: > Without this patch, Sphinx shows "variable arguments" as the description > of the cond argument, rather than the intended description, and prints > the following warnings: > > ./include/linux/rculist.h:374: warning: Excess function parameter 'cond' description in 'list_for_each_entry_rcu' > ./include/linux/rculist.h:651: warning: Excess function parameter 'cond' description in 'hlist_for_each_entry_rcu' > > Signed-off-by: Jonathan Neusch?fer Applied for testing and review, thank you! Joel, does this look sane to you? Thanx, Paul > --- > include/linux/rculist.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/linux/rculist.h b/include/linux/rculist.h > index 4158b7212936..61c6728a71f7 100644 > --- a/include/linux/rculist.h > +++ b/include/linux/rculist.h > @@ -361,7 +361,7 @@ static inline void list_splice_tail_init_rcu(struct list_head *list, > * @pos: the type * to use as a loop cursor. > * @head: the head for your list. > * @member: the name of the list_head within the struct. > - * @cond: optional lockdep expression if called from non-RCU protection. > + * @cond...: optional lockdep expression if called from non-RCU protection. > * > * This list-traversal primitive may safely run concurrently with > * the _rcu list-mutation primitives such as list_add_rcu() > @@ -636,7 +636,7 @@ static inline void hlist_add_behind_rcu(struct hlist_node *n, > * @pos: the type * to use as a loop cursor. > * @head: the head for your list. > * @member: the name of the hlist_node within the struct. > - * @cond: optional lockdep expression if called from non-RCU protection. > + * @cond...: optional lockdep expression if called from non-RCU protection. > * > * This list-traversal primitive may safely run concurrently with > * the _rcu list-mutation primitives such as hlist_add_head_rcu() > -- > 2.20.1 >