Re: [PATCH] vmalloc: export vrealloc_node_align_noprof
From: Danilo Krummrich
Date: Wed Jan 07 2026 - 10:18:52 EST
On 1/7/26 4:16 PM, Alice Ryhl wrote:
> This symbol is used from the Nova driver, so it needs to be exported to
> avoid a build failure when building Nova as a module.
>
> ERROR: modpost: "vrealloc_node_align_noprof" [drivers/gpu/nova-core/nova_core.ko] undefined!
> ERROR: modpost: "vrealloc_node_align_noprof" [samples/rust/rust_dma.ko] undefined!
>
> This error is only triggered if helpers are inlined into Rust.
> Otherwise, Nova will call the exported symbol
>
> rust_helper_vrealloc_node_align()
>
> instead. There is no Fixes: tag as that feature is still WIP.
>
> I used non-GPL EXPORT_SYMBOL to match the rest of the file, but let me
> know if I should use EXPORT_SYMBOL_GPL.
>
> Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
Reviewed-by: Danilo Krummrich <dakr@xxxxxxxxxx>