Re: [PATCH v9 0/3] kho: add support for deferred struct page init

Pratyush Yadav
2026-05-04T07:53:05Z

On Sun, May 03 2026, Mike Rapoport wrote:

> Hi Michal,
>
> On Thu, Apr 23, 2026 at 02:25:35PM +0200, Michal Clapinski wrote:
>> When CONFIG_DEFERRED_STRUCT_PAGE_INIT is enabled, struct page
>> initialization is deferred to parallel kthreads that run later in
>> the boot process.
>
> This patchset breaks memblock tests:
> https://github.com/linux-mm/linux-mm/actions/runs/25259346624/job/74063911769
>
> Can you please send a fix?

Would something like this do the trick? It fixes the build for me and
the tests pass.

I can send this as a proper patch if this looks good.

--- 8< ---
diff --git a/tools/testing/memblock/linux/mmzone.h b/tools/testing/memblock/linux/mmzone.h
index bb682659a12d..8d934ff5b080 100644
--- a/tools/testing/memblock/linux/mmzone.h
+++ b/tools/testing/memblock/linux/mmzone.h
@@ -35,4 +35,8 @@ typedef struct pglist_data {

} pg_data_t;

+enum migratetype {
+ MIGRATE_CMA,
+};
+
#endif
--
Regards,
Pratyush Yadav