public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Suren Baghdasaryan <surenb@google.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [RFC PATCH 16/30] mm: enable slab allocation tagging for kmalloc and friends
Date: Wed, 31 Aug 2022 11:26:55 +0800	[thread overview]
Message-ID: <202208311155.oCFXzcZ0-lkp@intel.com> (raw)
In-Reply-To: <20220830214919.53220-17-surenb@google.com>

Hi Suren,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on linus/master]
[also build test WARNING on v6.0-rc3]
[cannot apply to vbabka-slab/for-next tip/sched/core xen-tip/linux-next next-20220830]
[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/Suren-Baghdasaryan/Code-tagging-framework-and-applications/20220831-055155
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git dcf8e5633e2e69ad60b730ab5905608b756a032f
config: hexagon-randconfig-r045-20220830 (https://download.01.org/0day-ci/archive/20220831/202208311155.oCFXzcZ0-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 1c66bacd6cde1f37d6ac96c45b389666a1334ec0)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/intel-lab-lkp/linux/commit/b57e9620f17e9b625c9d01733bd6d125758bd8e7
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Suren-Baghdasaryan/Code-tagging-framework-and-applications/20220831-055155
        git checkout b57e9620f17e9b625c9d01733bd6d125758bd8e7
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> mm/slab_common.c:1215: warning: expecting prototype for krealloc(). Prototype was for _krealloc() instead


vim +1215 mm/slab_common.c

928cec9cd6db53 Andrey Ryabinin     2014-08-06  1200  
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1201  /**
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1202   * krealloc - reallocate memory. The contents will remain unchanged.
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1203   * @p: object to reallocate memory for.
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1204   * @new_size: how many bytes of memory are required.
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1205   * @flags: the type of memory to allocate.
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1206   *
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1207   * The contents of the object pointed to are preserved up to the
15d5de496bebfd Bartosz Golaszewski 2020-12-14  1208   * lesser of the new and old sizes (__GFP_ZERO flag is effectively ignored).
15d5de496bebfd Bartosz Golaszewski 2020-12-14  1209   * If @p is %NULL, krealloc() behaves exactly like kmalloc().  If @new_size
15d5de496bebfd Bartosz Golaszewski 2020-12-14  1210   * is 0 and @p is not a %NULL pointer, the object pointed to is freed.
a862f68a8b3600 Mike Rapoport       2019-03-05  1211   *
a862f68a8b3600 Mike Rapoport       2019-03-05  1212   * Return: pointer to the allocated memory or %NULL in case of error
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1213   */
b57e9620f17e9b Suren Baghdasaryan  2022-08-30  1214  void *_krealloc(const void *p, size_t new_size, gfp_t flags)
928cec9cd6db53 Andrey Ryabinin     2014-08-06 @1215  {
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1216  	void *ret;
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1217  
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1218  	if (unlikely(!new_size)) {
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1219  		kfree(p);
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1220  		return ZERO_SIZE_PTR;
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1221  	}
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1222  
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1223  	ret = __do_krealloc(p, new_size, flags);
772a2fa50ffb2f Andrey Konovalov    2018-12-28  1224  	if (ret && kasan_reset_tag(p) != kasan_reset_tag(ret))
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1225  		kfree(p);
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1226  
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1227  	return ret;
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1228  }
b57e9620f17e9b Suren Baghdasaryan  2022-08-30  1229  EXPORT_SYMBOL(_krealloc);
928cec9cd6db53 Andrey Ryabinin     2014-08-06  1230  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

           reply	other threads:[~2022-08-31  3:27 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20220830214919.53220-17-surenb@google.com>]

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=202208311155.oCFXzcZ0-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=llvm@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox