* [patch 2/7] mm/zsmalloc.c: fix build when CONFIG_COMPACTION=n
@ 2019-08-30 23:04 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2019-08-30 23:04 UTC (permalink / raw)
To: akpm, henrywolfeburns, jwadams, linux-mm, lkp, minchan,
mm-commits, sergey.senozhatsky, shakeelb, torvalds
From: Andrew Morton <akpm@linux-foundation.org>
Subject: mm/zsmalloc.c: fix build when CONFIG_COMPACTION=n
Fixes: 701d678599d0c1 ("mm/zsmalloc.c: fix race condition in zs_destroy_pool")
Link: http://lkml.kernel.org/r/201908251039.5oSbEEUT%25lkp@intel.com
Reported-by: kbuild test robot <lkp@intel.com>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Henry Burns <henrywolfeburns@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Shakeel Butt <shakeelb@google.com>
Cc: Jonathan Adams <jwadams@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/zsmalloc.c | 2 ++
1 file changed, 2 insertions(+)
--- 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
if (create_cache(pool))
goto err;
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-08-30 23:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-30 23:04 [patch 2/7] mm/zsmalloc.c: fix build when CONFIG_COMPACTION=n akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox