[driver-core:debugfs_cleanup 40/40] drivers/infiniband/hw/cxgb4/device.c:740:9: warning: 'return' with a value, in function returning void
kbuild test robot
lkp at intel.com
Wed Jan 2 17:00:51 UTC 2019
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 at opengridcomputing.com>
:::::: CC: Roland Dreier <rolandd at cisco.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: 34120 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20190103/0fe76de1/attachment-0001.bin>
More information about the devel
mailing list