All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Suren Baghdasaryan <surenb@google.com>
Cc: oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Kent Overstreet <kent.overstreet@linux.dev>,
	Kees Cook <keescook@chromium.org>
Subject: [linux-next:master 2059/2532] mm/util.c:128: warning: expecting prototype for kmemdup_noprof(). Prototype was for kmemdup() instead
Date: Fri, 29 Mar 2024 17:12:43 +0800	[thread overview]
Message-ID: <202403291732.eZTk1pGs-lkp@intel.com> (raw)

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


                 reply	other threads:[~2024-03-29  9:13 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=202403291732.eZTk1pGs-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=keescook@chromium.org \
    --cc=kent.overstreet@linux.dev \
    --cc=linux-mm@kvack.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=surenb@google.com \
    /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.