mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01:00
rust: auxiliary: replace kernel::c_str! with C-Strings
C-String literals were added in Rust 1.77. Replace instances of `kernel::c_str!` with C-String literals where possible. Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Benno Lossin <lossin@kernel.org> Signed-off-by: Tamir Duberstein <tamird@gmail.com> Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com> Link: https://patch.msgid.link/20251222-cstr-driver-core-v1-1-1142a177d0fd@gmail.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
parent
9202cef05d
commit
6fc4b5eb63
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@
|
|||
//! To make this driver probe, QEMU must be run with `-device pci-testdev`.
|
||||
|
||||
use kernel::{
|
||||
auxiliary, c_str,
|
||||
auxiliary,
|
||||
device::{Bound, Core},
|
||||
devres::Devres,
|
||||
driver,
|
||||
|
|
@ -19,7 +19,7 @@ use core::any::TypeId;
|
|||
use pin_init::PinInit;
|
||||
|
||||
const MODULE_NAME: &CStr = <LocalModule as kernel::ModuleMetadata>::NAME;
|
||||
const AUXILIARY_NAME: &CStr = c_str!("auxiliary");
|
||||
const AUXILIARY_NAME: &CStr = c"auxiliary";
|
||||
|
||||
struct AuxiliaryDriver;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue