Re: Re: [PATCH v2 1/6] rust: module: add static pointer to `{init,cleanup}_module()`

From: Miguel Ojeda
Date: Thu Jul 25 2024 - 13:47:37 EST


On Wed, 24 Jul 2024 20:46:49 +0100 Gary Guo <gary@xxxxxxxxxxx> wrote:
>
> Should this be in section `.discard.addressable` instead?

No, we need to mimic the call to `___ADDRESSABLE()` (i.e. the one with
3 underscores, not 2), which passes `__{init,exit}data`.

By the way, thanks for the reviews Gary!

Cheers,
Miguel