diff options
| author | 2025-10-20 11:12:04 +0800 | |
|---|---|---|
| committer | 2025-10-27 20:27:05 +0100 | |
| commit | 040beccb038b7a7dec60ef20383278347a2aa09e (patch) | |
| tree | 51f50b5c5c0d99d5816252efe44a6a7fb7c393c8 /tools/objtool/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com | |
| parent | Linux 6.18-rc3 (diff) | |
rust: acpi: replace `core::mem::zeroed` with `pin_init::zeroed`
All types in `bindings` implement `Zeroable` if they can, so use
`pin_init::zeroed` instead of relying on `unsafe` code.
If this ends up not compiling in the future, something in bindgen or on
the C side changed and is most likely incorrect.
Link: https://github.com/Rust-for-Linux/linux/issues/1189
Suggested-by: Benno Lossin <lossin@kernel.org>
Signed-off-by: Siyuan Huang <huangsiyuan@kylinos.cn>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Reviewed-by: Kunwu Chan <chentao@kylinos.cn>
Link: https://patch.msgid.link/20251020031204.78917-1-huangsiyuan@kylinos.cn
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/objtool/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
