[arm-platforms:kvm-arm64/nv-5.16 42/71] arch/arm64/kvm/mmu.c:710: warning: expecting prototype for stage2_wp_range(). Prototype was for kvm_stage2_wp_range() instead

kernel test robot lkp at intel.com
Sun Nov 28 10:16:30 PST 2021


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/nv-5.16
head:   6162310e2419353608acd8f247bde3fc848d4f64
commit: 9ac2b1e89992029a4af24a4b95e05a401738eea3 [42/71] KVM: arm64: nv: Unmap/flush shadow stage 2 page tables
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20211129/202111290258.hT1o7tRq-lkp@intel.com/config)
compiler: aarch64-linux-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/maz/arm-platforms.git/commit/?id=9ac2b1e89992029a4af24a4b95e05a401738eea3
        git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
        git fetch --no-tags arm-platforms kvm-arm64/nv-5.16
        git checkout 9ac2b1e89992029a4af24a4b95e05a401738eea3
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kvm/

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

All warnings (new ones prefixed by >>):

   arch/arm64/kvm/mmu.c:178: warning: expecting prototype for kvm_unmap_stage2_range(). Prototype was for __unmap_stage2_range() instead
>> arch/arm64/kvm/mmu.c:710: warning: expecting prototype for stage2_wp_range(). Prototype was for kvm_stage2_wp_range() instead


vim +710 arch/arm64/kvm/mmu.c

d5d8184d35c990 arch/arm/kvm/mmu.c   Christoffer Dall 2013-01-20  702  
c64735554c0aad arch/arm/kvm/mmu.c   Mario Smarduch   2015-01-15  703  /**
c64735554c0aad arch/arm/kvm/mmu.c   Mario Smarduch   2015-01-15  704   * stage2_wp_range() - write protect stage2 memory region range
c9c0279cc02b4e arch/arm64/kvm/mmu.c Xiaofei Tan      2020-09-17  705   * @mmu:        The KVM stage-2 MMU pointer
c64735554c0aad arch/arm/kvm/mmu.c   Mario Smarduch   2015-01-15  706   * @addr:	Start address of range
c64735554c0aad arch/arm/kvm/mmu.c   Mario Smarduch   2015-01-15  707   * @end:	End address of range
c64735554c0aad arch/arm/kvm/mmu.c   Mario Smarduch   2015-01-15  708   */
9ac2b1e8999202 arch/arm64/kvm/mmu.c Christoffer Dall 2020-05-27  709  void kvm_stage2_wp_range(struct kvm_s2_mmu *mmu, phys_addr_t addr, phys_addr_t end)
c64735554c0aad arch/arm/kvm/mmu.c   Mario Smarduch   2015-01-15 @710  {
cfb1a98de7a9aa arch/arm64/kvm/mmu.c Quentin Perret   2021-03-19  711  	struct kvm *kvm = kvm_s2_mmu_to_kvm(mmu);
cc38d61cace392 arch/arm64/kvm/mmu.c Quentin Perret   2020-09-11  712  	stage2_apply_range_resched(kvm, addr, end, kvm_pgtable_stage2_wrprotect);
c64735554c0aad arch/arm/kvm/mmu.c   Mario Smarduch   2015-01-15  713  }
c64735554c0aad arch/arm/kvm/mmu.c   Mario Smarduch   2015-01-15  714  

:::::: The code at line 710 was first introduced by commit
:::::: c64735554c0aad2dc83c737ecf4c32075bed57a4 KVM: arm: Add initial dirty page locking support

:::::: TO: Mario Smarduch <m.smarduch at samsung.com>
:::::: CC: Christoffer Dall <christoffer.dall at linaro.org>

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



More information about the linux-arm-kernel mailing list