Rust for Linux List
 help / color / mirror / Atom feed
* [PATCH v2 0/2] rust: re-export `unsafe_precondition_assert!` and use in cpu module
@ 2026-05-18 23:01 Ritvik Gupta
  2026-05-18 23:01 ` [PATCH v2 1/2] rust: prelude: re-export `unsafe_precondition_assert!` Ritvik Gupta
  2026-05-18 23:01 ` [PATCH v2 2/2] rust: cpu: use `unsafe_precondition_assert!` Ritvik Gupta
  0 siblings, 2 replies; 4+ messages in thread
From: Ritvik Gupta @ 2026-05-18 23:01 UTC (permalink / raw)
  To: tglx, peterz, ojeda, boqun, gary, bjorn3_gh, lossin, a.hindborg,
	aliceryhl, tmgross, dakr
  Cc: linux-kernel, rust-for-linux, skhan

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-05-19  5:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-18 23:01 [PATCH v2 0/2] rust: re-export `unsafe_precondition_assert!` and use in cpu module Ritvik Gupta
2026-05-18 23:01 ` [PATCH v2 1/2] rust: prelude: re-export `unsafe_precondition_assert!` Ritvik Gupta
2026-05-18 23:01 ` [PATCH v2 2/2] rust: cpu: use `unsafe_precondition_assert!` Ritvik Gupta
2026-05-19  5:41   ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox