All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Vlastimil Babka (SUSE)" <vbabka@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [vbabka:objext_split 12/14] mm/slab.h:720:46: error: 'slabobj_ext_idx_ctref' undeclared; did you mean 'slabobj_ext_idx_objcg'?
Date: Thu, 09 Jul 2026 17:23:23 +0800	[thread overview]
Message-ID: <202607091729.PhhcpvSA-lkp@intel.com> (raw)

Hi Vlastimil,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vbabka/linux.git objext_split
head:   8bd682e28958694beba958e2a3af94c6e1789819
commit: ac7896437e39eb47ba7cbf00c39915e87e04398f [12/14] mm/slab: change layout of struct slabobj_ext arrays
config: arm64-randconfig-002-20260709 (https://download.01.org/0day-ci/archive/20260709/202607091729.PhhcpvSA-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260709/202607091729.PhhcpvSA-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607091729.PhhcpvSA-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from mm/slab_common.c:35:
   mm/slab.h: In function 'slab_obj_ext_codetag_ref':
>> mm/slab.h:720:46: error: 'slabobj_ext_idx_ctref' undeclared (first use in this function); did you mean 'slabobj_ext_idx_objcg'?
     return &slab_obj_ext(slab, obj_exts, index, slabobj_ext_idx_ctref)->_ctref;
                                                 ^~~~~~~~~~~~~~~~~~~~~
                                                 slabobj_ext_idx_objcg
   mm/slab.h:720:46: note: each undeclared identifier is reported only once for each function it appears in
   mm/slab.h: In function 'obj_ext_codetag_ref_start':
   mm/slab.h:731:19: error: 'slabobj_ext_idx_ctref' undeclared (first use in this function); did you mean 'slabobj_ext_idx_objcg'?
     return obj_ext + slabobj_ext_idx_ctref * slab->objects;
                      ^~~~~~~~~~~~~~~~~~~~~
                      slabobj_ext_idx_objcg
--
   In file included from mm/slub.c:23:
   mm/slab.h: In function 'slab_obj_ext_codetag_ref':
>> mm/slab.h:720:46: error: 'slabobj_ext_idx_ctref' undeclared (first use in this function); did you mean 'slabobj_ext_idx_objcg'?
     return &slab_obj_ext(slab, obj_exts, index, slabobj_ext_idx_ctref)->_ctref;
                                                 ^~~~~~~~~~~~~~~~~~~~~
                                                 slabobj_ext_idx_objcg
   mm/slab.h:720:46: note: each undeclared identifier is reported only once for each function it appears in
   mm/slab.h: In function 'obj_ext_codetag_ref_start':
   mm/slab.h:731:19: error: 'slabobj_ext_idx_ctref' undeclared (first use in this function); did you mean 'slabobj_ext_idx_objcg'?
     return obj_ext + slabobj_ext_idx_ctref * slab->objects;
                      ^~~~~~~~~~~~~~~~~~~~~
                      slabobj_ext_idx_objcg
>> mm/slab.h:732:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
--
   In file included from mm/kasan/generic.c:37:
   mm/kasan/../slab.h: In function 'slab_obj_ext_codetag_ref':
>> mm/kasan/../slab.h:720:46: error: 'slabobj_ext_idx_ctref' undeclared (first use in this function); did you mean 'slabobj_ext_idx_objcg'?
     return &slab_obj_ext(slab, obj_exts, index, slabobj_ext_idx_ctref)->_ctref;
                                                 ^~~~~~~~~~~~~~~~~~~~~
                                                 slabobj_ext_idx_objcg
   mm/kasan/../slab.h:720:46: note: each undeclared identifier is reported only once for each function it appears in
   mm/kasan/../slab.h: In function 'obj_ext_codetag_ref_start':
   mm/kasan/../slab.h:731:19: error: 'slabobj_ext_idx_ctref' undeclared (first use in this function); did you mean 'slabobj_ext_idx_objcg'?
     return obj_ext + slabobj_ext_idx_ctref * slab->objects;
                      ^~~~~~~~~~~~~~~~~~~~~
                      slabobj_ext_idx_objcg
--
   In file included from mm/kfence/kfence.h:17,
                    from mm/kfence/core.c:39:
   mm/kfence/../slab.h: In function 'slab_obj_ext_codetag_ref':
>> mm/kfence/../slab.h:720:46: error: 'slabobj_ext_idx_ctref' undeclared (first use in this function); did you mean 'slabobj_ext_idx_objcg'?
     return &slab_obj_ext(slab, obj_exts, index, slabobj_ext_idx_ctref)->_ctref;
                                                 ^~~~~~~~~~~~~~~~~~~~~
                                                 slabobj_ext_idx_objcg
   mm/kfence/../slab.h:720:46: note: each undeclared identifier is reported only once for each function it appears in
   mm/kfence/../slab.h: In function 'obj_ext_codetag_ref_start':
   mm/kfence/../slab.h:731:19: error: 'slabobj_ext_idx_ctref' undeclared (first use in this function); did you mean 'slabobj_ext_idx_objcg'?
     return obj_ext + slabobj_ext_idx_ctref * slab->objects;
                      ^~~~~~~~~~~~~~~~~~~~~
                      slabobj_ext_idx_objcg


vim +720 mm/slab.h

   712	
   713	static inline union codetag_ref *slab_obj_ext_codetag_ref(struct slab *slab,
   714						unsigned long obj_exts, const void *obj)
   715	{
   716		unsigned int index;
   717	
   718		index = obj_to_index(slab->slab_cache, slab, obj);
   719	
 > 720		return &slab_obj_ext(slab, obj_exts, index, slabobj_ext_idx_ctref)->_ctref;
   721	}
   722	
   723	/*
   724	 * Given slabobj_ext, return the first entry where codetag entries start.
   725	 *
   726	 * Can only be used on slabobj_ext allocated by kmalloc, not in-obj.
   727	 */
   728	static inline struct slabobj_ext *obj_ext_codetag_ref_start(struct slab *slab,
   729							struct slabobj_ext *obj_ext)
   730	{
   731		return obj_ext + slabobj_ext_idx_ctref * slab->objects;
 > 732	}
   733	

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

                 reply	other threads:[~2026-07-09  9:23 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=202607091729.PhhcpvSA-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=vbabka@kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.