Re: [PATCH] Documentation: kernel-hacking: Remove :c:func: annotations

From: Jonathan Corbet

Date: Mon Dec 22 2025 - 16:42:24 EST


Thorsten Blum <thorsten.blum@xxxxxxxxx> writes:

> Remove the useless :c:func: annotations.
>
> Suggested-by: Jonathan Corbet <corbet@xxxxxxx>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> Only applies after applying https://lore.kernel.org/lkml/20251219171827.44015-2-thorsten.blum@xxxxxxxxx/
> ---
> Documentation/kernel-hacking/hacking.rst | 169 +++++++++++------------
> 1 file changed, 84 insertions(+), 85 deletions(-)
>
> diff --git a/Documentation/kernel-hacking/hacking.rst b/Documentation/kernel-hacking/hacking.rst
> index 06fcb7c662d3..8593ef3b8e6c 100644
> --- a/Documentation/kernel-hacking/hacking.rst
> +++ b/Documentation/kernel-hacking/hacking.rst
> @@ -49,7 +49,7 @@ User Context
>
> User context is when you are coming in from a system call or other trap:
> like userspace, you can be preempted by more important tasks and by
> -interrupts. You can sleep by calling :c:func:`schedule()`.
> +interrupts. You can sleep by calling `schedule()`.

Almost ... the `backticks` are part of the :c:func: markup and need to
go as well.

Thanks,

jon