Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp797745ybb; Fri, 20 Mar 2020 08:14:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv92z8f1r1rFwoLC1vPrYlWX7rRx0D4vjmWiRRGVJ3pZ+PL+ThHLvYYB7YYPwNv7tsTMboe X-Received: by 2002:aca:1305:: with SMTP id e5mr2177128oii.12.1584717278886; Fri, 20 Mar 2020 08:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584717278; cv=none; d=google.com; s=arc-20160816; b=AIVaCVNlAoztti2a/GLmXoQpUQ2flv8PmIltl8YqzjiHsh1xj0Fq2JDSHSc9B0LCQ0 Tw4jZtwPHj2WL7uf7+Ma3Xw2+2TfMjVK+EPzr93o6SsDT5mFwUkGW1TFpUFuc4c6JQP/ fm++iWPt5AMl5iaVFy7T0Jz2A8KCXRGR7ohCkb7Rx7/DlYg+Gsz2/PypXki4CaEr3D8g P8qu7IML1fZsWkdjH3Idz+z2K9tuOxURPdxgHR3MYWwtLOAjN0B5jnInkWe6Q/vFzgY0 9+aIaRjrI0TKEESVwHewwC+i1bMlcPyZdx8jtsDFNxpGAvuwQnkUcPBUWGsPi69p3Ssz qw+g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=iPmdmUcQFoXE7rComHfCAuayCY6CJY/aBZm724XTTtc=; b=z9JzjzAIGn6pbDGZKALx7Uho6fzUDv0559JgKAlz1F4PXK7KAVaRAz3t1745iYCKxV 8weIIB04yUrsw47PTaMt12KDnbWpti6C0KZ3cBBRq/951N0O9l53e/c1wBGR/dryGZJA 9ZPK/IqwwK1rsSVox8BW7mo7Ej+ecAKaYCN/mdbed0aaLjD4T4n3yrbwgBa69rPjp37v w7vHNhtrgniNDHcON7ctaVLdpuoW10OYjdaUSOKT/xuXxwYpWa7JfHZOJpSEEV6S/mHV K6n1GT1yGxA2KGWFStdaCY75LimStMiAlVv999vMPaa5+YR2oHxxgpI3kgX8kpEnk12u e7Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jMVdDgVT; 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 k3si2793932oib.82.2020.03.20.08.14.11; Fri, 20 Mar 2020 08:14:38 -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=jMVdDgVT; 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 S1727534AbgCTPLY (ORCPT + 99 others); Fri, 20 Mar 2020 11:11:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:56044 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727400AbgCTPLH (ORCPT ); Fri, 20 Mar 2020 11:11:07 -0400 Received: from mail.kernel.org (ip5f5ad4e9.dynamic.kabel-deutschland.de [95.90.212.233]) (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 A35162072D; Fri, 20 Mar 2020 15:11:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584717066; bh=qz6nxjt+oHRdtFK5DtUf8W3pt7MtXBjKeLpdYT+SXj4=; h=From:To:Cc:Subject:Date:From; b=jMVdDgVTlPr9q4qgOQX+s+/uNPsSTDhfGiESnAjI2AGmzXCyl3PkU1dSvU2b2I1Vu CGQA+Ezuq0o70vsmAIKPEauiCmAHHE0cYxQfeWLwYuups0vVmKNTcxChn7S4KXSOvq 4g6dIhGnq0ArXroR/CxDRUgHb/DLqWbXrZyQEEaQ= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jFJIe-000ukc-Gx; Fri, 20 Mar 2020 16:11:04 +0100 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet , "Martin K. Petersen" , Paul Mackerras , Madhuparna Bhowmik , "David S. Miller" , Ricardo Ribalda Delgado , Luca Ceresoli , dmaengine@vger.kernel.org, Matthias Maennich , Harry Wei , x86@kernel.org, ecryptfs@vger.kernel.org, Jakub Kicinski , target-devel@vger.kernel.org, "H. Peter Anvin" , Hans Verkuil , Benjamin Herrenschmidt , Johannes Berg , Jacopo Mondi , Tyler Hicks , Vinod Koul , Alex Shi , Thomas Gleixner , Ingo Molnar , linux-scsi@vger.kernel.org, Michael Ellerman , netdev@vger.kernel.org, Greg Kroah-Hartman , linuxppc-dev@lists.ozlabs.org, Borislav Petkov Subject: [PATCH v2 0/2] Don't generate thousands of new warnings when building docs Date: Fri, 20 Mar 2020 16:11:01 +0100 Message-Id: X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This small series address a regression caused by a new patch at docs-next (and at linux-next). Before this patch, when a cross-reference to a chapter within the documentation is needed, we had to add a markup like: .. _foo: foo === This behavor is now different after this patch: 58ad30cf91f0 ("docs: fix reference to core-api/namespaces.rst") As a Sphinx extension now creates automatically a reference like the above, without requiring any extra markup. That, however, comes with a price: it is not possible anymore to have two sections with the same name within the entire Kernel docs! This causes thousands of warnings, as we have sections named "introduction" on lots of places. This series solve this regression by doing two changes: 1) The references are now prefixed by the document name. So, a file named "bar" would have the "foo" reference as "bar:foo". 2) It will only use the first two levels. The first one is (usually) the name of the document, and the second one the chapter name. This solves almost all problems we have. Still, there are a few places where we have two chapters at the same document with the same name. The first patch addresses this problem. The second patch limits the escope of the autosectionlabel. Mauro Carvalho Chehab (2): docs: prevent warnings due to autosectionlabel docs: conf.py: avoid thousands of duplicate label warning on Sphinx Documentation/conf.py | 4 ++++ Documentation/driver-api/80211/mac80211-advanced.rst | 8 ++++---- Documentation/driver-api/dmaengine/index.rst | 4 ++-- Documentation/filesystems/ecryptfs.rst | 11 +++++------ Documentation/kernel-hacking/hacking.rst | 4 ++-- Documentation/media/kapi/v4l2-controls.rst | 8 ++++---- Documentation/networking/snmp_counter.rst | 4 ++-- Documentation/powerpc/ultravisor.rst | 4 ++-- Documentation/security/siphash.rst | 8 ++++---- Documentation/target/tcmu-design.rst | 6 +++--- .../translations/zh_CN/process/5.Posting.rst | 2 +- Documentation/x86/intel-iommu.rst | 3 ++- 12 files changed, 35 insertions(+), 31 deletions(-) -- 2.24.1