Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp858416pxk; Thu, 1 Oct 2020 16:03:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMPWXSELAf0ppVUTlPxVPSj34kNnfySjWTXdTzZVR0QIffp9MRD+9btUdk6eGshabwXCf4 X-Received: by 2002:a05:6402:176c:: with SMTP id da12mr10986214edb.386.1601593408428; Thu, 01 Oct 2020 16:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601593408; cv=none; d=google.com; s=arc-20160816; b=vJmmL/m3gGlHZdBbX3FSb8C5Jr8ZJgqxJRe3w6ah7u9FTO6IfKz6ZuSzemxEtlqhsc KX0r1vUiDDKmM8GOsqC5Y/OZv+P3wdDI7D3ciJp+og1ILVkB9r14eRpc5i1nDvxUg60Z wZBV8JYEZ9ilQ9A73kXWdUg6ChASqapGbz9EaljqtyLJ+FQCWaG289KlvUnZBSmF6QW7 arYwVlkHgccoKi71h2KrywN7WTNlHjCsT6U9r659sSCDeKsgVqPAnREJdxhmpBfjq2UQ TuCdMLBa/BOO1SsT+tnDXtbRZ2X5ycKBWJRngVVYySbNO9lE33Y2cJY14APEU4IkuINt vM9A== 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=PP0s5rJazlK0BuB1QPZWqH9dxJOARgi+NApKrKueRrQ=; b=ehIJ/uibSzafjCXIhXMv5+twph9fkRe6EbuvuQBz9NteTelX9bQqvDDGjJiN1C7Nae wYkETzQemxtWDaWWMobgIyltKIJp7Ea4/6RIK3ey8DLjc68LHXtH70TfeNzcyVyM2njj 3Bllp8GUpbDPsqexI51FKVNVJqm7b4tu0zv/MTk9KZUqLZE0QOsb17jYgujx3qLwncGx FmCUq+q1BhD2GMl/ojTbD28BYzzbk10WTgOzCdrYrZoBFfZ4xv7OUD3NI3vEDBgALmMk WuORehiP9KLBJiy5rFYW7JbgC3YalO2h0c9W/HFUE9kdke2OqNkz80T4WKtMna4uE1is +52A== 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 z6si4590313edr.566.2020.10.01.16.03.05; Thu, 01 Oct 2020 16:03:28 -0700 (PDT) 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 S1733243AbgJAXCG (ORCPT + 99 others); Thu, 1 Oct 2020 19:02:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728090AbgJAXCG (ORCPT ); Thu, 1 Oct 2020 19:02:06 -0400 Received: from ms.lwn.net (ms.lwn.net [IPv6:2600:3c01:e000:3a1::42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1413C0613D0; Thu, 1 Oct 2020 16:02:05 -0700 (PDT) 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 0965860C; Thu, 1 Oct 2020 23:02:04 +0000 (UTC) Date: Thu, 1 Oct 2020 17:02:02 -0600 From: Jonathan Corbet To: Mauro Carvalho Chehab Cc: Linux Doc Mailing List , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 04/52] scripts: kernel-doc: make it more compatible with Sphinx 3.x Message-ID: <20201001170202.673c6d6f@lwn.net> In-Reply-To: <20201001154100.2f7e89b8@lwn.net> References: <20201001154100.2f7e89b8@lwn.net> 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, 1 Oct 2020 15:41:00 -0600 Jonathan Corbet wrote: > On Wed, 30 Sep 2020 15:24:27 +0200 > Mauro Carvalho Chehab wrote: > > > With Sphinx 3.x, the ".. c:type:" tag was changed to accept either: > > > > .. c:type:: typedef-like declaration > > .. c:type:: name > > > > Using it for other types (including functions) don't work anymore. > > > > So, there are newer tags for macro, enum, struct, union, and others, > > which doesn't exist on older versions. > > > > Add a check for the Sphinx version and change the produced tags > > accordingly. > > > > Signed-off-by: Mauro Carvalho Chehab > > --- > > scripts/kernel-doc | 71 ++++++++++++++++++++++++++++++++++++++++++---- > > 1 file changed, 65 insertions(+), 6 deletions(-) > > So this seems generally good, but I do wonder if we shouldn't just pass > the sphinx version into kernel-doc as a parameter? We're already doing a > version check in the makefile, we should be able to capture the result and > pass it in, maybe? Actually, I'm being slow...we invoke kernel-doc *from within Sphinx*, so it shouldn't be all that hard to stick the version number onto the command line. If we did it that way, it would also be easier to manually test kernel-doc for various Sphinx versions... ? jon