summaryrefslogtreecommitdiff
path: root/include/linux/device
diff options
context:
space:
mode:
authorAtharv Dubey <atharvd440@gmail.com>2025-11-29 18:17:06 +0530
committerDanilo Krummrich <dakr@kernel.org>2026-01-25 23:09:09 +0100
commit1cab0874875a1c37f71edf1e1e3029b1cf31d81e (patch)
treee2525000f8339b4a784f062cd112f3f056023651 /include/linux/device
parentae3bf7612220ac8a8020a285142e0d918543a408 (diff)
rust: auxiliary: use `pin_init::zeroed()` for device ID
Replace the previous `unsafe { core::mem::zeroed() }` initialization for `bindings::auxillary_device_id` with `pin_init::zeroed()`. This removes the explicit unsafe block and uses the safer pinned zero-initialization helper. Suggested-by: Benno Lossin <lossin@kernel.org> Signed-off-by: Atharv Dubey <atharvd440@gmail.com> Link: https://github.com/Rust-for-Linux/linux/issues/1189 Link: https://patch.msgid.link/20251129124706.26263-1-atharvd440@gmail.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'include/linux/device')
0 files changed, 0 insertions, 0 deletions