Re: [PATCH 2/5] devres: export devres_node_init() and devres_node_add()

From: Danilo Krummrich

Date: Fri Feb 06 2026 - 06:47:31 EST


On Fri Feb 6, 2026 at 12:34 PM CET, Alice Ryhl wrote:
> That doesn't work if this option is enabled:
> https://lore.kernel.org/all/20260203-inline-helpers-v2-0-beb8547a03c9@xxxxxxxxxx/
>
> then the helper is linked into the module, so it still has a direct
> call to devres_nod_init.

That's unfortunate, maybe we can leverage MODULE_IMPORT_NS() and
EXPORT_SYMBOL_NS_GPL(), i.e.

#define EXPORT_SYMBOL_RUST_INTERNAL(sym) EXPORT_SYMBOL_NS_GPL(sym, "RUST_INTERNAL")