Messages in this thread | | | From | Miguel Ojeda <> | Date | Sat, 17 Dec 2022 00:57:21 +0100 | Subject | Re: [PATCH] rust: kernel: drop repetition in offset_of macro |
| |
On Sat, Dec 17, 2022 at 12:30 AM Wei Liu <wei.liu@kernel.org> 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
| |