[dm-devel] [dm:for-next 5/8] drivers/md/persistent-data/dm-btree.c:702:5: warning: no previous prototype for function 'shadow_child'
kernel test robot
lkp at intel.com
Thu May 20 16:33:05 UTC 2021
tree: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next
head: 68040817337fda98196974401391f2d1b9f87e49
commit: d69e2e7e28bd1d13ad2ac1f2e9ea6184567d1587 [5/8] dm btree: improve btree residency
config: x86_64-randconfig-a013-20210520 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project bf9ef3efaa99c02e7bfc4c57207301b8de39a278)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/commit/?id=d69e2e7e28bd1d13ad2ac1f2e9ea6184567d1587
git remote add dm https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git
git fetch --no-tags dm for-next
git checkout d69e2e7e28bd1d13ad2ac1f2e9ea6184567d1587
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
>> drivers/md/persistent-data/dm-btree.c:702:5: warning: no previous prototype for function 'shadow_child' [-Wmissing-prototypes]
int shadow_child(struct dm_btree_info *info, struct dm_btree_value_type *vt,
^
drivers/md/persistent-data/dm-btree.c:702:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int shadow_child(struct dm_btree_info *info, struct dm_btree_value_type *vt,
^
static
1 warning generated.
vim +/shadow_child +702 drivers/md/persistent-data/dm-btree.c
696
697 /*
698 * We often need to modify a sibling node. This function shadows a particular
699 * child of the given parent node. Making sure to update the parent to point
700 * to the new shadow.
701 */
> 702 int shadow_child(struct dm_btree_info *info, struct dm_btree_value_type *vt,
703 struct btree_node *parent, unsigned index, struct dm_block **result)
704 {
705 int r, inc;
706 dm_block_t root;
707 struct btree_node *node;
708
709 root = value64(parent, index);
710
711 r = dm_tm_shadow_block(info->tm, root, &btree_node_validator,
712 result, &inc);
713 if (r)
714 return r;
715
716 node = dm_block_data(*result);
717
718 if (inc)
719 inc_children(info->tm, node, vt);
720
721 *((__le64 *) value_ptr(parent, index)) =
722 cpu_to_le64(dm_block_location(*result));
723
724 return 0;
725 }
726
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 35853 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20210521/cfe0d572/attachment.gz>
More information about the dm-devel
mailing list