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:
.config.gz
Description: application/gzip