All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Christian Brauner <brauner@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH] [RFC] mm: add kmem_cache_create_rcu()
Date: Fri, 30 Aug 2024 16:15:47 +0800	[thread overview]
Message-ID: <202408301614.aLcb90z7-lkp@intel.com> (raw)
In-Reply-To: <20240826-okkupieren-nachdenken-d88ac627e9bc@brauner>

Hi Christian,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:

[auto build test WARNING on next-20240826]
[cannot apply to akpm-mm/mm-everything linus/master vbabka-slab/for-next v6.11-rc5 v6.11-rc4 v6.11-rc3 v6.11-rc5]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Christian-Brauner/mm-add-kmem_cache_create_rcu/20240827-001335
base:   next-20240826
patch link:    https://lore.kernel.org/r/20240826-okkupieren-nachdenken-d88ac627e9bc%40brauner
patch subject: [PATCH] [RFC] mm: add kmem_cache_create_rcu()
config: openrisc-allnoconfig (https://download.01.org/0day-ci/archive/20240830/202408301614.aLcb90z7-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240830/202408301614.aLcb90z7-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/202408301614.aLcb90z7-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> mm/slab_common.c:299: warning: Function parameter or struct member 'offset' not described in 'do_kmem_cache_create_usercopy'
>> mm/slab_common.c:299: warning: expecting prototype for kmem_cache_create_usercopy(). Prototype was for do_kmem_cache_create_usercopy() instead


vim +299 mm/slab_common.c

4590685546a374 Christoph Lameter 2012-11-28  264  
f496990f1f4b1d Mike Rapoport     2018-12-06  265  /**
f496990f1f4b1d Mike Rapoport     2018-12-06  266   * kmem_cache_create_usercopy - Create a cache with a region suitable
f496990f1f4b1d Mike Rapoport     2018-12-06  267   * for copying to userspace
039363f38bfe5f Christoph Lameter 2012-07-06  268   * @name: A string which is used in /proc/slabinfo to identify this cache.
039363f38bfe5f Christoph Lameter 2012-07-06  269   * @size: The size of objects to be created in this cache.
039363f38bfe5f Christoph Lameter 2012-07-06  270   * @align: The required alignment for the objects.
039363f38bfe5f Christoph Lameter 2012-07-06  271   * @flags: SLAB flags
8eb8284b412906 David Windsor     2017-06-10  272   * @useroffset: Usercopy region offset
8eb8284b412906 David Windsor     2017-06-10  273   * @usersize: Usercopy region size
039363f38bfe5f Christoph Lameter 2012-07-06  274   * @ctor: A constructor for the objects.
039363f38bfe5f Christoph Lameter 2012-07-06  275   *
039363f38bfe5f Christoph Lameter 2012-07-06  276   * Cannot be called within a interrupt, but can be interrupted.
039363f38bfe5f Christoph Lameter 2012-07-06  277   * The @ctor is run when new pages are allocated by the cache.
039363f38bfe5f Christoph Lameter 2012-07-06  278   *
039363f38bfe5f Christoph Lameter 2012-07-06  279   * The flags are
039363f38bfe5f Christoph Lameter 2012-07-06  280   *
039363f38bfe5f Christoph Lameter 2012-07-06  281   * %SLAB_POISON - Poison the slab with a known test pattern (a5a5a5a5)
039363f38bfe5f Christoph Lameter 2012-07-06  282   * to catch references to uninitialised memory.
039363f38bfe5f Christoph Lameter 2012-07-06  283   *
f496990f1f4b1d Mike Rapoport     2018-12-06  284   * %SLAB_RED_ZONE - Insert `Red` zones around the allocated memory to check
039363f38bfe5f Christoph Lameter 2012-07-06  285   * for buffer overruns.
039363f38bfe5f Christoph Lameter 2012-07-06  286   *
039363f38bfe5f Christoph Lameter 2012-07-06  287   * %SLAB_HWCACHE_ALIGN - Align the objects in this cache to a hardware
039363f38bfe5f Christoph Lameter 2012-07-06  288   * cacheline.  This can be beneficial if you're counting cycles as closely
039363f38bfe5f Christoph Lameter 2012-07-06  289   * as davem.
f496990f1f4b1d Mike Rapoport     2018-12-06  290   *
f496990f1f4b1d Mike Rapoport     2018-12-06  291   * Return: a pointer to the cache on success, NULL on failure.
039363f38bfe5f Christoph Lameter 2012-07-06  292   */
e09e2ae041c2e3 Christian Brauner 2024-08-26  293  static struct kmem_cache *
e09e2ae041c2e3 Christian Brauner 2024-08-26  294  do_kmem_cache_create_usercopy(const char *name,
e09e2ae041c2e3 Christian Brauner 2024-08-26  295  		  unsigned int size, unsigned int offset,
e09e2ae041c2e3 Christian Brauner 2024-08-26  296  		  unsigned int align, slab_flags_t flags,
7bbdb81ee3de73 Alexey Dobriyan   2018-04-05  297  		  unsigned int useroffset, unsigned int usersize,
8eb8284b412906 David Windsor     2017-06-10  298  		  void (*ctor)(void *))
039363f38bfe5f Christoph Lameter 2012-07-06 @299  {
40911a798b5abb Alexandru Moise   2015-11-05  300  	struct kmem_cache *s = NULL;
3dec16ea38afce Andrzej Hajda     2015-02-13  301  	const char *cache_name;
3965fc36522446 Vladimir Davydov  2014-01-23  302  	int err;
039363f38bfe5f Christoph Lameter 2012-07-06  303  

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

      parent reply	other threads:[~2024-08-30  8:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-26  9:23 [PATCH] [POC/RFE]: Avoid silently growing struct file due to SLAB_TYPESAFE_BY_RCU Christian Brauner
2024-08-26  9:25 ` Christian Brauner
2024-08-26 16:04   ` [PATCH] [RFC] mm: add kmem_cache_create_rcu() Christian Brauner
2024-08-27 10:42     ` Mike Rapoport
2024-08-27 13:42       ` Christian Brauner
2024-08-27 14:05     ` Vlastimil Babka
2024-08-27 15:15       ` Christian Brauner
2024-08-27 15:33       ` Jann Horn
2024-08-27 15:44         ` Christian Brauner
2024-08-27 15:45         ` Jens Axboe
2024-08-27 20:34           ` Vlastimil Babka
2024-08-30  8:15     ` kernel test robot [this message]

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=202408301614.aLcb90z7-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=brauner@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.