public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [broonie-ci:kvm-arm64-sme 17/26] arch/arm64/kvm/guest.c:325:7: error: implicit declaration of function 'vq_available' is invalid in C99
@ 2023-12-06  1:21 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-06  1:21 UTC (permalink / raw)
  To: Mark Brown; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git kvm-arm64-sme
head:   cf8673c4f464f79c9b5528a6ca24001cb40e5605
commit: 9188453af24188b2be6a6129e4a70868fbbfc1f0 [17/26] KVM: arm64: Implement SME vector length configuration
config: arm64-randconfig-003-20231202 (https://download.01.org/0day-ci/archive/20231206/202312060901.mfYwvqW7-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231206/202312060901.mfYwvqW7-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312060901.mfYwvqW7-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/arm64/kvm/guest.c:325:7: error: implicit declaration of function 'vq_available' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                   if (vq_available(vec_type, vq))
                       ^
   arch/arm64/kvm/guest.c:325:7: note: did you mean 'sve_vq_available'?
   arch/arm64/include/asm/fpsimd.h:332:20: note: 'sve_vq_available' declared here
   static inline bool sve_vq_available(unsigned int vq) { return false; }
                      ^
   arch/arm64/kvm/guest.c:365:30: error: implicit declaration of function 'vq_available' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                   if (vq_present(vqs, vq) != vq_available(vec_type, vq))
                                              ^
   2 errors generated.


vim +/vq_available +325 arch/arm64/kvm/guest.c

   311	
   312	static int get_vec_vls(enum vec_type vec_type, struct kvm_vcpu *vcpu,
   313			      const struct kvm_one_reg *reg)
   314	{
   315		unsigned int max_vq, vq;
   316		u64 vqs[KVM_ARM64_SVE_VLS_WORDS];
   317	
   318		if (WARN_ON(!sve_vl_valid(vcpu->arch.max_vl[vec_type])))
   319			return -EINVAL;
   320	
   321		memset(vqs, 0, sizeof(vqs));
   322	
   323		max_vq = vcpu_vec_max_vq(vec_type, vcpu);
   324		for (vq = SVE_VQ_MIN; vq <= max_vq; ++vq)
 > 325			if (vq_available(vec_type, vq))
   326				vqs[vq_word(vq)] |= vq_mask(vq);
   327	
   328		if (copy_to_user((void __user *)reg->addr, vqs, sizeof(vqs)))
   329			return -EFAULT;
   330	
   331		return 0;
   332	}
   333	

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

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

only message in thread, other threads:[~2023-12-06  1:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-06  1:21 [broonie-ci:kvm-arm64-sme 17/26] arch/arm64/kvm/guest.c:325:7: error: implicit declaration of function 'vq_available' is invalid in C99 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