[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202110011311.aVfgCNe4-lkp@intel.com>
Date: Fri, 1 Oct 2021 13:28:25 +0800
From: kernel test robot <lkp@...el.com>
To: Mike Rapoport <rppt@...ux.ibm.com>
Cc: kbuild-all@...ts.01.org, Mike Rapoport <rppt@...nel.org>,
linux-kernel@...r.kernel.org
Subject: [rppt-memblock:memblock_free-cleanup/v0 3/3] mm/memblock.c:821:
warning: expecting prototype for memblock_free_phys(). Prototype was for
memblock_phys_free() instead
tree: git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git memblock_free-cleanup/v0
head: e0a50f0f45fd0d6fb418bb699f9f10102984db51
commit: e0a50f0f45fd0d6fb418bb699f9f10102984db51 [3/3] memblock: cleanup memblock_free interface
config: arm-randconfig-r026-20211001 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
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://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git/commit/?id=e0a50f0f45fd0d6fb418bb699f9f10102984db51
git remote add rppt-memblock git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git
git fetch --no-tags rppt-memblock memblock_free-cleanup/v0
git checkout e0a50f0f45fd0d6fb418bb699f9f10102984db51
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> mm/memblock.c:821: warning: expecting prototype for memblock_free_phys(). Prototype was for memblock_phys_free() instead
vim +821 mm/memblock.c
77e02cf57b6cff9 Linus Torvalds 2021-09-14 811
4d72868c8f7c293 Mike Rapoport 2018-12-28 812 /**
e0a50f0f45fd0d6 Mike Rapoport 2021-09-15 813 * memblock_free_phys - free boot memory block
e0a50f0f45fd0d6 Mike Rapoport 2021-09-15 814 * @base: starting *physical* address of the boot memory block
4d72868c8f7c293 Mike Rapoport 2018-12-28 815 * @size: size of the boot memory block in bytes
4d72868c8f7c293 Mike Rapoport 2018-12-28 816 *
e0a50f0f45fd0d6 Mike Rapoport 2021-09-15 817 * Free boot memory block previously allocated by memblock_phys_alloc_xx() API.
4d72868c8f7c293 Mike Rapoport 2018-12-28 818 * The freeing memory will not be released to the buddy allocator.
4d72868c8f7c293 Mike Rapoport 2018-12-28 819 */
e0a50f0f45fd0d6 Mike Rapoport 2021-09-15 820 int __init_memblock memblock_phys_free(phys_addr_t base, phys_addr_t size)
95f72d1ed41a66f Yinghai Lu 2010-07-12 @821 {
5d63f81c9e495e1 Miles Chen 2017-02-22 822 phys_addr_t end = base + size - 1;
5d63f81c9e495e1 Miles Chen 2017-02-22 823
a090d711dd2ebd7 Anshuman Khandual 2020-01-30 824 memblock_dbg("%s: [%pa-%pa] %pS\n", __func__,
5d63f81c9e495e1 Miles Chen 2017-02-22 825 &base, &end, (void *)_RET_IP_);
24aa07882b672ff Tejun Heo 2011-07-12 826
9099daed9c6991a Catalin Marinas 2016-10-11 827 kmemleak_free_part_phys(base, size);
f1af9d3af308145 Philipp Hachtmann 2014-01-29 828 return memblock_remove_range(&memblock.reserved, base, size);
95f72d1ed41a66f Yinghai Lu 2010-07-12 829 }
95f72d1ed41a66f Yinghai Lu 2010-07-12 830
:::::: The code at line 821 was first introduced by commit
:::::: 95f72d1ed41a66f1c1c29c24d479de81a0bea36f lmb: rename to memblock
:::::: TO: Yinghai Lu <yinghai@...nel.org>
:::::: CC: Benjamin Herrenschmidt <benh@...nel.crashing.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (31485 bytes)
Powered by blists - more mailing lists