* [vbabka:slab-remove-slob-v1 6/7] mm/slab.h:779:5: error: field 'cache_random_seq_create' declared as a function
@ 2023-03-01 12:26 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-01 12:26 UTC (permalink / raw)
To: Vlastimil Babka; +Cc: oe-kbuild-all, linux-mm
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: loongarch-randconfig-r005-20230227 (https://download.01.org/0day-ci/archive/20230301/202303012059.QGSJHkWc-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# 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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303012059.QGSJHkWc-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from mm/slab_common.c:30:
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:779:5: error: field 'cache_random_seq_create' declared as a function
779 | int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
| ^~~~~~~~~~~~~~~~~~~~~~~
>> mm/slab.h:781:6: error: field 'cache_random_seq_destroy' declared as a function
781 | void cache_random_seq_destroy(struct kmem_cache *cachep);
| ^~~~~~~~~~~~~~~~~~~~~~~~
mm/slab.h:791:1: error: expected specifier-qualifier-list before 'static'
791 | static inline bool slab_want_init_on_alloc(gfp_t flags, struct kmem_cache *c)
| ^~~~~~
vim +/cache_random_seq_create +779 mm/slab.h
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 779 was first introduced by commit
:::::: 7c00fce98c3e15334a603925b41aa49f76e83227 mm: reorganize SLAB freelist randomization
:::::: TO: Thomas Garnier <thgarnie@google.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-01 12:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-01 12:26 [vbabka:slab-remove-slob-v1 6/7] mm/slab.h:779:5: error: field 'cache_random_seq_create' declared as a function kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox