[PATCH v2 2/8] riscv: mm: Change attribute from __init to __meminit for page functions
David Hildenbrand
david at redhat.com
Tue May 14 08:59:35 PDT 2024
On 14.05.24 16:04, Björn Töpel wrote:
> From: Björn Töpel <bjorn at rivosinc.com>
>
> Prepare for memory hotplugging support by changing from __init to
> __meminit for the page table functions that are used by the upcoming
> architecture specific callbacks.
>
> Changing the __init attribute to __meminit, avoids that the functions
> are removed after init. The __meminit attribute makes sure the
> functions are kept in the kernel text post init, but only if memory
> hotplugging is enabled for the build.
>
> Also, make sure that the altmap parameter is properly passed on to
> vmemmap_populate_hugepages().
>
> Signed-off-by: Björn Töpel <bjorn at rivosinc.com>
> ---
Reviewed-by: David Hildenbrand <david at redhat.com>
--
Cheers,
David / dhildenb
More information about the linux-riscv
mailing list