All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 2059/2532] mm/util.c:128: warning: expecting prototype for kmemdup_noprof(). Prototype was for kmemdup() instead
@ 2024-03-29  9:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-03-29  9:12 UTC (permalink / raw)
  To: Suren Baghdasaryan
  Cc: oe-kbuild-all, Linux Memory Management List, Andrew Morton,
	Kent Overstreet, Kees Cook

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   a6bd6c9333397f5a0e2667d4d82fef8c970108f2
commit: 8060cbdb2821fa59bd04964cc978066d07e13fac [2059/2532] mm/slab: enable slab allocation tagging for kmalloc and friends
config: x86_64-randconfig-r071-20240327 (https://download.01.org/0day-ci/archive/20240329/202403291732.eZTk1pGs-lkp@intel.com/config)
compiler: gcc-12 (Ubuntu 12.3.0-9ubuntu2) 12.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240329/202403291732.eZTk1pGs-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/202403291732.eZTk1pGs-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> mm/util.c:128: warning: expecting prototype for kmemdup_noprof(). Prototype was for kmemdup() instead
>> mm/util.c:613: warning: expecting prototype for kvmalloc_node_noprof(). Prototype was for kvmalloc_node() instead
--
>> mm/slub.c:4042: warning: expecting prototype for kmem_cache_alloc_node_noprof(). Prototype was for kmem_cache_alloc_node() instead


vim +128 mm/util.c

1e66df3ee30120 Jeremy Fitzhardinge 2007-07-17  116  
1a2f67b459bb78 Alexey Dobriyan     2006-09-30  117  /**
8060cbdb2821fa Suren Baghdasaryan  2024-03-21  118   * kmemdup_noprof - duplicate region of memory
1a2f67b459bb78 Alexey Dobriyan     2006-09-30  119   *
1a2f67b459bb78 Alexey Dobriyan     2006-09-30  120   * @src: memory region to duplicate
1a2f67b459bb78 Alexey Dobriyan     2006-09-30  121   * @len: memory region length
1a2f67b459bb78 Alexey Dobriyan     2006-09-30  122   * @gfp: GFP mask to use
a862f68a8b3600 Mike Rapoport       2019-03-05  123   *
0b7b8704ddcee3 Hao Sun             2022-12-21  124   * Return: newly allocated copy of @src or %NULL in case of error,
0b7b8704ddcee3 Hao Sun             2022-12-21  125   * result is physically contiguous. Use kfree() to free.
1a2f67b459bb78 Alexey Dobriyan     2006-09-30  126   */
8060cbdb2821fa Suren Baghdasaryan  2024-03-21  127  void *kmemdup_noprof(const void *src, size_t len, gfp_t gfp)
1a2f67b459bb78 Alexey Dobriyan     2006-09-30 @128  {
1a2f67b459bb78 Alexey Dobriyan     2006-09-30  129  	void *p;
1a2f67b459bb78 Alexey Dobriyan     2006-09-30  130  
8060cbdb2821fa Suren Baghdasaryan  2024-03-21  131  	p = kmalloc_node_track_caller_noprof(len, gfp, NUMA_NO_NODE, _RET_IP_);
1a2f67b459bb78 Alexey Dobriyan     2006-09-30  132  	if (p)
1a2f67b459bb78 Alexey Dobriyan     2006-09-30  133  		memcpy(p, src, len);
1a2f67b459bb78 Alexey Dobriyan     2006-09-30  134  	return p;
1a2f67b459bb78 Alexey Dobriyan     2006-09-30  135  }
8060cbdb2821fa Suren Baghdasaryan  2024-03-21  136  EXPORT_SYMBOL(kmemdup_noprof);
1a2f67b459bb78 Alexey Dobriyan     2006-09-30  137  

:::::: The code at line 128 was first introduced by commit
:::::: 1a2f67b459bb7846d4a15924face63eb2683acc2 [PATCH] kmemdup: introduce

:::::: TO: Alexey Dobriyan <adobriyan@gmail.com>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

-- 
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:[~2024-03-29  9:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-29  9:12 [linux-next:master 2059/2532] mm/util.c:128: warning: expecting prototype for kmemdup_noprof(). Prototype was for kmemdup() instead 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.