aboutsummaryrefslogtreecommitdiff
path: root/drivers/accel/qaic
diff options
context:
space:
mode:
authorGravatar Miguel Ojeda <ojeda@kernel.org> 2024-05-19 23:07:35 +0200
committerGravatar Miguel Ojeda <ojeda@kernel.org> 2024-06-11 23:33:28 +0200
commita126eca844353360ebafa9088d22865cb8e022e3 (patch)
treeec6bd5133ec87ca3f97ca23c7050e696f46f47fb /drivers/accel/qaic
parentLinux 6.10-rc3 (diff)
downloadlinux-a126eca844353360ebafa9088d22865cb8e022e3.tar.gz
linux-a126eca844353360ebafa9088d22865cb8e022e3.tar.bz2
linux-a126eca844353360ebafa9088d22865cb8e022e3.zip
rust: avoid unused import warning in `rusttest`
When compiling for the `rusttest` target, the `core::ptr` import is unused since its only use happens in the `reserve()` method which is not compiled in that target: warning: unused import: `core::ptr` --> rust/kernel/alloc/vec_ext.rs:7:5 | 7 | use core::ptr; | ^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default Thus clean it. Fixes: 97ab3e8eec0c ("rust: alloc: fix dangling pointer in VecExt<T>::reserve()") Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Danilo Krummrich <dakr@redhat.com> Link: https://lore.kernel.org/r/20240519210735.587323-1-ojeda@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'drivers/accel/qaic')
0 files changed, 0 insertions, 0 deletions