mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-25 08:56:59 +08:00
rust_binder: 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> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Link: https://patch.msgid.link/20251222-cstr-staging-v1-1-974149ba4a79@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
582ce8ea20
commit
46c549ef78
@@ -296,7 +296,7 @@ impl kernel::Module for BinderModule {
|
||||
|
||||
pr_warn!("Loaded Rust Binder.");
|
||||
|
||||
BINDER_SHRINKER.register(kernel::c_str!("android-binder"))?;
|
||||
BINDER_SHRINKER.register(c"android-binder")?;
|
||||
|
||||
// SAFETY: The module is being loaded, so we can initialize binderfs.
|
||||
unsafe { kernel::error::to_result(binderfs::init_rust_binderfs())? };
|
||||
|
||||
Reference in New Issue
Block a user