From: kbuild test robot <lkp@intel.com>
To: Carlos Maiolino <cmaiolino@redhat.com>
Cc: kbuild-all@lists.01.org, linux-fsdevel@vger.kernel.org,
Al Viro <viro@zeniv.linux.org.uk>
Subject: [vfs:work.misc 4/5] fs/inode.c:1615:5: error: redefinition of 'bmap'
Date: Sat, 11 Jan 2020 10:25:16 +0800 [thread overview]
Message-ID: <202001110912.6NpYdskM%lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2020-01-11 2:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202001110912.6NpYdskM%lkp@intel.com \
--to=lkp@intel.com \
--cc=cmaiolino@redhat.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).