[linux-next:master 7192/7206] mm/memcontrol.c:3017:9: error: implicit declaration of function 'memcg_online_kmem'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   f7ac28a6971b43a2ee8bb47c0ef931b38f7888cf
commit: 7292b6db051d2fd307eeca4a1985868735927b0c [7192/7206] mm: memcontrol: reign in the CONFIG space madness
config: i386-randconfig-r0-201550 (attached as .config)
reproduce:
        git checkout 7292b6db051d2fd307eeca4a1985868735927b0c
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   mm/memcontrol.c: In function 'memcg_update_kmem_limit':
>> mm/memcontrol.c:3017:9: error: implicit declaration of function 'memcg_online_kmem' [-Werror=implicit-function-declaration]
      ret = memcg_online_kmem(memcg);
            ^
   mm/memcontrol.c: In function 'mem_cgroup_can_attach':
   mm/memcontrol.c:4880:9: warning: 'memcg' may be used uninitialized in this function [-Wmaybe-uninitialized]
      mc.to = memcg;
            ^
   cc1: some warnings being treated as errors

vim +/memcg_online_kmem +3017 mm/memcontrol.c

d6441637 Vladimir Davydov 2014-01-23  3011  {
b2878698 Johannes Weiner  2015-12-18  3012  	int ret;
b2878698 Johannes Weiner  2015-12-18  3013  
b2878698 Johannes Weiner  2015-12-18  3014  	mutex_lock(&memcg_limit_mutex);
b2878698 Johannes Weiner  2015-12-18  3015  	/* Top-level cgroup doesn't propagate from root */
b2878698 Johannes Weiner  2015-12-18  3016  	if (!memcg_kmem_online(memcg)) {
b2878698 Johannes Weiner  2015-12-18 @3017  		ret = memcg_online_kmem(memcg);
b2878698 Johannes Weiner  2015-12-18  3018  		if (ret)
b2878698 Johannes Weiner  2015-12-18  3019  			goto out;
d6441637 Vladimir Davydov 2014-01-23  3020  	}

:::::: The code at line 3017 was first introduced by commit
:::::: b28786989bd0894d5e6e9fa0a8916973510666e8 mm: memcontrol: move kmem accounting code to CONFIG_MEMCG

:::::: TO: Johannes Weiner <hannes@xxxxxxxxxxx>
:::::: CC: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]