[driver-core:debugfs_cleanup 31/55] fs/ceph/debugfs.c:267:9: warning: 'return' with a value, in function returning void

kbuild test robot lkp at intel.com
Sun May 19 16:30:22 UTC 2019

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup
head:   46014e29feaf627416cde1fd5c21b37ff7f8b245
commit: 389881a7dbe15106b1f978a35c3c032002705dfd [31/55] ceph: no need to check return value of debugfs_create functions
config: x86_64-randconfig-u0-05192316 (attached as .config)
compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010
        git checkout 389881a7dbe15106b1f978a35c3c032002705dfd
        # 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 warnings (new ones prefixed by >>):

   fs/ceph/debugfs.c: In function 'ceph_fs_debugfs_init':
>> fs/ceph/debugfs.c:267:9: warning: 'return' with a value, in function returning void
     return 0;

vim +/return +267 fs/ceph/debugfs.c

039934b8 Sage Weil          2009-11-12  264  
389881a7 Greg Kroah-Hartman 2019-01-04  265  void ceph_fs_debugfs_init(struct ceph_fs_client *fsc)
039934b8 Sage Weil          2009-11-12  266  {
039934b8 Sage Weil          2009-11-12 @267  	return 0;
039934b8 Sage Weil          2009-11-12  268  }
039934b8 Sage Weil          2009-11-12  269  

:::::: The code at line 267 was first introduced by commit
:::::: 039934b895c89c2bb40aa5132efe00e60b70efca ceph: build cleanly without CONFIG_DEBUG_FS

:::::: TO: Sage Weil <sage at newdream.net>
:::::: CC: Sage Weil <sage at newdream.net>

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: 37279 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20190520/4aaf33d9/attachment-0001.bin>

More information about the devel mailing list