[vbabka:slab-remove-slob-v1 6/7] mm/slab.h:769:6: error: field 'dump_unreclaimable_slab' declared as a function

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vbabka/linux.git slab-remove-slob-v1
head:   e612d206dc6302016d027138e6857c4e2849dd27
commit: 61d6f1c8051ee45121060b42aa414cdee228fadd [6/7] mm/slab: remove CONFIG_SLOB code from slab common code
config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20230301/202303010735.Tws8Rww1-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/vbabka/linux.git/commit/?id=61d6f1c8051ee45121060b42aa414cdee228fadd
        git remote add vbabka https://git.kernel.org/pub/scm/linux/kernel/git/vbabka/linux.git
        git fetch --no-tags vbabka slab-remove-slob-v1
        git checkout 61d6f1c8051ee45121060b42aa414cdee228fadd
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=um SUBARCH=i386 olddefconfig
        make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Link: https://lore.kernel.org/oe-kbuild-all/202303010735.Tws8Rww1-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   In file included from mm/mempool.c:21:
>> mm/slab.h:769:6: error: field 'dump_unreclaimable_slab' declared as a function
     769 | void dump_unreclaimable_slab(void);
         |      ^~~~~~~~~~~~~~~~~~~~~~~
>> mm/slab.h:776:6: error: field '___cache_free' declared as a function
     776 | void ___cache_free(struct kmem_cache *cache, void *x, unsigned long addr);
         |      ^~~~~~~~~~~~~
>> mm/slab.h:783:1: error: expected specifier-qualifier-list before 'static'
     783 | static inline int cache_random_seq_create(struct kmem_cache *cachep,
         | ^~~~~~


vim +/dump_unreclaimable_slab +769 mm/slab.h

44c5356fb46005 Christoph Lameter   2014-08-06  767  
852d8be0ad8511 Yang Shi            2017-11-15  768  #if defined(CONFIG_SLAB) || defined(CONFIG_SLUB_DEBUG)
852d8be0ad8511 Yang Shi            2017-11-15 @769  void dump_unreclaimable_slab(void);
852d8be0ad8511 Yang Shi            2017-11-15  770  #else
852d8be0ad8511 Yang Shi            2017-11-15  771  static inline void dump_unreclaimable_slab(void)
852d8be0ad8511 Yang Shi            2017-11-15  772  {
852d8be0ad8511 Yang Shi            2017-11-15  773  }
852d8be0ad8511 Yang Shi            2017-11-15  774  #endif
852d8be0ad8511 Yang Shi            2017-11-15  775  
55834c59098d0c Alexander Potapenko 2016-05-20 @776  void ___cache_free(struct kmem_cache *cache, void *x, unsigned long addr);
55834c59098d0c Alexander Potapenko 2016-05-20  777  
7c00fce98c3e15 Thomas Garnier      2016-07-26  778  #ifdef CONFIG_SLAB_FREELIST_RANDOM
7c00fce98c3e15 Thomas Garnier      2016-07-26  779  int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
7c00fce98c3e15 Thomas Garnier      2016-07-26  780  			gfp_t gfp);
7c00fce98c3e15 Thomas Garnier      2016-07-26  781  void cache_random_seq_destroy(struct kmem_cache *cachep);
7c00fce98c3e15 Thomas Garnier      2016-07-26  782  #else
7c00fce98c3e15 Thomas Garnier      2016-07-26 @783  static inline int cache_random_seq_create(struct kmem_cache *cachep,
7c00fce98c3e15 Thomas Garnier      2016-07-26  784  					unsigned int count, gfp_t gfp)
7c00fce98c3e15 Thomas Garnier      2016-07-26  785  {
7c00fce98c3e15 Thomas Garnier      2016-07-26  786  	return 0;
7c00fce98c3e15 Thomas Garnier      2016-07-26  787  }
7c00fce98c3e15 Thomas Garnier      2016-07-26  788  static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { }
7c00fce98c3e15 Thomas Garnier      2016-07-26  789  #endif /* CONFIG_SLAB_FREELIST_RANDOM */
7c00fce98c3e15 Thomas Garnier      2016-07-26  790  

:::::: The code at line 769 was first introduced by commit
:::::: 852d8be0ad8511611eff18f28dce11d25195b654 mm: oom: show unreclaimable slab info when unreclaimable slabs > user memory

:::::: TO: Yang Shi <yang.s@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests




[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