Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Tamir Duberstein and committed by
Greg Kroah-Hartman
46c549ef 582ce8ea

+1 -1
+1 -1
drivers/android/binder/rust_binder_main.rs
··· 296 296 297 297 pr_warn!("Loaded Rust Binder."); 298 298 299 - BINDER_SHRINKER.register(kernel::c_str!("android-binder"))?; 299 + BINDER_SHRINKER.register(c"android-binder")?; 300 300 301 301 // SAFETY: The module is being loaded, so we can initialize binderfs. 302 302 unsafe { kernel::error::to_result(binderfs::init_rust_binderfs())? };