Re: linux-next: Tree for Aug 27 (mm/zsmalloc.c)

From: Sergey Senozhatsky
Date: Wed Aug 28 2019 - 01:30:48 EST


On (08/27/19 08:37), Randy Dunlap wrote:
> on x86_64:
>
> In file included from ../include/linux/mmzone.h:10:0,
> from ../include/linux/gfp.h:6,
> from ../include/linux/umh.h:4,
> from ../include/linux/kmod.h:9,
> from ../include/linux/module.h:13,
> from ../mm/zsmalloc.c:33:
> ../mm/zsmalloc.c: In function âzs_create_poolâ:
> ../mm/zsmalloc.c:2416:27: error: âstruct zs_poolâ has no member named âmigration_waitâ
> init_waitqueue_head(&pool->migration_wait);
> ^
> ../include/linux/wait.h:67:26: note: in definition of macro âinit_waitqueue_headâ
> __init_waitqueue_head((wq_head), #wq_head, &__key); \
> ^~~~~~~

Thanks.

I believe akpm has a patch for that build error.

===========

--- a/mm/zsmalloc.c~mm-zsmallocc-fix-build-when-config_compaction=n
+++ a/mm/zsmalloc.c
@@ -2412,7 +2412,9 @@ struct zs_pool *zs_create_pool(const cha
if (!pool->name)
goto err;

+#ifdef CONFIG_COMPACTION
init_waitqueue_head(&pool->migration_wait);
+#endif

===========

-ss