On Sun, 25 Aug 2019 10:53:43 +0800 kbuild test robot <lkp@xxxxxxxxx> wrote: > tree: git://git.cmpxchg.org/linux-mmotm.git master > head: f50a6baf25034cdc74a3c2a919c455076f776944 > commit: 5e656681183d9045de7815921012f5731c16eae3 [14/264] mm/zsmalloc.c: fix race condition in zs_destroy_pool > config: i386-randconfig-c003-201934 (attached as .config) > compiler: gcc-7 (Debian 7.4.0-10) 7.4.0 > reproduce: > git checkout 5e656681183d9045de7815921012f5731c16eae3 > # save the attached .config to linux build tree > make ARCH=i386 > > If you fix the issue, kindly add following tag > Reported-by: kbuild test robot <lkp@xxxxxxxxx> > > All errors (new ones prefixed by >>): > > 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:2415: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. --- 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; _