Re: [PATCH v2 1/3] mm: split out mm_init and memblock declarations from internal.h

From: Mike Rapoport

Date: Sat Jul 11 2026 - 11:14:53 EST


On Thu, Jul 09, 2026 at 01:00:03PM +0300, Mike Rapoport (Microsoft) wrote:
> mm/internal.h becomes more and more bloated.
>
> Move declarations for related to mm/mm_init.c and mm/memblock.c to a new
> mm/mm_init.h header.
>
> No functional changes.
>
> Signed-off-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
> Acked-by: Muchun Song <muchun.song@xxxxxxxxx>
> ---
> MAINTAINERS | 1 +
> kernel/liveupdate/kexec_handover.c | 1 +
> mm/cma.c | 1 +
> mm/hugetlb.c | 1 +
> mm/internal.h | 91 ----------------------------
> mm/memblock.c | 1 +
> mm/memory_hotplug.c | 1 +
> mm/mm_init.c | 1 +
> mm/mm_init.h | 120 +++++++++++++++++++++++++++++++++++++
> mm/page_alloc.c | 1 +
> mm/sparse-vmemmap.c | 1 +
> mm/sparse.c | 1 +
> 12 files changed, 130 insertions(+), 91 deletions(-)

As always I forgot to update the memblock tests :(

Andrew, can you please merge this as a fixup: