On Mon, May 12, 2025 at 1:41 PM Miguel Ojeda
<[email protected]> wrote:
>
> Doing something unrelated, I got a Clippy warning about this public
By the way, this call (and another one here) to `container_of!` goes
through `Opaque`, so it will not pass the future `assert_same_type`
test we want to have:
error[E0308]: mismatched types
--> rust/kernel/lib.rs:233:32
|
233 | assert_same_type($ptr,
::core::ptr::addr_of!((*container).$($f)*).cast_mut());
| ----------------
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const
drm_device`, found `*mut Opaque<drm_device>`
Cheers,
Miguel