[vfs:work.mkdir 12/16] include/linux/fs.h:695:9: error: void value not ignored as it ought to be

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

 



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: x86_64-randconfig-x015-201826 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        git checkout fddf6b99216274bd005e486e51e2644ba261bf08
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   In file included from include/linux/cgroup.h:17:0,
                    from include/linux/memcontrol.h:22,
                    from include/linux/swap.h:9,
                    from include/linux/suspend.h:5,
                    from arch/x86/kernel/asm-offsets.c:13:
   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);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   make[2]: *** [arch/x86/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [sub-make] Error 2

vim +695 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


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux