[mellanox:queue-next 2/2] drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c:416:7: error: 'struct bnxt_en_dev' has no member named 'en_ops'

From: kernel test robot
Date: Wed Jul 21 2021 - 03:47:01 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux.git queue-next
head: e3b8e3b12bdebe46dc5c2b8627b3d2b212e0b67d
commit: e3b8e3b12bdebe46dc5c2b8627b3d2b212e0b67d [2/2] Merge branch 'testing/rdma-next' into queue-next
config: i386-allyesconfig (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux.git/commit/?id=e3b8e3b12bdebe46dc5c2b8627b3d2b212e0b67d
git remote add mellanox https://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux.git
git fetch --no-tags mellanox queue-next
git checkout e3b8e3b12bdebe46dc5c2b8627b3d2b212e0b67d
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c: In function 'bnxt_ulp_probe':
>> drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c:416:7: error: 'struct bnxt_en_dev' has no member named 'en_ops'
416 | edev->en_ops = &bnxt_en_ops_tbl;
| ^~
>> drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c:416:19: error: 'bnxt_en_ops_tbl' undeclared (first use in this function)
416 | edev->en_ops = &bnxt_en_ops_tbl;
| ^~~~~~~~~~~~~~~
drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c:416:19: note: each undeclared identifier is reported only once for each function it appears in

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PHY_SPARX5_SERDES
Depends on (ARCH_SPARX5 || COMPILE_TEST && OF && HAS_IOMEM
Selected by
- SPARX5_SWITCH && NETDEVICES && ETHERNET && NET_VENDOR_MICROCHIP && NET_SWITCHDEV && HAS_IOMEM && OF


vim +416 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c

a588e4580a7ecb Michael Chan 2016-12-07 405
a588e4580a7ecb Michael Chan 2016-12-07 406 struct bnxt_en_dev *bnxt_ulp_probe(struct net_device *dev)
a588e4580a7ecb Michael Chan 2016-12-07 407 {
a588e4580a7ecb Michael Chan 2016-12-07 408 struct bnxt *bp = netdev_priv(dev);
a588e4580a7ecb Michael Chan 2016-12-07 409 struct bnxt_en_dev *edev;
a588e4580a7ecb Michael Chan 2016-12-07 410
a588e4580a7ecb Michael Chan 2016-12-07 411 edev = bp->edev;
a588e4580a7ecb Michael Chan 2016-12-07 412 if (!edev) {
a588e4580a7ecb Michael Chan 2016-12-07 413 edev = kzalloc(sizeof(*edev), GFP_KERNEL);
a588e4580a7ecb Michael Chan 2016-12-07 414 if (!edev)
a588e4580a7ecb Michael Chan 2016-12-07 415 return ERR_PTR(-ENOMEM);
a588e4580a7ecb Michael Chan 2016-12-07 @416 edev->en_ops = &bnxt_en_ops_tbl;

:::::: The code at line 416 was first introduced by commit
:::::: a588e4580a7ecb715dab8bf09725b97aa0e0e3a0 bnxt_en: Add interface to support RDMA driver.

:::::: TO: Michael Chan <michael.chan@xxxxxxxxxxxx>
:::::: CC: David S. Miller <davem@xxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip