]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: use CStr::from_bytes_until_nul() and remove util.rs
authorJohn Hubbard <jhubbard@nvidia.com>
Tue, 6 Jan 2026 03:52:25 +0000 (19:52 -0800)
committerDanilo Krummrich <dakr@kernel.org>
Wed, 7 Jan 2026 18:36:11 +0000 (19:36 +0100)
commitda8264ce6c5c02b78f95d31021e942ab38d8dd39
tree8ed0552d9b0064e58199eecb18df028168e58521
parent4348796233e736147e2e79c58784d0a9fb48867d
gpu: nova-core: use CStr::from_bytes_until_nul() and remove util.rs

The util.rs module contained a single helper function,
str_from_null_terminated(), which duplicated functionality that is now
available in core::ffi::CStr.

Specifically, CStr::from_bytes_until_nul() is available in the kernel's
minimum supported Rust version (1.78.0), so it time to stop using this
custom workaround.

Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Link: https://patch.msgid.link/20260106035226.48853-2-jhubbard@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/nova-core/gsp/commands.rs
drivers/gpu/nova-core/nova_core.rs
drivers/gpu/nova-core/util.rs [deleted file]