summaryrefslogtreecommitdiff
path: root/tools/docs/parse-headers.py
diff options
context:
space:
mode:
authorSiyuan Huang <huangsiyuan@kylinos.cn>2025-10-20 11:12:04 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-10-27 20:27:05 +0100
commit040beccb038b7a7dec60ef20383278347a2aa09e (patch)
tree51f50b5c5c0d99d5816252efe44a6a7fb7c393c8 /tools/docs/parse-headers.py
parentdcb6fa37fd7bc9c3d2b066329b0d27dedf8becaa (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/docs/parse-headers.py')
0 files changed, 0 insertions, 0 deletions