Documentation/gpu/drm-uapi.rst | 9 +++++++++ 1 file changed, 9 insertions(+)
This patch was initially written for the Linux Kernel Bug Fixing Mentorship
program. The patch adds a temporarily stubbed section on Acceleration Nodes
to resolve a documentation warning.
This resolves the warning:
./Documentation/gpu/drm-internals:179: ./include/drm/drm_file.h:411: WARNING: undefined label: drm_accel_node
I would appreciate any feedback on what should be documented here.
Signed-off-by: Dylan Le <self@dylanle.dev>
---
Documentation/gpu/drm-uapi.rst | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/Documentation/gpu/drm-uapi.rst b/Documentation/gpu/drm-uapi.rst
index ce47b4292..d25539862 100644
--- a/Documentation/gpu/drm-uapi.rst
+++ b/Documentation/gpu/drm-uapi.rst
@@ -175,6 +175,15 @@ other hand, a driver requires shared state between clients which is
visible to user-space and accessible beyond open-file boundaries, they
cannot support render nodes.
+.. _drm_accel_node:
+
+Acceleration nodes
+==================
+
+.. note::
+ There is not any documentation yet need to figure out what this is.
+
+
Device Hot-Unplug
=================
--
2.30.2
On Thu, Feb 23, 2023 at 02:52:52AM +0000, Dylan Le wrote: > > This patch was initially written for the Linux Kernel Bug Fixing Mentorship > program. The patch adds a temporarily stubbed section on Acceleration Nodes > to resolve a documentation warning. > > This resolves the warning: > ./Documentation/gpu/drm-internals:179: ./include/drm/drm_file.h:411: WARNING: undefined label: drm_accel_node Please write the patch description in imperative mood ("Do foo" instead of "This patch does foo"). > > I would appreciate any feedback on what should be documented here. I think above is better placed between the three dashes and diffstat ... > --- like here. > Documentation/gpu/drm-uapi.rst | 9 +++++++++ > 1 file changed, 9 insertions(+) > > +.. _drm_accel_node: > + > +Acceleration nodes > +================== > + > +.. note:: > + There is not any documentation yet need to figure out what this is. I'd like to write this stub as generic .. admonition:: block [1] instead, with the content which is "This section is empty, add appropriate documentation here." or similar. [1]: https://docutils.sourceforge.io/docs/ref/rst/directives.html#generic-admonition Thanks. -- An old man doll... just what I always wanted! - Clara
On Wednesday, February 22nd, 2023 at 11:25 PM, Bagas Sanjaya <bagasdotme@gmail.com> wrote: > > > On Thu, Feb 23, 2023 at 02:52:52AM +0000, Dylan Le wrote: > > > This patch was initially written for the Linux Kernel Bug Fixing Mentorship > > program. The patch adds a temporarily stubbed section on Acceleration Nodes > > to resolve a documentation warning. > > > > This resolves the warning: > > ./Documentation/gpu/drm-internals:179: ./include/drm/drm_file.h:411: WARNING: undefined label: drm_accel_node > > > Please write the patch description in imperative mood ("Do foo" instead > of "This patch does foo"). > > > I would appreciate any feedback on what should be documented here. > > > I think above is better placed between the three dashes and diffstat ... > > > --- > > > like here. > > > Documentation/gpu/drm-uapi.rst | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > > +.. _drm_accel_node: > > + > > +Acceleration nodes > > +================== > > + > > +.. note:: > > + There is not any documentation yet need to figure out what this is. > > > I'd like to write this stub as generic .. admonition:: block [1] instead, > with the content which is "This section is empty, add appropriate > documentation here." or similar. > > [1]: https://docutils.sourceforge.io/docs/ref/rst/directives.html#generic-admonition > > Thanks. > > -- > An old man doll... just what I always wanted! - Clara Thank you Bagas for the feedback, I prematurely sent a v2 of this patch taking into account your feedback, but I will hold off on other changes. Since there seems to be another discussion about a broken reference in drm_file.h. If there is something I can look at in the meantime let me know. Thanks, Dylan Le
I'm thinking the drm_file.h reference is broken. I suspect it should reference Documentation/accel/index.rst Oded? On Wed, Feb 22, 2023 at 9:25 PM Bagas Sanjaya <bagasdotme@gmail.com> wrote: > > On Thu, Feb 23, 2023 at 02:52:52AM +0000, Dylan Le wrote: > > > > This patch was initially written for the Linux Kernel Bug Fixing Mentorship > > program. The patch adds a temporarily stubbed section on Acceleration Nodes > > to resolve a documentation warning. > > > > This resolves the warning: > > ./Documentation/gpu/drm-internals:179: ./include/drm/drm_file.h:411: WARNING: undefined label: drm_accel_node > > Please write the patch description in imperative mood ("Do foo" instead > of "This patch does foo"). > > > > > I would appreciate any feedback on what should be documented here. > > I think above is better placed between the three dashes and diffstat ... > > > > --- > > like here. > > > Documentation/gpu/drm-uapi.rst | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > > > > +.. _drm_accel_node: > > + > > +Acceleration nodes > > +================== > > + > > +.. note:: > > + There is not any documentation yet need to figure out what this is. > > I'd like to write this stub as generic .. admonition:: block [1] instead, > with the content which is "This section is empty, add appropriate > documentation here." or similar. > > [1]: https://docutils.sourceforge.io/docs/ref/rst/directives.html#generic-admonition > > Thanks. > > -- > An old man doll... just what I always wanted! - Clara
On 2/27/23 23:43, Jeffrey Hugo wrote: > I'm thinking the drm_file.h reference is broken. I suspect it should > reference Documentation/accel/index.rst > I think so, but since the doc tree above only contains "Introduction" doc, the reference should be that doc, right? -- An old man doll... just what I always wanted! - Clara
© 2016 - 2025 Red Hat, Inc.