Skip to content

Commit a05b289

Browse files
jnikularodrigovivi
authored andcommitted
drm/i915: fix Sphinx build duplicate label warning
Fix the warning caused by enabling the autosectionlabel extension in the kernel Sphinx build: Documentation/gpu/i915.rst:610: WARNING: duplicate label gpu/i915:layout, other instance in Documentation/gpu/i915.rst The autosectionlabel extension adds labels to each section title for cross-referencing, but forbids identical section titles in a document. With kernel-doc, this includes sections titles in the included kernel-doc comments. In the warning message, Sphinx is unable to reference the labels in their true locations in the kernel-doc comments in source. In this case, there's "Layout" sections in both gt/intel_workarounds.c and i915_reg.h. Rename the section in the latter to "File Layout". Fixes: 58ad30c ("docs: fix reference to core-api/namespaces.rst") Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 27be41d) Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent 1239902 commit a05b289

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/i915/i915_reg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
* Follow the style described here for new macros, and while changing existing
3535
* macros. Do **not** mass change existing definitions just to update the style.
3636
*
37-
* Layout
38-
* ~~~~~~
37+
* File Layout
38+
* ~~~~~~~~~~~
3939
*
4040
* Keep helper macros near the top. For example, _PIPE() and friends.
4141
*

0 commit comments

Comments
 (0)