[PATCH v4 03/14] KVM: arm64: PMU: Don't use the sanitized value for PMUVer

kernel test robot lkp at intel.com
Thu Feb 16 03:30:09 PST 2023


Hi Reiji,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on 4ec5183ec48656cec489c49f989c508b68b518e3]

url:    https://github.com/intel-lab-lkp/linux/commits/Reiji-Watanabe/KVM-arm64-PMU-Introduce-a-helper-to-set-the-guest-s-PMU/20230211-111929
base:   4ec5183ec48656cec489c49f989c508b68b518e3
patch link:    https://lore.kernel.org/r/20230211031506.4159098-4-reijiw%40google.com
patch subject: [PATCH v4 03/14] KVM: arm64: PMU: Don't use the sanitized value for PMUVer
config: arm64-randconfig-r032-20230213 (https://download.01.org/0day-ci/archive/20230216/202302161936.Uzpkezkn-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project db89896bbbd2251fff457699635acbbedeead27f)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/intel-lab-lkp/linux/commit/29753380ce14f6aec0352bcc4762ba2514289849
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Reiji-Watanabe/KVM-arm64-PMU-Introduce-a-helper-to-set-the-guest-s-PMU/20230211-111929
        git checkout 29753380ce14f6aec0352bcc4762ba2514289849
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kvm/ drivers/hte/ kernel/bpf/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp at intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302161936.Uzpkezkn-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/arm64/kvm/pmu-emul.c:1059:4: warning: no previous prototype for function 'kvm_arm_pmu_get_pmuver_limit' [-Wmissing-prototypes]
   u8 kvm_arm_pmu_get_pmuver_limit(void)
      ^
   arch/arm64/kvm/pmu-emul.c:1059:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   u8 kvm_arm_pmu_get_pmuver_limit(void)
   ^
   static 
   1 warning generated.


vim +/kvm_arm_pmu_get_pmuver_limit +1059 arch/arm64/kvm/pmu-emul.c

3d0dba5764b943 Marc Zyngier 2022-11-13  1058  
3d0dba5764b943 Marc Zyngier 2022-11-13 @1059  u8 kvm_arm_pmu_get_pmuver_limit(void)

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests



More information about the linux-arm-kernel mailing list