Skip to content

rust: re-export `unsafe_precondition_assert!` and use in cpu module

Ritvik Gupta lkml rust-for-linux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 2 repliesIn review

Changes in v2 from the cover letter

- Split into two patches
- Add new patch to re-export unsafe_precondition_assert! from the prelude.
- Fix message formatting and copy-paste error.
- Link to v1: https://lore.kernel.org/rust-for-linux/[email protected]/

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2rust: prelude: re-export `unsafe_precondition_assert!`rust/kernel/prelude.rs+1 -00 replies
2/2rust: cpu: use `unsafe_precondition_assert!`rust/kernel/cpu.rs+17 -52 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] rust: re-export `unsafe_precondition_assert!` and use in cpu module

This series consists of two patches that together re-export unsafe_precondition_assert! macro from the prelude and use it in the cpu module.

---

Changes in v2:
- Split into two patches
- Add new patch to re-export unsafe_precondition_assert! from the prelude.
- Fix message formatting and copy-paste error.
- Link to v1: https://lore.kernel.org/rust-for-linux/[email protected]/

---

Ritvik Gupta (2):
rust: prelude: re-export unsafe_precondition_assert!
rust: cpu: use unsafe_precondition_assert!

 rust/kernel/cpu.rs     | 22 +++++++++++++++++-----
 rust/kernel/prelude.rs |  1 +
 2 files changed, 18 insertions(+), 5 deletions(-)
Signature · 1 line
2.54.0