diff options
| author | John Hubbard <jhubbard@nvidia.com> | 2026-04-10 19:41:17 -0700 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-04-29 00:57:54 +0200 |
| commit | 98e508e5b016cac054ed0f95694a7a3b240108bb (patch) | |
| tree | 6e9fe9f5379422fc104de8086ed322ec8dfb1c37 /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git | |
| parent | d9a6809478f9815b6455a327aa001737ac7b2c09 (diff) | |
gpu: nova-core: use SizeConstants trait for u64 size constants
Replace manual usize-to-u64 conversions of SZ_* constants with the
SizeConstants trait's associated constants on u64. With the
SizeConstants trait in scope, u64::SZ_1M replaces usize_as_u64(SZ_1M)
and similar.
This removes several now-unused imports: usize_as_u64, FromSafeCast,
and individual SZ_* type-level constants.
Reviewed-by: Eliot Courtney <ecourtney@nvidia.com>
Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com>
Acked-by: Gary Guo <gary@garyguo.net>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Link: https://patch.msgid.link/20260411024118.471294-2-jhubbard@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
