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

kbuild test robot lkp at intel.com
Tue May 28 10:22:15 UTC 2019


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 at intel.com>

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 at tencent.com>
:::::: CC: Paolo Bonzini <pbonzini at redhat.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 27260 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20190528/5f009623/attachment-0001.bin>


More information about the devel mailing list