Skip to content

rust: kernel: add missing safety documentation

Navaneeth K lkml rust-for-linux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2rust: kernel: document safety for rust_fmt_argumentrust/kernel/print.rs+1 -11 reply
2/2rust: kernel: document safety for as_str_uncheckedrust/kernel/str.rs+1 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] rust: kernel: add missing safety documentation

This series adds missing // SAFETY: comments to unsafe blocks in the Rust kernel abstractions, replacing existing TODOs.

This aligns the code with the project's requirement that all unsafe blocks must be documented with a safety rationale.

Navaneeth K (2):
rust: kernel: document safety for rust_fmt_argument
rust: kernel: document safety for as_str_unchecked

 rust/kernel/print.rs | 2 +-
 rust/kernel/str.rs   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.43.0