]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
samples: rust: debugfs: use `core::ffi::CStr` method names
authorMiguel Ojeda <ojeda@kernel.org>
Sun, 19 Oct 2025 20:13:49 +0000 (22:13 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 20 Oct 2025 02:04:23 +0000 (04:04 +0200)
commit7b0c32cbed761335b0fa7f3db232ad69bc23ce69
tree0a2e09bba484770b992af4357b45aa462d8286bf
parent3f0dd5fad9ac275648bd7407f032a8b7adaf204f
samples: rust: debugfs: use `core::ffi::CStr` method names

Prepare for `core::ffi::CStr` taking the place of `kernel::str::CStr` by
avoiding methods that only exist on the latter.

This backslid in commit d4a5d397c7fb ("samples: rust: Add scoped debugfs
sample driver").

Link: https://patch.msgid.link/20251019213049.2060970-1-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
samples/rust/rust_debugfs_scoped.rs