linux/tools/testing/memblock/linux
Pratyush Yadav (Google) 051a224c49 memblock tests: define MIGRATE_CMA
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@kernel.org>
Closes: https://lore.kernel.org/linux-mm/afcdDm4aAJvNaQqH@kernel.org/
Signed-off-by: Pratyush Yadav (Google) <pratyush@kernel.org>
Link: https://patch.msgid.link/20260504102742.3833159-1-pratyush@kernel.org
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
2026-06-01 02:31:38 +03:00
..
kernel.h memblock test: fix implicit declaration of function 'isspace' 2024-08-06 08:21:25 +03:00
kmemleak.h
memory_hotplug.h memblock tests: change build options to run-time options 2022-07-20 10:46:33 +03:00
mmzone.h memblock tests: define MIGRATE_CMA 2026-06-01 02:31:38 +03:00
mutex.h memblock tests: Fix mutex related build error 2025-04-07 09:28:01 +03:00
printk.h
string_helpers.h memblock: Add reserve_mem debugfs info 2026-04-01 11:19:43 +03:00