mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 05:44:45 +01:00
rnull: 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. Signed-off-by: Tamir Duberstein <tamird@gmail.com> Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
f8f9c1f4d0
commit
4cef2fcda3
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ pub(crate) fn subsystem() -> impl PinInit<kernel::configfs::Subsystem<Config>, E
|
|||
],
|
||||
};
|
||||
|
||||
kernel::configfs::Subsystem::new(c_str!("rnull"), item_type, try_pin_init!(Config {}))
|
||||
kernel::configfs::Subsystem::new(c"rnull", item_type, try_pin_init!(Config {}))
|
||||
}
|
||||
|
||||
#[pin_data]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue