mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Mike Rapoport <rppt@linux.ibm.com>
Cc: kbuild-all@lists.01.org, Mike Rapoport <rppt@kernel.org>,
	linux-kernel@vger.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
Date: Fri, 1 Oct 2021 13:28:25 +0800	[thread overview]
Message-ID: <202110011311.aVfgCNe4-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-10-01  5:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202110011311.aVfgCNe4-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rppt@kernel.org \
    --cc=rppt@linux.ibm.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

Powered by JetHome