Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1352104ybx; Thu, 7 Nov 2019 10:46:35 -0800 (PST) X-Google-Smtp-Source: APXvYqyBXa3MrzDGoQCEvPxE/WLcrE8osm1lyRXfIQ0A9lyPmIRADvf/DM7zBA880JlrWC/75xMq X-Received: by 2002:a17:906:1b41:: with SMTP id p1mr4518678ejg.65.1573152395021; Thu, 07 Nov 2019 10:46:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573152395; cv=none; d=google.com; s=arc-20160816; b=Eq37A7LXa2wWGRBFSvWYbgOOFi1DIsgLYCmzpVYKM9HSQP66c5sYj8MZ8teJP0s+cn zSEeIssO+BDOTlecxwZZeoNo7GbAuRwfeUEsW8YcliPS5/QMOXj5wYYsJpaeJ8yJNnfA KmKV1EJYIPvZfvMhS9GXs9MNSoiA4JDQvoLEZyvNKO/S40LoU2hppQng+vNFp58DtTQ+ a2ZoMp4uj0xRTJ8DzWXpAtXcFkF7wtZyZqdy7oe97JotViYgE4M887/pL30mKWQkvsbq UDXi7Db0ccpsEsI/96KHFVf8iwlK7L27MAWzAHW5fTxzNQzlHiJLRaAlkeFV/MnbBHh4 CscA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=foRK/DlLsy9GZAYPjxxED9IXUb93Mst1heJN7bigfks=; b=RFxhbSt93fVrpMNxOKz0x76eI+07IlB1xGpBQjdUf7slX7DZYWBjnnK592aiT1oL4W /sJGw6iQH1bQ1gOUnylMwSqFEtiSMdba6WznTOGofcWTLwmk7D1Az/2sbza8bx+2KnRS 5yUezNvv9DTLlu2wV22J5DyNZ7dbm+lnWw05iAru9oTMorcIFGXGHf8jk7ysqHq2jxi1 eU0UrpGGLBS097c+Him88uV/XNGcmOmoirYKumGoSxVYdEr0TLYAAMWHCUprvhPk/wE2 NpnLqP+rPej/dhN1v1gf613ItsmYUQlTPFGPlyZ/SGPXnQs4Ej8hgsaqiBlZrneZ0l4y HPuQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i5si2052304edj.107.2019.11.07.10.46.11; Thu, 07 Nov 2019 10:46:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727389AbfKGSpL (ORCPT + 99 others); Thu, 7 Nov 2019 13:45:11 -0500 Received: from ms.lwn.net ([45.79.88.28]:38948 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726859AbfKGSpK (ORCPT ); Thu, 7 Nov 2019 13:45:10 -0500 Received: from lwn.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 1B1156EC; Thu, 7 Nov 2019 18:45:10 +0000 (UTC) Date: Thu, 7 Nov 2019 11:45:09 -0700 From: Jonathan Corbet To: Jonathan =?UTF-8?B?TmV1c2Now6RmZXI=?= Cc: linux-doc@vger.kernel.org, "Paul E . McKenney" , Joel Fernandes , linux-kernel@vger.kernel.org Subject: Re: [PATCH] scripts/kernel-doc: Add support for named variable macro arguments Message-ID: <20191107114509.16ad9f5c@lwn.net> In-Reply-To: <20191107134133.14690-1-j.neuschaefer@gmx.net> References: <20191107134133.14690-1-j.neuschaefer@gmx.net> Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 7 Nov 2019 14:41:33 +0100 Jonathan Neuschäfer wrote: > Currently, when kernel-doc encounters a macro with a named variable > argument[1], such as this: > > #define hlist_for_each_entry_rcu(pos, head, member, cond...) > > ... it expects the variable argument to be documented as `cond...`, > rather than `cond`. This is semantically wrong, because the name (as > used in the macro body) is actually `cond`. > > With this patch, kernel-doc will accept the name without dots (`cond` > in the example above) in doc comments, and warn if the name with dots > (`cond...`) is used and verbose mode[2] is enabled. This is a definite improvement, thanks. Applied. jon