Re: [PATCH] rust: kernel: drop repetition in offset_of macro

From: Miguel Ojeda
Date: Fri Dec 16 2022 - 18:57:39 EST


On Sat, Dec 17, 2022 at 12:30 AM Wei Liu <wei.liu@xxxxxxxxxx> wrote:
>
> What will be even better is someone please contribute such a macro to
> libcore so that I don't have to replicate the code snippet everywhere.
> :-)

It is happening! :-) See https://github.com/rust-lang/rfcs/pull/3308,
currently at the end of the FCP ("final comment period"), i.e. the RFC
is likely getting accepted soon.

We track it at https://github.com/Rust-for-Linux/linux/issues/514 (one
of the sub-lists in issue #2).

Cheers,
Miguel