fs/ceph/debugfs.c:297:2: warning: 'return' with a value, in function returning void

From: kbuild test robot
Date: Thu Jul 25 2019 - 11:01:44 EST

tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git master
head: bed38c3e2dca01b358a62b5e73b46e875742fd75
commit: 1a829ff2a6c37187ff8020488e84ec392cb94854 ceph: no need to check return value of debugfs_create functions
date: 3 weeks ago
config: x86_64-randconfig-s1-07251243 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
git checkout 1a829ff2a6c37187ff8020488e84ec392cb94854
# 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@xxxxxxxxx>

All warnings (new ones prefixed by >>):

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

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

039934b8 Sage Weil 2009-11-12 294
1a829ff2 Greg Kroah-Hartman 2019-06-12 295 void ceph_fs_debugfs_init(struct ceph_fs_client *fsc)
039934b8 Sage Weil 2009-11-12 296 {
039934b8 Sage Weil 2009-11-12 @297 return 0;
039934b8 Sage Weil 2009-11-12 298 }
039934b8 Sage Weil 2009-11-12 299

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

:::::: TO: Sage Weil <sage@xxxxxxxxxxxx>
:::::: CC: Sage Weil <sage@xxxxxxxxxxxx>

0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip