drivers/infiniband/hw/mlx5/main.c:2357:31: error: 'mlx5_ib_get_vf_config' undeclared

From: kbuild test robot
Date: Sun Apr 03 2016 - 00:56:32 EST


Hi Eli,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f7eeb8a87c033d126ff6b8c35405ba5dc4e55754
commit: eff901d30e6cebd940072637f112ce4d0090ac12 IB/mlx5: Implement callbacks for manipulating VFs
date: 12 days ago
config: x86_64-randconfig-n0-04031158 (attached as .config)
reproduce:
git checkout eff901d30e6cebd940072637f112ce4d0090ac12
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

drivers/infiniband/hw/mlx5/main.c: In function 'mlx5_ib_add':
>> drivers/infiniband/hw/mlx5/main.c:2357:31: error: 'mlx5_ib_get_vf_config' undeclared (first use in this function)
dev->ib_dev.get_vf_config = mlx5_ib_get_vf_config;
^
drivers/infiniband/hw/mlx5/main.c:2357:31: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/infiniband/hw/mlx5/main.c:2358:35: error: 'mlx5_ib_set_vf_link_state' undeclared (first use in this function)
dev->ib_dev.set_vf_link_state = mlx5_ib_set_vf_link_state;
^
>> drivers/infiniband/hw/mlx5/main.c:2359:30: error: 'mlx5_ib_get_vf_stats' undeclared (first use in this function)
dev->ib_dev.get_vf_stats = mlx5_ib_get_vf_stats;
^
>> drivers/infiniband/hw/mlx5/main.c:2360:30: error: 'mlx5_ib_set_vf_guid' undeclared (first use in this function)
dev->ib_dev.set_vf_guid = mlx5_ib_set_vf_guid;
^

vim +/mlx5_ib_get_vf_config +2357 drivers/infiniband/hw/mlx5/main.c

2351 dev->ib_dev.process_mad = mlx5_ib_process_mad;
2352 dev->ib_dev.alloc_mr = mlx5_ib_alloc_mr;
2353 dev->ib_dev.map_mr_sg = mlx5_ib_map_mr_sg;
2354 dev->ib_dev.check_mr_status = mlx5_ib_check_mr_status;
2355 dev->ib_dev.get_port_immutable = mlx5_port_immutable;
2356 if (mlx5_core_is_pf(mdev)) {
> 2357 dev->ib_dev.get_vf_config = mlx5_ib_get_vf_config;
> 2358 dev->ib_dev.set_vf_link_state = mlx5_ib_set_vf_link_state;
> 2359 dev->ib_dev.get_vf_stats = mlx5_ib_get_vf_stats;
> 2360 dev->ib_dev.set_vf_guid = mlx5_ib_set_vf_guid;
2361 }
2362
2363 mlx5_ib_internal_fill_odp_caps(dev);

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data