[vfs:work.misc 4/5] fs/inode.c:1615:5: error: redefinition of 'bmap'

[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.misc
head:   caf4444df50ce746faf8eef422f4044d66353925
commit: 65a805fdd75f81aa90eb407585592b8463a8570e [4/5] fibmap: Use bmap instead of ->bmap method in ioctl_fibmap
config: nds32-allnoconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.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 65a805fdd75f81aa90eb407585592b8463a8570e
        # save the attached .config to linux build tree
        GCC_VERSION=9.2.0 make.cross ARCH=nds32 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> fs/inode.c:1615:5: error: redefinition of 'bmap'
    1615 | int bmap(struct inode *inode, sector_t *block)
         |     ^~~~
   In file included from fs/inode.c:7:
   include/linux/fs.h:2872:19: note: previous definition of 'bmap' was here
    2872 | static inline int bmap(struct inode *inode,  sector_t *block)
         |                   ^~~~

vim +/bmap +1615 fs/inode.c

^1da177e4c3f41 Linus Torvalds  2005-04-16  1600  
^1da177e4c3f41 Linus Torvalds  2005-04-16  1601  /**
^1da177e4c3f41 Linus Torvalds  2005-04-16  1602   *	bmap	- find a block number in a file
79decc2b6ea454 Carlos Maiolino 2020-01-09  1603   *	@inode:  inode owning the block number being requested
79decc2b6ea454 Carlos Maiolino 2020-01-09  1604   *	@block: pointer containing the block to find
^1da177e4c3f41 Linus Torvalds  2005-04-16  1605   *
79decc2b6ea454 Carlos Maiolino 2020-01-09  1606   *	Replaces the value in *block with the block number on the device holding
79decc2b6ea454 Carlos Maiolino 2020-01-09  1607   *	corresponding to the requested block number in the file.
79decc2b6ea454 Carlos Maiolino 2020-01-09  1608   *	That is, asked for block 4 of inode 1 the function will replace the
79decc2b6ea454 Carlos Maiolino 2020-01-09  1609   *	4 in *block, with disk block relative to the disk start that holds that
79decc2b6ea454 Carlos Maiolino 2020-01-09  1610   *	block of the file.
79decc2b6ea454 Carlos Maiolino 2020-01-09  1611   *
79decc2b6ea454 Carlos Maiolino 2020-01-09  1612   *	Returns -EINVAL in case of error, 0 otherwise. If mapping falls into a
79decc2b6ea454 Carlos Maiolino 2020-01-09  1613   *	hole, returns 0 and *block is also set to 0.
^1da177e4c3f41 Linus Torvalds  2005-04-16  1614   */
79decc2b6ea454 Carlos Maiolino 2020-01-09 @1615  int bmap(struct inode *inode, sector_t *block)
^1da177e4c3f41 Linus Torvalds  2005-04-16  1616  {
79decc2b6ea454 Carlos Maiolino 2020-01-09  1617  	if (!inode->i_mapping->a_ops->bmap)
79decc2b6ea454 Carlos Maiolino 2020-01-09  1618  		return -EINVAL;
79decc2b6ea454 Carlos Maiolino 2020-01-09  1619  
79decc2b6ea454 Carlos Maiolino 2020-01-09  1620  	*block = inode->i_mapping->a_ops->bmap(inode->i_mapping, *block);
79decc2b6ea454 Carlos Maiolino 2020-01-09  1621  	return 0;
^1da177e4c3f41 Linus Torvalds  2005-04-16  1622  }
^1da177e4c3f41 Linus Torvalds  2005-04-16  1623  EXPORT_SYMBOL(bmap);
^1da177e4c3f41 Linus Torvalds  2005-04-16  1624  

:::::: The code at line 1615 was first introduced by commit
:::::: 79decc2b6ea4542a85d5b352c208a0467bf71477 fs: Enable bmap() function to properly return errors

:::::: TO: Carlos Maiolino <cmaiolino@xxxxxxxxxx>
:::::: CC: Al Viro <viro@xxxxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx 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