Re: [PATCH 10/14] mm: prepare to move subsection_map_init() to mm/sparse-vmemmap.c

David Hildenbrand (Arm)
2026-03-20T19:00:06Z

On 3/17/26 20:51, Lorenzo Stoakes (Oracle) wrote:
> On Tue, Mar 17, 2026 at 05:56:48PM +0100, David Hildenbrand (Arm) wrote:
>> We want to move subsection_map_init() to mm/sparse-vmemmap.c.
>>
>> To prepare for getting rid of subsection_map_init() in mm/sparse.c
>> completely, use a static inline function for !CONFIG_SPARSEMEM_VMEMMAP.
>>
>> While at it, move the declaration to internal.h and rename it to
>> "sparse_init_subsection_map()".
>
> Why not init_sparse_subsection_map()??
> Or sparse_init_map_subsection()????
> Or <all other permutations>
>
> Joking that's fine ;)

To match sparse_init() of course :)

--
Cheers,

David