[PATCH v2 0/2] gpu: nova-core: use CStr::from_bytes_until_nul() and remove util.rs

From: John Hubbard

Date: Mon Jan 05 2026 - 22:54:08 EST


Alex Courbot's "[PATCH v2 00/10] gpu: nova-core: miscellaneous
improvements" series [1] includes a similar patch as my patch 1 here,
but this one here goes further and deletes the entire util.rs file.

This is based upon the latest drm-rust-next.

Changes in v2:

1) added a second patch, as suggested by Joel Fernandes, to do a little
more cleanup.

2) Added Joel's reviewed-by tag to the first patch.

v1 is here:
https://lore.kernel.org/20260103013438.247759-1-jhubbard@xxxxxxxxxx

[1] https://lore.kernel.org/20251216-nova-misc-v2-0-dc7b42586c04@xxxxxxxxxx

John Hubbard (2):
gpu: nova-core: use CStr::from_bytes_until_nul() and remove util.rs
gpu: nova-core: use CStr::from_bytes_until_nul() in elf64_section()

John Hubbard (2):
gpu: nova-core: use CStr::from_bytes_until_nul() and remove util.rs
gpu: nova-core: use CStr::from_bytes_until_nul() in elf64_section()

drivers/gpu/nova-core/firmware/gsp.rs | 5 +----
drivers/gpu/nova-core/gsp/commands.rs | 5 +++--
drivers/gpu/nova-core/nova_core.rs | 1 -
drivers/gpu/nova-core/util.rs | 16 ----------------
4 files changed, 4 insertions(+), 23 deletions(-)
delete mode 100644 drivers/gpu/nova-core/util.rs


base-commit: 7acc70476f14661149774ab88d3fe23d83ba4249
prerequisite-patch-id: df9c0cfe56901c27064ac88972dffe3a4314c2f8
--
2.52.0