All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jeff Layton <jlayton@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jlayton:always-kfence 1/1] mm/slub.c:4207:24: error: implicit declaration of function '__kfence_alloc'; did you mean 'kfence_alloc'?
Date: Wed, 8 Oct 2025 20:06:59 +0200	[thread overview]
Message-ID: <202510082044.JulQCumd-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git always-kfence
head:   90a1fd620f839dfd87e82ec5482b27e364b1b5b9
commit: 90a1fd620f839dfd87e82ec5482b27e364b1b5b9 [1/1] mm: add a way to always do a kfence allocation in a slabcache
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20251008/202510082044.JulQCumd-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251008/202510082044.JulQCumd-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/202510082044.JulQCumd-lkp@intel.com/

All errors (new ones prefixed by >>):

   mm/slub.c: In function 'slab_kfence_alloc':
>> mm/slub.c:4207:24: error: implicit declaration of function '__kfence_alloc'; did you mean 'kfence_alloc'? [-Wimplicit-function-declaration]
    4207 |                 return __kfence_alloc(s, orig_size, gfpflags);
         |                        ^~~~~~~~~~~~~~
         |                        kfence_alloc
>> mm/slub.c:4207:24: error: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
    4207 |                 return __kfence_alloc(s, orig_size, gfpflags);
         |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +4207 mm/slub.c

  4203	
  4204	static void *slab_kfence_alloc(struct kmem_cache *s, size_t orig_size, gfp_t gfpflags)
  4205	{
  4206		if (s->flags & SLAB_ALWAYS_KFENCE)
> 4207			return __kfence_alloc(s, orig_size, gfpflags);
  4208		return kfence_alloc(s, orig_size, gfpflags);
  4209	}
  4210	

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

                 reply	other threads:[~2025-10-08 18:07 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=202510082044.JulQCumd-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jlayton@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.