All of lore.kernel.org
 help / color / mirror / Atom feed
* [jlayton:always-kfence 1/1] mm/slub.c:4207:24: error: implicit declaration of function '__kfence_alloc'; did you mean 'kfence_alloc'?
@ 2025-10-08 18:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-10-08 18:06 UTC (permalink / raw)
  To: Jeff Layton; +Cc: oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-10-08 18:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-08 18:06 [jlayton:always-kfence 1/1] mm/slub.c:4207:24: error: implicit declaration of function '__kfence_alloc'; did you mean 'kfence_alloc'? kernel test robot

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.