linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [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
@ 2021-10-01  5:28 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-01  5:28 UTC (permalink / raw)
  To: Mike Rapoport; +Cc: kbuild-all, Mike Rapoport, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3364 bytes --]

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@intel.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@kernel.org>
:::::: CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31485 bytes --]

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

only message in thread, other threads:[~2021-10-01  5:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-01  5:28 [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 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;
as well as URLs for NNTP newsgroup(s).