Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp564023pxb; Thu, 5 Nov 2020 07:19:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJygeXHjYpO/AXbjpt/XtQgJmEPzB4yv8LVicP9MgQDjPSzCrK4/s/o2YGUWxiIsuKlProgY X-Received: by 2002:a05:6402:185:: with SMTP id r5mr3102442edv.263.1604589590631; Thu, 05 Nov 2020 07:19:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604589590; cv=none; d=google.com; s=arc-20160816; b=njxF1OYa0gE09Du0o40YbF7FfOnZvfcL7t1Gp3X+uxopKAXSW/YCbTdbn/rtGloein oM4XKe+HmDtVwjBYnZpDsHfD3yUPNpZ7D+n9Erce8KP32nVsS6WY+5FvEqZl6uRAP1zi Gsa9YGGOfxhkjOeSodVrdCazle0xT5DkLIHejaKaf3F4LC8QHVj9JIJ6bvQP0XRfUnOX EJQVgk1XjMzKx/AVhsoWM98c7ya69YoOKsechBRSaOq2uHZYEQF3g9xBjPLkl36RIxAS zk+ybaGD19na66XfqnMt03FCH6M0EADEhnnKSPBoo1X6j/kydDW1F1Lrj8A9XASXsx0I VULg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=Gogf2GudyFnTba0mOVGRlP5KtOMpZcrQcOemD0rNMhI=; b=fiR4Eg64BK/0YHjoi5wmXQRhNsmq7qMVsmdoiDDLE1cWYARhZgHFC6qWSCHkBFujvM EVuDhtmdOWZjO/1Gnufc8KedZm8TX0pmeW7HX0xZl41shACeLZuDnsypfQ3GHvMoHeah zeEinWC+6DRwV2yVUJ/NqQKHCnQ8VrepyD6hd1+W+LSQw3//y9LlqRMgopLrtNwJEVtD FHnqeeTfAv7pgdSzQnyMNa/jm/xkhkxrdv9dPuKmomZRsgEM56uYt+/MPLrbGJL6fWDe tjWuvlI4uX000naVaeCOV1VIVB2v62mgBCnWE8vdfLm85jWQDce0LPvDH0yFDn5wC9jh QaqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r26si1325167ejy.148.2020.11.05.07.19.26; Thu, 05 Nov 2020 07:19:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730906AbgKEPP2 (ORCPT + 99 others); Thu, 5 Nov 2020 10:15:28 -0500 Received: from ms.lwn.net ([45.79.88.28]:33920 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730822AbgKEPP2 (ORCPT ); Thu, 5 Nov 2020 10:15:28 -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 ABBA0750; Thu, 5 Nov 2020 15:15:27 +0000 (UTC) Date: Thu, 5 Nov 2020 08:15:26 -0700 From: Jonathan Corbet To: Matthew Wilcox Cc: Mauro Carvalho Chehab , Linux Doc Mailing List , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 56/56] scrpits: kernel-doc: validate kernel-doc markup with the actual names Message-ID: <20201105081526.1f9c7f4a@lwn.net> In-Reply-To: <20201105150017.GL17076@casper.infradead.org> References: <20201105150017.GL17076@casper.infradead.org> Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 5 Nov 2020 15:00:17 +0000 Matthew Wilcox wrote: > I wonder if we could change kernel-doc to be (optionally) less verbose. > If we allowed people to write: > > /** > * Add a value to a refcount. > * @i: The value to add to the refcount > * @r: The refcount > */ > > and had the kernel-doc script pick up the name of the following function > automatically, would that be an improvement we could all agree on? Given the number of issues Mauro just fixed where the comments had become separated from the functions they documented, this seems potentially hazardous... It seems especially likely to fail with the "change foo() to __foo() and add a new foo() down below" pattern that is fairly common. jon