[arm-platforms:hack/m2-pmu 11/70] arch/arm64/kvm/emulate-nested.c:114:8: warning: type qualifiers ignored on function return type

kernel test robot lkp at intel.com
Sat May 27 18:23:32 PDT 2023


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git hack/m2-pmu
head:   131aded73e283912aefdb8fc34be0d9e05713cef
commit: 4caccf2e2682beb347648efcf5ab01e0cf589dc8 [11/70] KVM: arm64: nv: Add trap forwarding infrastructure
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20230528/202305280908.q9bx2cV6-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        mkdir -p ~/bin
        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=4caccf2e2682beb347648efcf5ab01e0cf589dc8
        git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
        git fetch --no-tags arm-platforms hack/m2-pmu
        git checkout 4caccf2e2682beb347648efcf5ab01e0cf589dc8
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 ~/bin/make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 ~/bin/make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kvm/

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

All warnings (new ones prefixed by >>):

>> arch/arm64/kvm/emulate-nested.c:114:8: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
     114 | static const enum coarse_grain_trap_id get_trap_config(u32 sysreg)
         |        ^~~~~


vim +114 arch/arm64/kvm/emulate-nested.c

   113	
 > 114	static const enum coarse_grain_trap_id get_trap_config(u32 sysreg)
   115	{
   116		return xa_to_value(xa_load(&sr_forward_xa, sysreg));
   117	}
   118	

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



More information about the linux-arm-kernel mailing list