2016-04-03 04:54:47

by Fengguang Wu

[permalink] [raw]
Subject: drivers/infiniband/hw/mlx5/main.c:2357:31: error: 'mlx5_ib_get_vf_config' undeclared

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


Attachments:
(No filename) (2.40 kB)
.config.gz (27.39 kB)
Download all attachments

2016-04-04 15:55:17

by Eli Cohen

[permalink] [raw]
Subject: RE: drivers/infiniband/hw/mlx5/main.c:2357:31: error: 'mlx5_ib_get_vf_config' undeclared

Hi Doug,

Could you please pull this fix?

https://lkml.org/lkml/2016/3/23/132

Thanks

-----Original Message-----
From: kbuild test robot [mailto:[email protected]]
Sent: Saturday, April 02, 2016 11:54 PM
To: Eli Cohen <[email protected]>
Cc: [email protected]; [email protected]; Doug Ledford <[email protected]>; Or Gerlitz <[email protected]>
Subject: drivers/infiniband/hw/mlx5/main.c:2357:31: error: 'mlx5_ib_get_vf_config' undeclared

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

2016-04-06 16:18:42

by Doug Ledford

[permalink] [raw]
Subject: Re: drivers/infiniband/hw/mlx5/main.c:2357:31: error: 'mlx5_ib_get_vf_config' undeclared

On 4/4/16 7:22 AM, Eli Cohen wrote:
> Hi Doug,
>
> Could you please pull this fix?
>
> https://lkml.org/lkml/2016/3/23/132

I've pulled the fix, once I have the 0day results back, I'll submit the
pull request.


--
Doug Ledford <[email protected]>
GPG Key ID: 0E572FDD


Attachments:
signature.asc (907.00 B)
OpenPGP digital signature