[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANiq72m7S5aK22yzeGykGH2zhvL_UrTE2jxf2-6Fx_8oWR=nPQ@mail.gmail.com>
Date: Wed, 14 Jan 2026 15:37:24 +0100
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: Kari Argillander <kari.argillander@...il.com>
Cc: Miguel Ojeda <ojeda@...nel.org>, Boqun Feng <boqun.feng@...il.com>, Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <lossin@...nel.org>, Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>, Trevor Gross <tmgross@...ch.edu>,
Danilo Krummrich <dakr@...nel.org>, Alexandre Courbot <acourbot@...dia.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>, rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-modules@...r.kernel.org,
Luis Chamberlain <mcgrof@...nel.org>, Petr Pavlu <petr.pavlu@...e.com>,
Daniel Gomez <da.gomez@...nel.org>, Sami Tolvanen <samitolvanen@...gle.com>,
Aaron Tomlin <atomlin@...mlin.com>, Youseok Yang <ileixe@...il.com>, Yuheng Su <gipsyh.icu@...il.com>
Subject: Re: [PATCH RFC v3 00/15] rust: Reimplement ThisModule to fix
ownership problems
On Sat, Jan 10, 2026 at 4:09 PM Kari Argillander
<kari.argillander@...il.com> wrote:
>
> So currently we have problem that we are not always filling .owner field
> example for file_operations. I think we can enable const_refs_to_static
> already as that is in 1.78 and is stable in 1.83. So that fits perfecly
> for us. This also seems to be quite request feature but I did not found
> that no one has ever suggested that we just enable this.
For context, we have been tracking that feature (as well as
`const_mut_refs`) precisely for `THIS_MODULE`:
https://github.com/Rust-for-Linux/linux/issues/2
There is also a test that Ralf added upstream back then:
https://github.com/rust-lang/rust/blob/main/tests/ui/consts/const-ref-to-static-linux-vtable.rs
(Not sure what you mean by "quite request" though)
Cheers,
Miguel
Powered by blists - more mailing lists