diff options
| author | Gary Guo <gary@garyguo.net> | 2026-02-03 13:06:26 +0000 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2026-03-10 23:52:21 +0100 |
| commit | 1a933719e70787f462d6126230a403c15f95598e (patch) | |
| tree | 1beade5369d04ee0e412cdc562c7f01e4386d89a /rust/kernel/alloc/kvec/errors.rs | |
| parent | f4040a7c3ddf38710f5f9aeb19220da9b614a4b0 (diff) | |
rust: task: use `as_char_ptr` instead of `as_ptr().cast()`
`as_char_ptr` would provide the correct (unsigned char) type without
needing to convert to an intermediate type and cast the pointer.
The `as_ptr()` function is going to be disallowed by clippy warning, so fix
this usage.
This is used only if CONFIG_DEBUG_ATOMIC_SLEEP=y. Instead of conditionally
importing `CStrExt`, import it via prelude instead, and remove other
imports that are already available via the prelude.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202601221157.89t3Sqbl-lkp@intel.com/
Signed-off-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260203130745.868762-1-gary@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
