[PATCH] memblock tests: define MIGRATE_CMA

Pratyush Yadav pratyush at kernel.org
Mon May 4 05:31:06 PDT 2026


On Mon, May 04 2026, Pasha Tatashin wrote:

> On Mon, May 4, 2026 at 6:27 AM Pratyush Yadav <pratyush at kernel.org> wrote:
>>
>> From: "Pratyush Yadav (Google)" <pratyush at kernel.org>
>>
>> kho_scratch_migratetype(), defined in include/linux/memblock.h uses enum
>> migratetype. This breaks build for memblock tests with:
>>
>> ./linux/memblock.h:634:73: error: parameter 2 (‘mt’) has incomplete type
>>   634 |                                                        enum migratetype mt)
>>
>> Fix it by defining enum migratetype and MIGRATE_CMA. As is the case with
>> the other headers in tools/testing/memblock, do not bring in the whole
>> thing, only what is needed.
>>
>> Reported-by: Mike Rapoport <rppt at kernel.org>
>> Closes: https://lore.kernel.org/linux-mm/afcdDm4aAJvNaQqH@kernel.org/
>
> Link does not open for me.

Dunno why. Works fine for me... Maybe some temporary issue with lore?

[...]

-- 
Regards,
Pratyush Yadav



More information about the kexec mailing list