Re: [PATCH v2 0/2] Add Opaque::cast_from

2025-07-16 Thread Miguel Ojeda
On Tue, Jun 24, 2025 at 5:28 PM Alice Ryhl wrote: > > Since commit b20fbbc08a36 ("rust: check type of `$ptr` in > `container_of!`") we have enforced that the field pointer passed to > container_of! must match the declared field. This caused mismatches when > using a pointer to bindings::x for fiel

Re: [PATCH v2 0/2] Add Opaque::cast_from

2025-07-15 Thread Danilo Krummrich
On Tue Jun 24, 2025 at 5:27 PM CEST, Alice Ryhl wrote: > Since commit b20fbbc08a36 ("rust: check type of `$ptr` in > `container_of!`") we have enforced that the field pointer passed to > container_of! must match the declared field. This caused mismatches when > using a pointer to bindings::x for fi

Re: [PATCH v2 0/2] Add Opaque::cast_from

2025-07-15 Thread Andreas Hindborg
"Alice Ryhl" writes: > Since commit b20fbbc08a36 ("rust: check type of `$ptr` in > `container_of!`") we have enforced that the field pointer passed to > container_of! must match the declared field. This caused mismatches when > using a pointer to bindings::x for fields of type Opaque. > > This si

Re: [PATCH v2 0/2] Add Opaque::cast_from

2025-06-24 Thread Boqun Feng
On Tue, Jun 24, 2025 at 03:27:54PM +, Alice Ryhl wrote: > Since commit b20fbbc08a36 ("rust: check type of `$ptr` in > `container_of!`") we have enforced that the field pointer passed to > container_of! must match the declared field. This caused mismatches when > using a pointer to bindings::x f

Re: [PATCH v2 0/2] Add Opaque::cast_from

2025-06-24 Thread Danilo Krummrich
On 6/24/25 5:27 PM, Alice Ryhl wrote: Since commit b20fbbc08a36 ("rust: check type of `$ptr` in `container_of!`") we have enforced that the field pointer passed to container_of! must match the declared field. This caused mismatches when using a pointer to bindings::x for fields of type Opaque. T