[agraf-2.6:kvm-kho-gmem-test 19/27] arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:4421:49: warning: 'struct kvm_s2_mmu' declared inside parameter list will not be visible outside of this definition or declaration

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

 



tree:   https://github.com/agraf/linux-2.6.git kvm-kho-gmem-test
head:   9a58862a298a63bad21d05191e28b857063bb9dc
commit: ea39f95803e6da8a46791922be3724b49bea2c7a [19/27] XXX make fdbox work
config: powerpc-powernv_defconfig (https://download.01.org/0day-ci/archive/20240505/202405050208.ErN5HQGM-lkp@xxxxxxxxx/config)
compiler: powerpc64le-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240505/202405050208.ErN5HQGM-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405050208.ErN5HQGM-lkp@xxxxxxxxx/

All error/warnings (new ones prefixed by >>):

>> arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:4421:49: warning: 'struct kvm_s2_mmu' declared inside parameter list will not be visible outside of this definition or declaration
    4421 | int kvm_init_stage2_mmu(struct kvm *kvm, struct kvm_s2_mmu *mmu, unsigned long type);
         |                                                 ^~~~~~~~~~
   arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:4422:5: warning: no previous prototype for 'kvm_unwrap_file' [-Wmissing-prototypes]
    4422 | int kvm_unwrap_file(struct file *filp)
         |     ^~~~~~~~~~~~~~~
   arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'kvm_unwrap_file':
   arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:4427:17: warning: statement with no effect [-Wunused-value]
    4427 |                 vcpu;
         |                 ^~~~
>> arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:4432:58: error: 'struct kvm_arch' has no member named 'mmu'
    4432 |                 ret = kvm_init_stage2_mmu(kvm, &kvm->arch.mmu, 0);
         |                                                          ^


vim +4421 arch/powerpc/kvm/../../../virt/kvm/kvm_main.c

  4417	
  4418	/* XXX hack for prototype. Needs to move into file ops */
  4419	static struct file_operations kvm_vm_fops;
  4420	/* XXX hack for prototype. Needs to live in arch code */
> 4421	int kvm_init_stage2_mmu(struct kvm *kvm, struct kvm_s2_mmu *mmu, unsigned long type);
  4422	int kvm_unwrap_file(struct file *filp)
  4423	{
  4424		int ret = 0;
  4425		if (filp->f_op == &kvm_vcpu_fops) {
  4426			struct kvm_vcpu *vcpu = filp->private_data;
  4427			vcpu;
  4428		} else if (filp->f_op == &kvm_vm_fops) {
  4429			struct kvm *kvm = filp->private_data;
  4430	
  4431			kvm->mm = current->mm;
> 4432			ret = kvm_init_stage2_mmu(kvm, &kvm->arch.mmu, 0);
  4433		} else {
  4434			ret = -EINVAL;
  4435		}
  4436	
  4437		return ret;
  4438	}
  4439	

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




[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux