Re: [PATCH] rust: alloc: Fix unused import warning
From: Miguel Ojeda
Date: Thu Jun 20 2024 - 03:49:55 EST
On Thu, Jun 20, 2024 at 4:11 AM Ethan D. Twardy <ethan.twardy@xxxxxxxxx> wrote:
>
> core::ptr is only used in code that's not compiled during test, which
> causes rustc to emit the below warning while building the rusttest
> target. Add a conditional attribute to match conditions at the usage
> site.
We have an alternative fix (that avoids conditional compilation) for
this one in the `rust-fixes` branch that I am planning to send to
Linus this week.
https://lore.kernel.org/r/20240519210735.587323-1-ojeda@xxxxxxxxxx
If that one does not fix the issue for you, please let me know!
Thanks!
Cheers,
Miguel