[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LSU.2.21.2112221153070.18494@pobox.suse.cz>
Date: Wed, 22 Dec 2021 11:53:36 +0100 (CET)
From: Miroslav Benes <mbenes@...e.cz>
To: David Vernet <void@...ifault.com>
cc: pmladek@...e.com, live-patching@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org,
jpoimboe@...hat.com, jikos@...nel.org, joe.lawrence@...hat.com,
corbet@....net
Subject: Re: [PATCH v3] Documentation: livepatch: Add livepatch API page
On Tue, 21 Dec 2021, David Vernet wrote:
> The livepatch subsystem has several exported functions and objects with
> kerneldoc comments. Though the livepatch documentation contains handwritten
> descriptions of all of these exported functions, they are currently not
> pulled into the docs build using the kernel-doc directive.
>
> In order to allow readers of the documentation to see the full kerneldoc
> comments in the generated documentation files, this change adds a new
> Documentation/livepatch/api.rst page which contains kernel-doc directives
> to link the kerneldoc comments directly in the documentation. With this,
> all of the hand-written descriptions of the APIs now cross-reference the
> kerneldoc comments on the new Livepatching APIs page, and running
> ./scripts/find-unused-docs.sh on kernel/livepatch no longer shows any files
> as missing documentation.
>
> Note that all of the handwritten API descriptions were left alone with the
> exception of Documentation/livepatch/system-state.rst, which was updated to
> allow the cross-referencing to work correctly. The file now follows the
> cross-referencing formatting guidance specified in
> Documentation/doc-guide/kernel-doc.rst. Furthermore, some comments around
> klp_shadow_free_all() were updated to say <_, id> rather than <*, id> to
> match the rest of the file, and to prevent the docs build from emitting an
> "Inline emphasis start-string without end string" error.
>
> Signed-off-by: David Vernet <void@...ifault.com>
Acked-by: Miroslav Benes <mbenes@...e.cz>
M
Powered by blists - more mailing lists