[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201707251020.bDXHsX68%fengguang.wu@intel.com>
Date: Tue, 25 Jul 2017 10:44:49 +0800
From: kbuild test robot <lkp@...el.com>
To: Michael Chan <michael.chan@...adcom.com>
Cc: kbuild-all@...org, davem@...emloft.net, netdev@...r.kernel.org,
Sathya Perla <sathya.perla@...adcom.com>
Subject: Re: [PATCH net-next 10/10] bnxt_en: add support for port_attr_get
and and get_phys_port_name
Hi Sathya,
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Michael-Chan/bnxt_en-Update-firmware-interface-spec-to-1-8-0/20170725-094835
config: x86_64-randconfig-x016-201730 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
drivers/net/ethernet/broadcom/bnxt/bnxt.c: In function 'bnxt_init_one':
>> drivers/net/ethernet/broadcom/bnxt/bnxt.c:7897:5: error: 'struct net_device' has no member named 'switchdev_ops'; did you mean 'netdev_ops'?
dev->switchdev_ops = &bnxt_switchdev_ops;
^~
--
drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c: In function 'bnxt_vf_rep_netdev_init':
>> drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c:305:5: error: 'struct net_device' has no member named 'switchdev_ops'; did you mean 'netdev_ops'?
dev->switchdev_ops = &bnxt_vf_rep_switchdev_ops;
^~
In file included from include/linux/kernfs.h:13:0,
from include/linux/sysfs.h:15,
from include/linux/kobject.h:21,
from include/linux/pci.h:28,
from drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c:9:
drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c: In function 'bnxt_dl_eswitch_mode_set':
drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c:410:16: error: 'struct bnxt' has no member named 'sriov_lock'
mutex_lock(&bp->sriov_lock);
^
include/linux/mutex.h:164:44: note: in definition of macro 'mutex_lock'
#define mutex_lock(lock) mutex_lock_nested(lock, 0)
^~~~
drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c:439:18: error: 'struct bnxt' has no member named 'sriov_lock'
mutex_unlock(&bp->sriov_lock);
^~
vim +7897 drivers/net/ethernet/broadcom/bnxt/bnxt.c
7863
7864 static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
7865 {
7866 static int version_printed;
7867 struct net_device *dev;
7868 struct bnxt *bp;
7869 int rc, max_irqs;
7870
7871 if (pci_is_bridge(pdev))
7872 return -ENODEV;
7873
7874 if (version_printed++ == 0)
7875 pr_info("%s", version);
7876
7877 max_irqs = bnxt_get_max_irq(pdev);
7878 dev = alloc_etherdev_mq(sizeof(*bp), max_irqs);
7879 if (!dev)
7880 return -ENOMEM;
7881
7882 bp = netdev_priv(dev);
7883
7884 if (bnxt_vf_pciid(ent->driver_data))
7885 bp->flags |= BNXT_FLAG_VF;
7886
7887 if (pdev->msix_cap)
7888 bp->flags |= BNXT_FLAG_MSIX_CAP;
7889
7890 rc = bnxt_init_board(pdev, dev);
7891 if (rc < 0)
7892 goto init_err_free;
7893
7894 dev->netdev_ops = &bnxt_netdev_ops;
7895 dev->watchdog_timeo = BNXT_TX_TIMEOUT;
7896 dev->ethtool_ops = &bnxt_ethtool_ops;
> 7897 dev->switchdev_ops = &bnxt_switchdev_ops;
7898 pci_set_drvdata(pdev, dev);
7899
7900 rc = bnxt_alloc_hwrm_resources(bp);
7901 if (rc)
7902 goto init_err_pci_clean;
7903
7904 mutex_init(&bp->hwrm_cmd_lock);
7905 rc = bnxt_hwrm_ver_get(bp);
7906 if (rc)
7907 goto init_err_pci_clean;
7908
7909 if (bp->flags & BNXT_FLAG_SHORT_CMD) {
7910 rc = bnxt_alloc_hwrm_short_cmd_req(bp);
7911 if (rc)
7912 goto init_err_pci_clean;
7913 }
7914
7915 rc = bnxt_hwrm_func_reset(bp);
7916 if (rc)
7917 goto init_err_pci_clean;
7918
7919 bnxt_hwrm_fw_set_time(bp);
7920
7921 dev->hw_features = NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | NETIF_F_SG |
7922 NETIF_F_TSO | NETIF_F_TSO6 |
7923 NETIF_F_GSO_UDP_TUNNEL | NETIF_F_GSO_GRE |
7924 NETIF_F_GSO_IPXIP4 |
7925 NETIF_F_GSO_UDP_TUNNEL_CSUM | NETIF_F_GSO_GRE_CSUM |
7926 NETIF_F_GSO_PARTIAL | NETIF_F_RXHASH |
7927 NETIF_F_RXCSUM | NETIF_F_GRO;
7928
7929 if (!BNXT_CHIP_TYPE_NITRO_A0(bp))
7930 dev->hw_features |= NETIF_F_LRO;
7931
7932 dev->hw_enc_features =
7933 NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | NETIF_F_SG |
7934 NETIF_F_TSO | NETIF_F_TSO6 |
7935 NETIF_F_GSO_UDP_TUNNEL | NETIF_F_GSO_GRE |
7936 NETIF_F_GSO_UDP_TUNNEL_CSUM | NETIF_F_GSO_GRE_CSUM |
7937 NETIF_F_GSO_IPXIP4 | NETIF_F_GSO_PARTIAL;
7938 dev->gso_partial_features = NETIF_F_GSO_UDP_TUNNEL_CSUM |
7939 NETIF_F_GSO_GRE_CSUM;
7940 dev->vlan_features = dev->hw_features | NETIF_F_HIGHDMA;
7941 dev->hw_features |= NETIF_F_HW_VLAN_CTAG_RX | NETIF_F_HW_VLAN_CTAG_TX |
7942 NETIF_F_HW_VLAN_STAG_RX | NETIF_F_HW_VLAN_STAG_TX;
7943 dev->features |= dev->hw_features | NETIF_F_HIGHDMA;
7944 dev->priv_flags |= IFF_UNICAST_FLT;
7945
7946 /* MTU range: 60 - 9500 */
7947 dev->min_mtu = ETH_ZLEN;
7948 dev->max_mtu = BNXT_MAX_MTU;
7949
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (31958 bytes)
Powered by blists - more mailing lists