Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp574465ybc; Fri, 22 Nov 2019 09:37:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwbMPfZf+Vep86Qb9GOM+LTpT0mG1yFxh6ju+lMjUhHwhizC+6wHkC38bzX7mUll2D3090C X-Received: by 2002:a17:907:212a:: with SMTP id qo10mr23951332ejb.197.1574444231534; Fri, 22 Nov 2019 09:37:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574444231; cv=none; d=google.com; s=arc-20160816; b=dlLEmitFLaUiEvyZw4zgTX7rZN9BgttSEDQ10WEmsXmhx1nkiDzBnvs85hBi3HzGxF AeJVuhN9zpsYWqj3XKjkeF6lJmqTeL6rG6T4fvEaCOAuRLHmoRpQEBXHMitNXTw5F0yH N2U4OaJTQk5vr2qdx+4l34fti8i7e0pzUWc0wzhiJQIMn9sUtsx1KNXWzG2JTB7Arm0/ 7an9Hcw98b5CnCiT8NDjUkxNg4dNrxr0xnnUPX+Q9rEvkF7t5j/dau3Kfwoa1MHh4Ipy SdoX3aTgim1Zu5jpdeIYndddqmv0p2vlkiYLgzWTR6IY4HQq/gr+dDLv1LEgEtGsFZZv wrTQ== 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=KeSXzSmBWf68ZTeFE4V+bfOyXfszY4wYiBBpJHmo7zc=; b=Gqz7bYGPjeV2lWRrpab3F+z8urzR12bi2irkU98paX0kWoDiPP60MIQHLeTiWe8jM9 clCUKpnUA2TDBWVfhwr2qjJYEIVCBfpzmGHhpsjlrjZbU7VkpFMy27yYDpvmY6VH1us4 OM6kYuhTcX0unN/QcEftFgwhEmfNYofyytyZbqCL6MkXGGELprTDeudxHsfdz7tA1Acy IxHxpkBrsH9YfAQb+PvtwHTjsYiYRtrDCqQ249KkP8cAi7OBhY7u3+z4UpK6wLRL67Zz WfDs/quI25zIJ8YRQy7HzX9S54DP+nKNifhyIuCyxhSpUoppIbhDaPLrFRls4VjUwMYq RTig== 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 x1si4348704ejd.109.2019.11.22.09.36.47; Fri, 22 Nov 2019 09:37:11 -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 S1726729AbfKVRek convert rfc822-to-8bit (ORCPT + 99 others); Fri, 22 Nov 2019 12:34:40 -0500 Received: from ms.lwn.net ([45.79.88.28]:41496 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbfKVRek (ORCPT ); Fri, 22 Nov 2019 12:34:40 -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 D05F337B; Fri, 22 Nov 2019 17:34:38 +0000 (UTC) Date: Fri, 22 Nov 2019 10:34:37 -0700 From: Jonathan Corbet To: Federico Vaga Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH] doc: fix reference to core-api/namespaces.rst Message-ID: <20191122103437.59fda273@lwn.net> In-Reply-To: <20191122115337.1541-1-federico.vaga@vaga.pv.it> References: <20191122115337.1541-1-federico.vaga@vaga.pv.it> Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 22 Nov 2019 12:53:37 +0100 Federico Vaga wrote: > This patch: > > commit fcfacb9f8374 ("doc: move namespaces.rst from kbuild/ to core-api/") > > forgot to update the document kernel-hacking/hacking.rst. > > In addition to the fix the path now is a cross-reference to the document. > > Signed-off-by: Federico Vaga > --- > Documentation/core-api/symbol-namespaces.rst | 2 ++ > Documentation/kernel-hacking/hacking.rst | 4 ++-- > 2 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/Documentation/core-api/symbol-namespaces.rst b/Documentation/core-api/symbol-namespaces.rst > index 982ed7b568ac..6791f8a5d726 100644 > --- a/Documentation/core-api/symbol-namespaces.rst > +++ b/Documentation/core-api/symbol-namespaces.rst > @@ -1,3 +1,5 @@ > +.. _core-api-namespace: > + So I've been wondering for a bit why we don't use section headers as targets more often rather than adding all these tags. Perhaps it's because we never enabled that extension? What do you think of this as an alternative fix? (Probably before committing this I would split into two, since enabling the extension merits its own patch). Thanks, jon From b5ca7304e1a7f67717acff2a7bf50f56d387afdd Mon Sep 17 00:00:00 2001 From: Jonathan Corbet Date: Fri, 22 Nov 2019 10:30:30 -0700 Subject: [PATCH] docs: fix reference to core-api/namespaces.rst Fix a couple of dangling links to core-api/namespaces.rst by turning them into proper references. Enable the autosection extension (available since Sphinx 1.4) to make this work. Co-developed-by: Federico Vaga Fixes: fcfacb9f8374 ("doc: move namespaces.rst from kbuild/ to core-api/") Signed-off-by: Jonathan Corbet --- Documentation/conf.py | 2 +- Documentation/kernel-hacking/hacking.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/conf.py b/Documentation/conf.py index 3c7bdf4cd31f..fa2bfcd6df1d 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -38,7 +38,7 @@ needs_sphinx = '1.3' # ones. extensions = ['kerneldoc', 'rstFlatTable', 'kernel_include', 'cdomain', 'kfigure', 'sphinx.ext.ifconfig', 'automarkup', - 'maintainers_include'] + 'maintainers_include', 'sphinx.ext.autosectionlabel' ] # The name of the math extension changed on Sphinx 1.4 if (major == 1 and minor > 3) or (major > 1): diff --git a/Documentation/kernel-hacking/hacking.rst b/Documentation/kernel-hacking/hacking.rst index a3ddb213a5e1..d707a0a61cc9 100644 --- a/Documentation/kernel-hacking/hacking.rst +++ b/Documentation/kernel-hacking/hacking.rst @@ -601,7 +601,7 @@ Defined in ``include/linux/export.h`` This is the variant of `EXPORT_SYMBOL()` that allows specifying a symbol namespace. Symbol Namespaces are documented in -``Documentation/kbuild/namespaces.rst``. +:ref:`Documentation/core-api/symbol-namespaces.rst ` :c:func:`EXPORT_SYMBOL_NS_GPL()` -------------------------------- @@ -610,7 +610,7 @@ Defined in ``include/linux/export.h`` This is the variant of `EXPORT_SYMBOL_GPL()` that allows specifying a symbol namespace. Symbol Namespaces are documented in -``Documentation/kbuild/namespaces.rst``. +:ref:`Documentation/core-api/symbol-namespaces.rst ` Routines and Conventions ======================== -- 2.21.0