Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp517182ybb; Wed, 8 Apr 2020 04:42:08 -0700 (PDT) X-Google-Smtp-Source: APiQypLucfizJkxeENbWlTucMDpyzIcyD3VxBHNUBIl8eW+SUuDLnUQBV7K80Q2qqD7JrVTxImzR X-Received: by 2002:a9d:d36:: with SMTP id 51mr5514665oti.308.1586346128359; Wed, 08 Apr 2020 04:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586346128; cv=none; d=google.com; s=arc-20160816; b=IGvjulqrPrszFQD+2NdBa5VUAQOLN4cDKaQ5S2sXaJPKUg8M73uc1D/BSngKm/eUhD +J/ykSRQIZMn7glQxkOI/EMhEQ5NY8iUStRz4tAm/XGpwZMzg+CIQsws9tZzL5olotV6 Jn8cqb7oDmwNwYJFJKI9/xCOM49gqstDt2j8GBkpUw5Yb1rlTx/xzOZ3xdIqF+h8JvB8 lH3/ySMqvAtH100KMIh5Gn8vReIW0c9VwbYRaPCX/1hGiIw5zIICiZg5Ukipr55rUFRy jrO8cIUWj6MiL0sakSJEIB3ObuT09ARUiULKpwNdpIUw3A/BwyVcjwt5g52aeEmL9qZY 05Ow== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Wu6+sU2aZrCjeFqdhfBdd5Jr3oJ/Oowr6MMKCL2f+94=; b=A6azDDyhGW5bzhlQ1TtU51nXG9fZuReSvK6kz6W3GQ+bR0wyPFSXtHi+39ofLPzAw3 wq3UVnwHGzpZdF+hDfwAh75Hhdk5lBFkiH2eiqSWZoQizJ7qi1ndqOdtn6ezuZBlxM5x wOD3XokkQFtoSNrujSaxPN8QnLtuuWA8FBQ+rN6mAwSQ8zxrSyV4HMb0bKLT1XX4isoM rAHXRWiEeTJ8XDYAZbMvdoMlhunyh3wjph/Krql/pAuvfB95kq4CJMILJ9DE4jwLjFxM I7hrBKxIP5owuiE87MGZDew5kvh/xyZhVXS0kBBW9MJ4Q1gyk9a96Q0CaAfD+QORDK5H sesQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lNMtsoG3; 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 o20si2293434ota.17.2020.04.08.04.41.53; Wed, 08 Apr 2020 04:42:08 -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=lNMtsoG3; 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 S1728608AbgDHLlA (ORCPT + 99 others); Wed, 8 Apr 2020 07:41:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:37534 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728497AbgDHLlA (ORCPT ); Wed, 8 Apr 2020 07:41:00 -0400 Received: from coco.lan (ip5f5ad4d8.dynamic.kabel-deutschland.de [95.90.212.216]) (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 759AF20747; Wed, 8 Apr 2020 11:40:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586346059; bh=igLuiZn52qB1kj2vKxCTjSGs9/VNYNbdH6sNTlgRisY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=lNMtsoG3BeTIbawLBoa0nrrwd0el6dj9ixd/wEe67LD2atI1u1lEiKmTJiKJA0hjV FXR8cQCs+m+ksv+uue55PKV997wAUH/UarzRCS6hVK+lXwWdeotoHeiFSlypmHOYoN dm4usj1My3oZ7OaxsoqH8jwAufqemuBwo1R1j8fs= Date: Wed, 8 Apr 2020 13:40:48 +0200 From: Mauro Carvalho Chehab To: Michael Ellerman Cc: Linux Doc Mailing List , 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, netdev@vger.kernel.org, Greg Kroah-Hartman , linuxppc-dev@lists.ozlabs.org, Borislav Petkov Subject: Re: [PATCH v2 0/2] Don't generate thousands of new warnings when building docs Message-ID: <20200408134048.5329427d@coco.lan> In-Reply-To: <87lfn8klf4.fsf@mpe.ellerman.id.au> References: <87lfn8klf4.fsf@mpe.ellerman.id.au> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, 07 Apr 2020 13:46:23 +1000 Michael Ellerman escreveu: > Mauro Carvalho Chehab writes: > > This small series address a regression caused by a new patch at > > docs-next (and at linux-next). > > ... > > 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. > > I'm still seeing a lot of warnings. Am I doing something wrong? > > cheers > > /linux/Documentation/powerpc/cxl.rst:406: WARNING: duplicate label powerpc/cxl:open, other instance in /linux/Documentation/powerpc/cxl.rst ... > /linux/Documentation/powerpc/syscall64-abi.rst:86: WARNING: duplicate label powerpc/syscall64-abi:parameters and return value, other instance in /linux/Documentation/powerpc/syscall64-abi.rst ... > /linux/Documentation/powerpc/ultravisor.rst:339: WARNING: duplicate label powerpc/ultravisor:syntax, other instance in /linux/Documentation/powerpc/ultravisor.rst ... I can't reproduce your issue here at linux-next (+ my pending doc patches). So, I can only provide you some hints. If you see the logs you posted, all of them are related to duplicated labels inside the same file. - The new Sphinx module we're using (sphinx.ext.autosectionlabel) generates references for two levels, within the same document file (after this patch). Looking at the first document (at linux-next version), it has: 1) A first level document title: Coherent Accelerator Interface (CXL) 2) Several second level titles: Introduction Hardware overview AFU Modes MMIO space Interrupts Work Element Descriptor (WED) User API Sysfs Class Udev rules Right now, there's no duplication, but if someone adds, for example, another first-level or second-level title called "Interrupts", then the file will produce a duplicated label and Sphinx will warn. The same would happen if someone adds another title (either first level or second level) called "Coherent Accelerator Interface (CXL)", as this will conflict with the document title. - Now, if the title "Coherent Accelerator Interface (CXL)" got removed, then "Introduction".."Udev rules" will become first level titles. Then, the sections at the "User API": "open", "ioctl"... will become second level titles and it will produce lots of warnings. - That's said, IMHO, this document needs section titles for the two sections under "User API". Adding it would allow removing the document title. See enclosed. Thanks, Mauro powerpc: docs: cxl.rst: mark two section titles as such The User API chapter contains two sub-chapters. Mark them as such. Signed-off-by: Mauro Carvalho Chehab diff --git a/Documentation/powerpc/cxl.rst b/Documentation/powerpc/cxl.rst index 920546d81326..d2d77057610e 100644 --- a/Documentation/powerpc/cxl.rst +++ b/Documentation/powerpc/cxl.rst @@ -133,6 +133,7 @@ User API ======== 1. AFU character devices +^^^^^^^^^^^^^^^^^^^^^^^^ For AFUs operating in AFU directed mode, two character device files will be created. /dev/cxl/afu0.0m will correspond to a @@ -395,6 +396,7 @@ read 2. Card character device (powerVM guest only) +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ In a powerVM guest, an extra character device is created for the card. The device is only used to write (flash) a new image on the