Skip to content

Commit 673ec36

Browse files
committed
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: b6a006e ("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>
1 parent 9f04763 commit 673ec36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/kernel/alloc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ pub mod flags {
9494
///
9595
/// A lower watermark is applied to allow access to "atomic reserves". The current
9696
/// 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`].
9898
pub const GFP_ATOMIC: Flags = Flags(bindings::GFP_ATOMIC);
9999

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
101101
/// for direct access but can direct reclaim.
102102
pub const GFP_KERNEL: Flags = Flags(bindings::GFP_KERNEL);
103103

0 commit comments

Comments
 (0)