[staging:debugfs_cleanup 814/814] arch/x86//kernel/kdebugfs.c:153:17: error: 'version' undeclared; did you mean 'err_version'?

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git debugfs_cleanup
head:   4c08a9f6835cff642bc71face6ab47ebfdeda70c
commit: 4c08a9f6835cff642bc71face6ab47ebfdeda70c [814/814] arch/*: no need to check return value of debugfs_create functions
config: i386-randconfig-x008-201821 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        git checkout 4c08a9f6835cff642bc71face6ab47ebfdeda70c
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   arch/x86//kernel/kdebugfs.c: In function 'boot_params_kdebugfs_init':
>> arch/x86//kernel/kdebugfs.c:151:17: error: 'data' undeclared (first use in this function); did you mean 'path'?
     debugfs_remove(data);
                    ^~~~
                    path
   arch/x86//kernel/kdebugfs.c:151:17: note: each undeclared identifier is reported only once for each function it appears in
>> arch/x86//kernel/kdebugfs.c:153:17: error: 'version' undeclared (first use in this function); did you mean 'err_version'?
     debugfs_remove(version);
                    ^~~~~~~
                    err_version
   arch/x86//kernel/kdebugfs.c:154:1: warning: label 'err_dir' defined but not used [-Wunused-label]
    err_dir:
    ^~~~~~~
   arch/x86//kernel/kdebugfs.c:152:1: warning: label 'err_version' defined but not used [-Wunused-label]
    err_version:
    ^~~~~~~~~~~

vim +153 arch/x86//kernel/kdebugfs.c

6d7d74337 Huang, Ying            2008-01-30  133  
6d7d74337 Huang, Ying            2008-01-30  134  static int __init boot_params_kdebugfs_init(void)
6d7d74337 Huang, Ying            2008-01-30  135  {
4c08a9f68 Greg Kroah-Hartman     2018-05-30  136  	struct dentry *dbp;
390cd85c8 Jaswinder Singh Rajput 2009-03-21  137  	int error = -ENOMEM;
6d7d74337 Huang, Ying            2008-01-30  138  
10bce8410 Borislav Petkov        2017-02-27  139  	dbp = debugfs_create_dir("boot_params", arch_debugfs_dir);
390cd85c8 Jaswinder Singh Rajput 2009-03-21  140  
4c08a9f68 Greg Kroah-Hartman     2018-05-30  141  	debugfs_create_x16("version", S_IRUGO, dbp, &boot_params.hdr.version);
4c08a9f68 Greg Kroah-Hartman     2018-05-30  142  	debugfs_create_blob("data", S_IRUGO, dbp, &boot_params_blob);
390cd85c8 Jaswinder Singh Rajput 2009-03-21  143  
c14b2adf1 Huang, Ying            2008-03-28  144  	error = create_setup_data_nodes(dbp);
c14b2adf1 Huang, Ying            2008-03-28  145  	if (error)
c14b2adf1 Huang, Ying            2008-03-28  146  		goto err_data;
390cd85c8 Jaswinder Singh Rajput 2009-03-21  147  
6d7d74337 Huang, Ying            2008-01-30  148  	return 0;
c14b2adf1 Huang, Ying            2008-03-28  149  
c14b2adf1 Huang, Ying            2008-03-28  150  err_data:
c14b2adf1 Huang, Ying            2008-03-28 @151  	debugfs_remove(data);
6d7d74337 Huang, Ying            2008-01-30  152  err_version:
6d7d74337 Huang, Ying            2008-01-30 @153  	debugfs_remove(version);
6d7d74337 Huang, Ying            2008-01-30  154  err_dir:
6d7d74337 Huang, Ying            2008-01-30  155  	debugfs_remove(dbp);
6d7d74337 Huang, Ying            2008-01-30  156  	return error;
6d7d74337 Huang, Ying            2008-01-30  157  }
390cd85c8 Jaswinder Singh Rajput 2009-03-21  158  #endif /* CONFIG_DEBUG_BOOT_PARAMS */
6d7d74337 Huang, Ying            2008-01-30  159  

:::::: The code at line 153 was first introduced by commit
:::::: 6d7d7433750c7c6eec93d7b3206019e329228686 x86 boot : export boot_params via debugfs for debugging

:::::: TO: Huang, Ying <ying.huang@xxxxxxxxx>
:::::: CC: Ingo Molnar <mingo@xxxxxxx>

---
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