Re: [PATCH] rust: list: Add an example for `ListLinksSelfPtr` usage

From: Boqun Feng
Date: Sat Jul 19 2025 - 21:26:20 EST


On Sat, Jul 19, 2025 at 10:54:45PM +0200, Miguel Ojeda wrote:
> On Sat, Jul 19, 2025 at 10:36 PM Boqun Feng <boqun.feng@xxxxxxxxx> wrote:
> >
> > It appears that the support for `ListLinksSelfPtr` is dead code at the
> > moment [1]. Hence add an example similar to `ListLinks` usage to help
> > catching bugs and demonstrating the usage.
> >
> > The example is mostly based on Alice's usage in binder driver[2].
> >
> > Link: https://lore.kernel.org/rust-for-linux/20250719183649.596051-1-ojeda@xxxxxxxxxx/ [1]
> > Link: https://lore.kernel.org/rust-for-linux/20231101-rust-binder-v1-4-08ba9197f637@xxxxxxxxxx/ [2]
> > Signed-off-by: Boqun Feng <boqun.feng@xxxxxxxxx>
>
> I sent that one because I am applying Tamir's series, which triggered
> the error -- maybe you can put it on top of those?
>

Sure. I overlooked Tamir's series.

> If you do, please note that you need a couple changes -- I will push
> them to `rust-next` so that you have them.
>

Will do, thank you. ;-)

Regards,
Boqun

> https://lore.kernel.org/rust-for-linux/20250709-list-no-offset-v4-5-a429e75840a9@xxxxxxxxx/
>
> Thanks!
>
> Cheers,
> Miguel