]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: drm: use `pin_init::zeroed()` for file operations initialization
authorAtharv Dubey <atharvd440@gmail.com>
Mon, 1 Dec 2025 15:27:58 +0000 (20:57 +0530)
committerAlice Ryhl <aliceryhl@google.com>
Thu, 18 Dec 2025 08:17:04 +0000 (08:17 +0000)
commit97cf6bc0abd381fd84e5d8e978322a62a58fb00e
tree99302e43bb6cfa2cab4032ae5d5912f63d7c1cfc
parenta625a898ea8f74ca0bb55c6e0c2fcff80edb1068
rust: drm: use `pin_init::zeroed()` for file operations initialization

Replace the manual `unsafe { core::mem::zeroed() }` initialization of
`bindings::file_operations` with `pin_init::zeroed()`. This removes the
explicit unsafe

Signed-off-by: Atharv Dubey <atharvd440@gmail.com>
Link: https://patch.msgid.link/20251201152759.16429-1-atharvd440@gmail.com
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
rust/kernel/drm/gem/mod.rs