linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [vfs:work.mkdir 12/16] include/linux/fs.h:696:1: warning: control reaches end of non-void function
@ 2018-07-07  4:05 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-07-07  4:05 UTC (permalink / raw)
  To: Al Viro; +Cc: kbuild-all, linux-fsdevel

[-- Attachment #1: Type: text/plain, Size: 2183 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.mkdir
head:   c11d902d3db0ab337cb8181e9aa73d5d162dc234
commit: fddf6b99216274bd005e486e51e2644ba261bf08 [12/16] new helper: inode_fake_hash()
config: m68k-sun3_defconfig (attached as .config)
compiler: m68k-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout fddf6b99216274bd005e486e51e2644ba261bf08
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=m68k 

All warnings (new ones prefixed by >>):

   In file included from include/linux/huge_mm.h:7:0,
                    from include/linux/mm.h:479,
                    from fs/xfs/kmem.h:11,
                    from fs/xfs/xfs_linux.h:24,
                    from fs/xfs/xfs.h:23,
                    from fs/xfs/xfs_iops.c:6:
   include/linux/fs.h: In function 'inode_fake_hash':
   include/linux/fs.h:695:9: error: void value not ignored as it ought to be
     return hlist_add_fake(&inode->i_hash);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/huge_mm.h:7:0,
                    from include/linux/mm.h:479,
                    from fs/xfs/kmem.h:11,
                    from fs/xfs/xfs_linux.h:24,
                    from fs/xfs/xfs.h:23,
                    from fs/xfs/xfs_iops.c:6:
>> include/linux/fs.h:696:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^

vim +696 include/linux/fs.h

   686	
   687	/*
   688	 * __mark_inode_dirty expects inodes to be hashed.  Since we don't
   689	 * want special inodes in the fileset inode space, we make them
   690	 * appear hashed, but do not put on any lists.  hlist_del()
   691	 * will work fine and require no locking.
   692	 */
   693	static inline int inode_fake_hash(struct inode *inode)
   694	{
 > 695		return hlist_add_fake(&inode->i_hash);
 > 696	}
   697	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 11906 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-07-07  4:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-07  4:05 [vfs:work.mkdir 12/16] include/linux/fs.h:696:1: warning: control reaches end of non-void function kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).