public inbox for rust-for-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/7] rust: Replace unsafe core::mem::zeroed() with pin_init::zeroed()
@ 2026-01-20  8:38 Ke Sun
  2026-01-20  8:38 ` [PATCH v2 1/7] rust: auxiliary: use pin_init::zeroed() instead of unsafe zeroed Ke Sun
                   ` (9 more replies)
  0 siblings, 10 replies; 16+ messages in thread
From: Ke Sun @ 2026-01-20  8:38 UTC (permalink / raw)
  To: rust-for-linux
  Cc: Greg Kroah-Hartman, Miguel Ojeda, Gary Guo, Björn Roy Baron,
	Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross,
	Danilo Krummrich, Ke Sun

This patch series replaces unsafe core::mem::zeroed() calls with
pin_init::zeroed() across multiple kernel modules.

---
v2:
- Remove all the comments about zeroability

v1: https://lore.kernel.org/rust-for-linux/20260119065859.1914178-1-sunke@kylinos.cn/
- First version
---

Ke Sun (7):
  rust: auxiliary: use pin_init::zeroed() instead of unsafe zeroed
  rust: block: mq: use pin_init::zeroed() for queue_limits
  rust: block: mq: use pin_init::zeroed() for tag_set
  rust: debugfs: use pin_init::zeroed() for file_operations
  rust: of: use pin_init::zeroed() instead of unsafe zeroed
  rust: pwm: use pin_init::zeroed() for pwm_ops
  rust: security: use pin_init::zeroed() for lsm_context

 rust/kernel/auxiliary.rs         |  4 +---
 rust/kernel/block/mq/gen_disk.rs |  3 +--
 rust/kernel/block/mq/tag_set.rs  |  4 +---
 rust/kernel/debugfs/file_ops.rs  | 18 ++++++------------
 rust/kernel/of.rs                |  3 +--
 rust/kernel/pwm.rs               |  4 +---
 rust/kernel/security.rs          |  3 +--
 7 files changed, 12 insertions(+), 27 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-01-27 10:05 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-20  8:38 [PATCH v2 0/7] rust: Replace unsafe core::mem::zeroed() with pin_init::zeroed() Ke Sun
2026-01-20  8:38 ` [PATCH v2 1/7] rust: auxiliary: use pin_init::zeroed() instead of unsafe zeroed Ke Sun
2026-01-20  8:38 ` [PATCH v2 2/7] rust: block: mq: use pin_init::zeroed() for queue_limits Ke Sun
2026-01-21  9:51   ` Andreas Hindborg
2026-01-20  8:38 ` [PATCH v2 3/7] rust: block: mq: use pin_init::zeroed() for tag_set Ke Sun
2026-01-21  9:52   ` Andreas Hindborg
2026-01-20  8:38 ` [PATCH v2 4/7] rust: debugfs: use pin_init::zeroed() for file_operations Ke Sun
2026-01-25 22:45   ` Danilo Krummrich
2026-01-20  8:38 ` [PATCH v2 5/7] rust: of: use pin_init::zeroed() instead of unsafe zeroed Ke Sun
2026-01-20  8:38 ` [PATCH v2 6/7] rust: pwm: use pin_init::zeroed() for pwm_ops Ke Sun
2026-01-20  8:38 ` [PATCH v2 7/7] rust: security: use pin_init::zeroed() for lsm_context Ke Sun
2026-01-20 16:04 ` [PATCH v2 0/7] rust: Replace unsafe core::mem::zeroed() with pin_init::zeroed() Gary Guo
2026-01-21 14:47 ` (subset) " Jens Axboe
2026-01-25 19:24 ` Miguel Ojeda
2026-01-27  5:56   ` Ke Sun
2026-01-27 10:05     ` Miguel Ojeda

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