]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: debugfs: use pin_init::zeroed() for file_operations
authorKe Sun <sunke@kylinos.cn>
Tue, 20 Jan 2026 08:38:20 +0000 (16:38 +0800)
committerDanilo Krummrich <dakr@kernel.org>
Sun, 25 Jan 2026 19:53:30 +0000 (20:53 +0100)
commitae3bf7612220ac8a8020a285142e0d918543a408
tree98a8a42d433cb49d749353a4c2f23c8f13616116
parentf8ed7a49d40aea7769d80e05a3b7b14594cb3aef
rust: debugfs: use pin_init::zeroed() for file_operations

Replace unsafe core::mem::zeroed() with pin_init::zeroed() for
file_operations initialization in all debugfs file operation
implementations.

Suggested-by: Benno Lossin <lossin@kernel.org>
Signed-off-by: Ke Sun <sunke@kylinos.cn>
Link: https://github.com/Rust-for-Linux/linux/issues/1189
Link: https://patch.msgid.link/20260120083824.477339-5-sunke@kylinos.cn
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/debugfs/file_ops.rs