Skip to content

Commit 141ba59

Browse files
tamirdojeda
authored andcommitted
rust: firmware: use core::ffi::CStr method names
Prepare for `core::ffi::CStr` taking the place of `kernel::str::CStr` by avoid methods that only exist on the latter. Link: #1075 Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Benno Lossin <lossin@kernel.org> Acked-by: Danilo Krummrich <dakr@kernel.org> Signed-off-by: Tamir Duberstein <tamird@gmail.com> Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 2321842 commit 141ba59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/kernel/firmware.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ impl<const N: usize> ModInfoBuilder<N> {
291291
let module_name = this.module_name;
292292

293293
if !this.module_name.is_empty() {
294-
this = this.push_internal(module_name.as_bytes_with_nul());
294+
this = this.push_internal(module_name.to_bytes_with_nul());
295295

296296
if N != 0 {
297297
// Re-use the space taken by the NULL terminator and swap it with the '.' separator.

0 commit comments

Comments
 (0)