lkml.org 
[lkml]   [2021]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[rppt-memblock:for-kernelci 2/2] drivers/of/of_reserved_mem.c:49:3: error: implicit declaration of function 'kmemleak_free_part_phys'
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git for-kernelci
head: 36add14f3a5924c220da8fd7f5d8763ef993bff8
commit: 36add14f3a5924c220da8fd7f5d8763ef993bff8 [2/2] memblock: exclude NOMAP regions from kmemleak
config: arm-buildonly-randconfig-r006-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9660563950aaed54020bfdf0be07e7096a9553e4)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git/commit/?id=36add14f3a5924c220da8fd7f5d8763ef993bff8
git remote add rppt-memblock git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git
git fetch --no-tags rppt-memblock for-kernelci
git checkout 36add14f3a5924c220da8fd7f5d8763ef993bff8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm

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

All errors (new ones prefixed by >>):

>> drivers/of/of_reserved_mem.c:49:3: error: implicit declaration of function 'kmemleak_free_part_phys' [-Werror,-Wimplicit-function-declaration]
kmemleak_free_part_phys(base, size);
^
1 error generated.


vim +/kmemleak_free_part_phys +49 drivers/of/of_reserved_mem.c

30
31 static int __init early_init_dt_alloc_reserved_memory_arch(phys_addr_t size,
32 phys_addr_t align, phys_addr_t start, phys_addr_t end, bool nomap,
33 phys_addr_t *res_base)
34 {
35 phys_addr_t base;
36 int err = 0;
37
38 end = !end ? MEMBLOCK_ALLOC_ANYWHERE : end;
39 align = !align ? SMP_CACHE_BYTES : align;
40 base = memblock_phys_alloc_range(size, align, start, end);
41 if (!base)
42 return -ENOMEM;
43
44 *res_base = base;
45 if (nomap) {
46 err = memblock_mark_nomap(base, size);
47 if (err)
48 memblock_free(base, size);
> 49 kmemleak_free_part_phys(base, size);
50 }
51
52 return err;
53 }
54

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-10-20 13:18    [W:0.025 / U:0.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site