public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* Re: [RFC PATCH 16/30] mm: enable slab allocation tagging for kmalloc and friends
       [not found] <20220830214919.53220-17-surenb@google.com>
@ 2022-08-31  3:26 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-08-31  3:26 UTC (permalink / raw)
  To: Suren Baghdasaryan; +Cc: llvm, kbuild-all

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

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

only message in thread, other threads:[~2022-08-31  3:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20220830214919.53220-17-surenb@google.com>
2022-08-31  3:26 ` [RFC PATCH 16/30] mm: enable slab allocation tagging for kmalloc and friends kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox