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

John Hubbard posted 2 patches 1 month ago
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
[PATCH v2 0/2] gpu: nova-core: use CStr::from_bytes_until_nul() and remove util.rs
Posted by John Hubbard 1 month ago
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@nvidia.com

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

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
Re: [PATCH v2 0/2] gpu: nova-core: use CStr::from_bytes_until_nul() and remove util.rs
Posted by Danilo Krummrich 1 month ago
On Tue Jan 6, 2026 at 4:52 AM CET, John Hubbard wrote:
> 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()

Applied to drm-rust-next, thanks!