Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: alloc: add missing Markdown code spans

Add missing Markdown code spans.

This was found using the Clippy `doc_markdown` lint, which we may want
to enable.

Fixes: b6a006e21b82 ("rust: alloc: introduce allocation flags")
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20250324210359.1199574-4-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>

+2 -2
+2 -2
rust/kernel/alloc.rs
··· 94 94 /// 95 95 /// A lower watermark is applied to allow access to "atomic reserves". The current 96 96 /// implementation doesn't support NMI and few other strict non-preemptive contexts (e.g. 97 - /// raw_spin_lock). The same applies to [`GFP_NOWAIT`]. 97 + /// `raw_spin_lock`). The same applies to [`GFP_NOWAIT`]. 98 98 pub const GFP_ATOMIC: Flags = Flags(bindings::GFP_ATOMIC); 99 99 100 - /// Typical for kernel-internal allocations. The caller requires ZONE_NORMAL or a lower zone 100 + /// Typical for kernel-internal allocations. The caller requires `ZONE_NORMAL` or a lower zone 101 101 /// for direct access but can direct reclaim. 102 102 pub const GFP_KERNEL: Flags = Flags(bindings::GFP_KERNEL); 103 103