[driver-core:debugfs_cleanup 40/40] drivers/infiniband/hw/cxgb4/device.c:740:9: warning: 'return' with a value, in function returning void

[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:   3991c968605e239dcbd501054f0b45cb2639816c
commit: 3991c968605e239dcbd501054f0b45cb2639816c [40/40] ib: cxgb4: no need to check return value of debugfs_create functions
config: x86_64-randconfig-x019-201900 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 3991c968605e239dcbd501054f0b45cb2639816c
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/infiniband/hw/cxgb4/device.c: In function 'setup_debugfs':
>> drivers/infiniband/hw/cxgb4/device.c:740:9: warning: 'return' with a value, in function returning void
     return 0;
            ^
   drivers/infiniband/hw/cxgb4/device.c:723:13: note: declared here
    static void setup_debugfs(struct c4iw_dev *devp)
                ^~~~~~~~~~~~~

vim +/return +740 drivers/infiniband/hw/cxgb4/device.c

793dad94e Vipul Pandya       2012-12-10  722  
3991c9686 Greg Kroah-Hartman 2019-01-02  723  static void setup_debugfs(struct c4iw_dev *devp)
cfdda9d76 Steve Wise         2010-04-21  724  {
e59b4e918 David Howells      2015-01-21  725  	debugfs_create_file_size("qps", S_IWUSR, devp->debugfs_root,
e59b4e918 David Howells      2015-01-21  726  				 (void *)devp, &qp_debugfs_fops, 4096);
9e8d1fa34 Steve Wise         2010-09-10  727  
e59b4e918 David Howells      2015-01-21  728  	debugfs_create_file_size("stags", S_IWUSR, devp->debugfs_root,
e59b4e918 David Howells      2015-01-21  729  				 (void *)devp, &stag_debugfs_fops, 4096);
8d81ef34b Vipul Pandya       2012-05-18  730  
e59b4e918 David Howells      2015-01-21  731  	debugfs_create_file_size("stats", S_IWUSR, devp->debugfs_root,
e59b4e918 David Howells      2015-01-21  732  				 (void *)devp, &stats_debugfs_fops, 4096);
8d81ef34b Vipul Pandya       2012-05-18  733  
e59b4e918 David Howells      2015-01-21  734  	debugfs_create_file_size("eps", S_IWUSR, devp->debugfs_root,
e59b4e918 David Howells      2015-01-21  735  				 (void *)devp, &ep_debugfs_fops, 4096);
793dad94e Vipul Pandya       2012-12-10  736  
e59b4e918 David Howells      2015-01-21  737  	if (c4iw_wr_log)
e59b4e918 David Howells      2015-01-21  738  		debugfs_create_file_size("wr_log", S_IWUSR, devp->debugfs_root,
e59b4e918 David Howells      2015-01-21  739  					 (void *)devp, &wr_log_debugfs_fops, 4096);
cfdda9d76 Steve Wise         2010-04-21 @740  	return 0;
cfdda9d76 Steve Wise         2010-04-21  741  }
cfdda9d76 Steve Wise         2010-04-21  742  

:::::: The code at line 740 was first introduced by commit
:::::: cfdda9d764362ab77b11a410bb928400e6520d57 RDMA/cxgb4: Add driver for Chelsio T4 RNIC

:::::: TO: Steve Wise <swise@xxxxxxxxxxxxxxxxxxxxx>
:::::: CC: Roland Dreier <rolandd@xxxxxxxxx>

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