diff options
| author | Tamir Duberstein <tamird@gmail.com> | 2025-10-18 15:16:31 -0400 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2025-10-22 07:14:47 +0200 |
| commit | 965a39a9627bfaee5a4f7471097439da19008338 (patch) | |
| tree | 751ace352bfa04a7d350cb714e11e5f7068e1963 /rust/kernel/xarray.rs | |
| parent | 5b60cde74bb77aaec72d47fc208e4b057f618336 (diff) | |
rust: opp: use `CStr::as_char_ptr`
Replace the use of `as_ptr` which works through `<CStr as
Deref<Target=&[u8]>::deref()` in preparation for replacing
`kernel::str::CStr` with `core::ffi::CStr` as the latter does not
implement `Deref<Target=&[u8]>`.
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://patch.msgid.link/20251018-cstr-core-v18-10-9378a54385f8@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/kernel/xarray.rs')
0 files changed, 0 insertions, 0 deletions
