[driver-core:debugfs_cleanup 4/55] arch/x86/kvm/debugfs.c:60:3: error: 'ret' undeclared; did you mean 'net'?

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup
head:   ed5c9a4774ec958bdcd25c4786629537e8ee2317
commit: 14edfc42c918fb71d35786bb35622a175d9fab5c [4/55] x86: kvm: no need to check return value of debugfs_create functions
config: x86_64-kexec (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 14edfc42c918fb71d35786bb35622a175d9fab5c
        # save the attached .config to linux build tree
        make ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   arch/x86/kvm/debugfs.c: In function 'kvm_arch_create_vcpu_debugfs':
>> arch/x86/kvm/debugfs.c:60:3: error: 'ret' undeclared (first use in this function); did you mean 'net'?
      ret = debugfs_create_file("lapic_timer_advance_ns", 0444,
      ^~~
      net
   arch/x86/kvm/debugfs.c:60:3: note: each undeclared identifier is reported only once for each function it appears in

vim +60 arch/x86/kvm/debugfs.c

4f5758fc Luiz Capitulino    2016-09-16  53  
235539b4 Luiz Capitulino    2016-09-07  54  int kvm_arch_create_vcpu_debugfs(struct kvm_vcpu *vcpu)
235539b4 Luiz Capitulino    2016-09-07  55  {
14edfc42 Greg Kroah-Hartman 2018-05-30  56  	debugfs_create_file("tsc-offset", 0444, vcpu->debugfs_dentry, vcpu,
14edfc42 Greg Kroah-Hartman 2018-05-30  57  			    &vcpu_tsc_offset_fops);
4f5758fc Luiz Capitulino    2016-09-16  58  
16ba3ab4 Wanpeng Li         2019-05-20  59  	if (lapic_in_kernel(vcpu)) {
16ba3ab4 Wanpeng Li         2019-05-20 @60  		ret = debugfs_create_file("lapic_timer_advance_ns", 0444,

:::::: The code at line 60 was first introduced by commit
:::::: 16ba3ab4e15ca031270deb3cbfd38416c719e291 KVM: LAPIC: Expose per-vCPU timer_advance_ns to userspace

:::::: TO: Wanpeng Li <wanpengli@xxxxxxxxxxx>
:::::: CC: Paolo Bonzini <pbonzini@xxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux