Re: [PATCH] rust: export zerocopy symbols to modules
From: Miguel Ojeda
Date: Wed Jul 08 2026 - 07:46:26 EST
On Wed, Jul 8, 2026 at 1:34 PM Gary Guo <gary@xxxxxxxxxxx> wrote:
>
> It looks to me that this should be done by fixing zerocopy.
>
> Both these functions should be marked as `#[inline]`. I would expect zerocopy.o
> to be having no .text.
>
> Instead of exporting this, I would vouch for going to another extreme --
> completely leave zerocopy.o unlinked, so we catch cases where code is actually
> generated.
Cc'ing Joshua and Jack -- context here:
https://lore.kernel.org/rust-for-linux/20260708-zerocopy-export-v1-1-2bfc355853c6@xxxxxxxxxx/
Cheers,
Miguel