tree: git://git.cmpxchg.org/linux-mmotm.git master head: c64429bcc60a702f19f5cfdb5c39277863278a8c commit: 5107bbaaea3690d18d8e36523a3f6c22050d2708 [201/417] slab: link memcg caches of the same kind into a list config: sparc-defconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 5107bbaaea3690d18d8e36523a3f6c22050d2708 # save the attached .config to linux build tree make.cross ARCH=sparc All warnings: In file included from mm/slab.c:130:0: mm/slab.c: In function 'do_tune_cpucache': mm/slab.h:257:18: warning: right-hand operand of comma expression has no effect [-Wunused-value] for (iter = NULL, (root); 0; ) ^ >> mm/slab.c:3722:2: note: in expansion of macro 'for_each_memcg_cache' for_each_memcg_cache(c, cachep) { ^ -- In file included from mm/slab_common.c:26:0: mm/slab_common.c: In function 'kmem_cache_destroy': mm/slab.h:259:30: warning: right-hand operand of comma expression has no effect [-Wunused-value] for (iter = NULL, tmp = NULL, (root); 0; ) ^ mm/slab_common.c:603:2: note: in expansion of macro 'for_each_memcg_cache_safe' for_each_memcg_cache_safe(c, c2, s) { ^ mm/slab_common.c: In function 'memcg_accumulate_slabinfo': mm/slab.h:257:18: warning: right-hand operand of comma expression has no effect [-Wunused-value] for (iter = NULL, (root); 0; ) ^ >> mm/slab_common.c:942:2: note: in expansion of macro 'for_each_memcg_cache' for_each_memcg_cache(c, s) { ^ vim +/for_each_memcg_cache +3722 mm/slab.c 3706 3707 static int do_tune_cpucache(struct kmem_cache *cachep, int limit, 3708 int batchcount, int shared, gfp_t gfp) 3709 { 3710 int ret; 3711 struct kmem_cache *c; 3712 3713 ret = __do_tune_cpucache(cachep, limit, batchcount, shared, gfp); 3714 3715 if (slab_state < FULL) 3716 return ret; 3717 3718 if ((ret < 0) || !is_root_cache(cachep)) 3719 return ret; 3720 3721 lockdep_assert_held(&slab_mutex); > 3722 for_each_memcg_cache(c, cachep) { 3723 /* return value determined by the root cache only */ 3724 __do_tune_cpucache(c, limit, batchcount, shared, gfp); 3725 } 3726 3727 return ret; 3728 } 3729 3730 /* Called with slab_mutex held always */ --- 0-DAY kernel test infrastructure Open Source Technology Center http://lists.01.org/mailman/listinfo/kbuild Intel Corporation