* [PATCH] doc-guide: kernel-doc: add %CONST examples
@ 2025-11-04 5:09 Randy Dunlap
2025-11-05 18:29 ` Jonathan Corbet
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2025-11-04 5:09 UTC (permalink / raw)
To: linux-kernel; +Cc: Randy Dunlap, Tony Luck, Jonathan Corbet, linux-doc
Add examples of using '%' for formatting constant values to
facilitate more usage of "%CONST" in kernel-doc.
Suggested-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
---
Documentation/doc-guide/kernel-doc.rst | 4 ++++
1 file changed, 4 insertions(+)
--- linux-next-20251103.orig/Documentation/doc-guide/kernel-doc.rst
+++ linux-next-20251103/Documentation/doc-guide/kernel-doc.rst
@@ -405,6 +405,10 @@ Domain`_ references.
``%CONST``
Name of a constant. (No cross-referencing, just formatting.)
+ Examples::
+
+ %0 %NULL %-1 %-EFAULT %-EINVAL %-ENOMEM
+
````literal````
A literal block that should be handled as-is. The output will use a
``monospaced font``.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] doc-guide: kernel-doc: add %CONST examples
2025-11-04 5:09 [PATCH] doc-guide: kernel-doc: add %CONST examples Randy Dunlap
@ 2025-11-05 18:29 ` Jonathan Corbet
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2025-11-05 18:29 UTC (permalink / raw)
To: Randy Dunlap, linux-kernel; +Cc: Randy Dunlap, Tony Luck, linux-doc
Randy Dunlap <rdunlap@infradead.org> writes:
> Add examples of using '%' for formatting constant values to
> facilitate more usage of "%CONST" in kernel-doc.
>
> Suggested-by: Tony Luck <tony.luck@intel.com>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> ---
> Cc: Jonathan Corbet <corbet@lwn.net>
> Cc: linux-doc@vger.kernel.org
> ---
> Documentation/doc-guide/kernel-doc.rst | 4 ++++
> 1 file changed, 4 insertions(+)
>
> --- linux-next-20251103.orig/Documentation/doc-guide/kernel-doc.rst
> +++ linux-next-20251103/Documentation/doc-guide/kernel-doc.rst
> @@ -405,6 +405,10 @@ Domain`_ references.
> ``%CONST``
> Name of a constant. (No cross-referencing, just formatting.)
>
> + Examples::
> +
> + %0 %NULL %-1 %-EFAULT %-EINVAL %-ENOMEM
> +
> ````literal````
> A literal block that should be handled as-is. The output will use a
> ``monospaced font``.
Applied, thanks.
jon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-05 18:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-04 5:09 [PATCH] doc-guide: kernel-doc: add %CONST examples Randy Dunlap
2025-11-05 18:29 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®