* [vfs:work.misc 4/5] fs/inode.c:1615:5: error: redefinition of 'bmap'
@ 2020-01-11 2:25 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-01-11 2:25 UTC (permalink / raw)
To: Carlos Maiolino; +Cc: kbuild-all, linux-fsdevel, Al Viro
[-- Attachment #1: Type: text/plain, Size: 3604 bytes --]
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@intel.com>
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@redhat.com>
:::::: CC: Al Viro <viro@zeniv.linux.org.uk>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 5229 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-11 2:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-11 2:25 [vfs:work.misc 4/5] fs/inode.c:1615:5: error: redefinition of 'bmap' 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).