diff options
| author | Nicolás Antinori <nico.antinori.7@gmail.com> | 2026-06-29 11:20:05 -0300 |
|---|---|---|
| committer | Alexandre Courbot <acourbot@nvidia.com> | 2026-06-30 22:40:42 +0900 |
| commit | 431f10ba13a964c146ae05728e42e4074bf735ab (patch) | |
| tree | f1a3733853a04cd4ba56e4379ebfdd182c0f0c9c /tools/perf/scripts/python/bin | |
| parent | 23d66dbab84e8518943563df2ced14aaab28b77a (diff) | |
gpu: nova-core: vbios: parse structs via zerocopy
Replace the unsafe `kernel::transmute::FromBytes` trait implementation
for the `FalconUCodeDescV3`, `PcirStruct`, `BitHeader`, `BitToken`,
`NpdeStruct`, `PciRomHeader`, `PmuLookupTableEntry` and
`PmuLookupTableHeader` structs with the derivable `zerocopy::FromBytes`
trait.
This change eliminates the manual unsafe implementations in favor of a
derivable trait. When this trait is derived, validity checks are
performed at compile time to ensure that the type can safely implement
`FromBytes`.
Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1241
Signed-off-by: Nicolás Antinori <nico.antinori.7@gmail.com>
Link: https://patch.msgid.link/20260629142007.269873-1-nico.antinori.7@gmail.com
[acourbot: add `vbios:` prefix to commit title.]
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
