[ext4:dev 16/17] fs/ext4/ioctl.c:426:1: warning: control reaches end of non-void function

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev
head:   880cec3449e040bc072f4f9c5bd465c6d0afa481
commit: e14c6dbc642982ad6f88c2f7b46a23512e5803c0 [16/17] ext4: add FS_IOC_FSSETXATTR/FS_IOC_FSGETXATTR interface support
config: x86_64-randconfig-x014-01040119 (attached as .config)
reproduce:
        git checkout e14c6dbc642982ad6f88c2f7b46a23512e5803c0
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   fs/ext4/ioctl.c: In function 'ext4_ioctl_setproject':
>> fs/ext4/ioctl.c:426:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^

vim +426 fs/ext4/ioctl.c

   410	out_dirty:
   411		rc = ext4_mark_iloc_dirty(handle, inode, &iloc);
   412		if (!err)
   413			err = rc;
   414	out_stop:
   415		ext4_journal_stop(handle);
   416	out_unlock:
   417		mutex_unlock(&inode->i_mutex);
   418		mnt_drop_write_file(filp);
   419		return err;
   420	}
   421	#else
   422	static int ext4_ioctl_setproject(struct file *filp, __u32 projid)
   423	{
   424		if (projid != EXT4_DEF_PROJID)
   425			return -EOPNOTSUPP;
 > 426	}
   427	#endif
   428	
   429	/* Transfer internal flags to xflags */
   430	static inline __u32 ext4_iflags_to_xflags(unsigned long iflags)
   431	{
   432		__u32 xflags = 0;
   433	
   434		if (iflags & EXT4_SYNC_FL)

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux