lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 8 Apr 2020 13:40:48 +0200
From:   Mauro Carvalho Chehab <>
To:     Michael Ellerman <>
Cc:     Linux Doc Mailing List <>,, Jonathan Corbet <>,
        "Martin K. Petersen" <>,
        Paul Mackerras <>,
        Madhuparna Bhowmik <>,
        "David S. Miller" <>,
        Ricardo Ribalda Delgado <>,
        Luca Ceresoli <>,, Matthias Maennich <>,
        Harry Wei <>,,, Jakub Kicinski <>,, "H. Peter Anvin" <>,
        Hans Verkuil <>,
        Benjamin Herrenschmidt <>,
        Johannes Berg <>,
        Jacopo Mondi <>,
        Tyler Hicks <>, Vinod Koul <>,
        Alex Shi <>,
        Thomas Gleixner <>,
        Ingo Molnar <>,,,
        Greg Kroah-Hartman <>,, Borislav Petkov <>
Subject: Re: [PATCH v2 0/2] Don't generate thousands of new warnings when
 building docs

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:

   Hardware overview
   AFU Modes
   MMIO space
   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.


powerpc: docs: cxl.rst: mark two section titles as such

The User API chapter contains two sub-chapters. Mark them as

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

Powered by blists - more mailing lists