Re: [PATCH v2 1/6] rust: add `container_of!` macro

From: Miguel Ojeda
Date: Sun Feb 25 2024 - 15:28:54 EST


On Mon, Feb 19, 2024 at 12:48 PM Matt Gilbride <mattgilbride@googlecom> wrote:
>
> From: Wedson Almeida Filho <wedsonaf@xxxxxxxxx>
>
> This macro is used to obtain a pointer to an entire struct
> when given a pointer to a field in that struct.
>
> Signed-off-by: Wedson Almeida Filho <wedsonaf@xxxxxxxxx>
> Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> Tested-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> Signed-off-by: Matt Gilbride <mattgilbride@xxxxxxxxxx>

Applied to `rust-next` -- thanks everyone!

I took #1 of this series for the time being so that we have
`container_of!` in already since others were waiting for it.

Cheers,
Miguel