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

Ritvik Gupta posted 2 patches 6 days, 4 hours ago
rust/kernel/cpu.rs     | 22 +++++++++++++++++-----
rust/kernel/prelude.rs |  1 +
2 files changed, 18 insertions(+), 5 deletions(-)
[PATCH v2 0/2] rust: re-export `unsafe_precondition_assert!` and use in cpu module
Posted by Ritvik Gupta 6 days, 4 hours ago
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/20260518174414.204573-1-ritvikfoss@gmail.com/

---

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(-)

-- 
2.54.0