[kvms390:next 8/8] arch/s390/kvm/kvm-s390.c:2936:6: error: expected '(' before 'kvm_has_pckmo_ecc'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git next
head:   8ca4b0ebcee809dafea4c19c1d3d22a5d29a2d0d
commit: 8ca4b0ebcee809dafea4c19c1d3d22a5d29a2d0d [8/8] KVM: s390: enable MSA9 keywrapping functions depending on cpu model
config: s390-allyesconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 8ca4b0ebcee809dafea4c19c1d3d22a5d29a2d0d
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=s390 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>


All errors (new ones prefixed by >>):

   arch/s390/kvm/kvm-s390.c: In function 'kvm_s390_vcpu_crypto_setup':
>> arch/s390/kvm/kvm-s390.c:2936:6: error: expected '(' before 'kvm_has_pckmo_ecc'
      if kvm_has_pckmo_ecc(kvm)
         ^~~~~~~~~~~~~~~~~
>> arch/s390/kvm/kvm-s390.c:2936:24: error: 'kvm' undeclared (first use in this function)
      if kvm_has_pckmo_ecc(kvm)
                           ^~~
   arch/s390/kvm/kvm-s390.c:2936:24: note: each undeclared identifier is reported only once for each function it appears in

vim +2936 arch/s390/kvm/kvm-s390.c

  2914	
  2915	static void kvm_s390_vcpu_crypto_setup(struct kvm_vcpu *vcpu)
  2916	{
  2917		/*
  2918		 * If the AP instructions are not being interpreted and the MSAX3
  2919		 * facility is not configured for the guest, there is nothing to set up.
  2920		 */
  2921		if (!vcpu->kvm->arch.crypto.apie && !test_kvm_facility(vcpu->kvm, 76))
  2922			return;
  2923	
  2924		vcpu->arch.sie_block->crycbd = vcpu->kvm->arch.crypto.crycbd;
  2925		vcpu->arch.sie_block->ecb3 &= ~(ECB3_AES | ECB3_DEA);
  2926		vcpu->arch.sie_block->eca &= ~ECA_APIE;
  2927		vcpu->arch.sie_block->ecd &= ~ECD_ECC;
  2928	
  2929		if (vcpu->kvm->arch.crypto.apie)
  2930			vcpu->arch.sie_block->eca |= ECA_APIE;
  2931	
  2932		/* Set up protected key support */
  2933		if (vcpu->kvm->arch.crypto.aes_kw) {
  2934			vcpu->arch.sie_block->ecb3 |= ECB3_AES;
  2935			/* ecc is also wrapped with AES key */
> 2936			if kvm_has_pckmo_ecc(kvm)
  2937				vcpu->arch.sie_block->ecd |= ECD_ECC;
  2938		}
  2939	
  2940		if (vcpu->kvm->arch.crypto.dea_kw)
  2941			vcpu->arch.sie_block->ecb3 |= ECB3_DEA;
  2942	}
  2943	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux