Re: [PATCH] rust: put C helper exports in a dedicated namespace

From: Miguel Ojeda

Date: Sun Nov 22 2026 - 06:38:41 EST


On Sat, Nov 21, 2026 at 6:50 PM <peder.bergan@xxxxxxxxx> wrote:
>
> 1. Would you prefer I wait for Giuliano's series to land or send v3
> with it listed as a prerequisite?

Either way is fine, i.e. in general you can send patches that are
conditional to other patches (within reason, of course).

> 2. Should I keep the KASAN import for v3 or move automatic imports
> into modpost in this series?
> 3. If you prefer modpost, should it add the import only when a module
> contains a Rust object and references a RUST_HELPERS export?

If the `modpost` approach (or similar) works, then I was thinking it
may not need the manual imports, i.e. the idea is to avoid having to
write those manual annotations if the automatic way can figure it out
when to add it. But I didn't actually try it -- maybe I am missing
something.

Thanks!

Cheers,
Miguel