linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Vlastimil Babka <vbabka@suse.cz>
Cc: oe-kbuild-all@lists.linux.dev, linux-mm@kvack.org
Subject: [vbabka:slab-remove-slob-v1 6/7] mm/slab.h:779:5: error: field 'cache_random_seq_create' declared as a function
Date: Wed, 1 Mar 2023 20:26:10 +0800	[thread overview]
Message-ID: <202303012059.QGSJHkWc-lkp@intel.com> (raw)

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


                 reply	other threads:[~2023-03-01 12:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202303012059.QGSJHkWc-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-mm@kvack.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=vbabka@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox