Re: [PATCH 2/3] mm: slabinfo: dump CONFIG_SLABINFO

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

 



Hi Yang,

[auto build test ERROR on mmotm/master]
[also build test ERROR on v4.14-rc3 next-20170929]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Yang-Shi/oom-capture-unreclaimable-slab-info-in-oom-message/20171007-173639
base:   git://git.cmpxchg.org/linux-mmotm.git master
config: sh-allnoconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=sh 

All errors (new ones prefixed by >>):

   mm/slub.c: In function 'get_slabinfo':
   mm/slub.c:5864:14: error: implicit declaration of function 'node_nr_objs' [-Werror=implicit-function-declaration]
      nr_objs += node_nr_objs(n);
                 ^~~~~~~~~~~~
>> mm/slub.c:5865:14: error: implicit declaration of function 'count_partial' [-Werror=implicit-function-declaration]
      nr_free += count_partial(n, count_free);
                 ^~~~~~~~~~~~~
   mm/slub.c:5865:31: error: 'count_free' undeclared (first use in this function)
      nr_free += count_partial(n, count_free);
                                  ^~~~~~~~~~
   mm/slub.c:5865:31: note: each undeclared identifier is reported only once for each function it appears in
   cc1: some warnings being treated as errors

vim +/count_partial +5865 mm/slub.c

57ed3eda9 Pekka J Enberg    2008-01-01  5850  
57ed3eda9 Pekka J Enberg    2008-01-01  5851  /*
57ed3eda9 Pekka J Enberg    2008-01-01  5852   * The /proc/slabinfo ABI
57ed3eda9 Pekka J Enberg    2008-01-01  5853   */
0d7561c61 Glauber Costa     2012-10-19  5854  void get_slabinfo(struct kmem_cache *s, struct slabinfo *sinfo)
57ed3eda9 Pekka J Enberg    2008-01-01  5855  {
57ed3eda9 Pekka J Enberg    2008-01-01  5856  	unsigned long nr_slabs = 0;
205ab99dd Christoph Lameter 2008-04-14  5857  	unsigned long nr_objs = 0;
205ab99dd Christoph Lameter 2008-04-14  5858  	unsigned long nr_free = 0;
57ed3eda9 Pekka J Enberg    2008-01-01  5859  	int node;
fa45dc254 Christoph Lameter 2014-08-06  5860  	struct kmem_cache_node *n;
57ed3eda9 Pekka J Enberg    2008-01-01  5861  
fa45dc254 Christoph Lameter 2014-08-06  5862  	for_each_kmem_cache_node(s, node, n) {
c17fd13ec Wanpeng Li        2013-07-04  5863  		nr_slabs += node_nr_slabs(n);
c17fd13ec Wanpeng Li        2013-07-04 @5864  		nr_objs += node_nr_objs(n);
205ab99dd Christoph Lameter 2008-04-14 @5865  		nr_free += count_partial(n, count_free);
57ed3eda9 Pekka J Enberg    2008-01-01  5866  	}
57ed3eda9 Pekka J Enberg    2008-01-01  5867  
0d7561c61 Glauber Costa     2012-10-19  5868  	sinfo->active_objs = nr_objs - nr_free;
0d7561c61 Glauber Costa     2012-10-19  5869  	sinfo->num_objs = nr_objs;
0d7561c61 Glauber Costa     2012-10-19  5870  	sinfo->active_slabs = nr_slabs;
0d7561c61 Glauber Costa     2012-10-19  5871  	sinfo->num_slabs = nr_slabs;
0d7561c61 Glauber Costa     2012-10-19  5872  	sinfo->objects_per_slab = oo_objects(s->oo);
0d7561c61 Glauber Costa     2012-10-19  5873  	sinfo->cache_order = oo_order(s->oo);
57ed3eda9 Pekka J Enberg    2008-01-01  5874  }
57ed3eda9 Pekka J Enberg    2008-01-01  5875  

:::::: The code at line 5865 was first introduced by commit
:::::: 205ab99dd103e3dd5b0964dad8a16dfe2db69b2e slub: Update statistics handling for variable order slabs

:::::: TO: Christoph Lameter <clameter@xxxxxxx>
:::::: CC: Pekka Enberg <penberg@xxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


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