[PATCH v2 7/8] rust: drm: gem: Add GEM object abstraction
Miguel Ojeda
miguel.ojeda.sandonis at gmail.com
Mon May 12 11:48:47 UTC 2025
On Mon, May 12, 2025 at 1:41 PM Miguel Ojeda
<miguel.ojeda.sandonis at gmail.com> 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
More information about the dri-devel
mailing list