tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 52c7b727581fe725f8b8a283af21fe0651c73c48 commit: f9ff578251dc2f1cf5b9b007e050033d8414829d [11029/11397] bnxt_en: introduce new firmware message API based on DMA pools config: parisc-allyesconfig (attached as .config) compiler: hppa-linux-gcc (GCC) 11.2.0 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 # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=f9ff578251dc2f1cf5b9b007e050033d8414829d git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout f9ff578251dc2f1cf5b9b007e050033d8414829d # save the attached .config to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=parisc 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 >>): In file included from include/linux/mm_types.h:9, from include/linux/buildid.h:5, from include/linux/module.h:14, from drivers/net/ethernet/broadcom/bnxt/bnxt.c:11: drivers/net/ethernet/broadcom/bnxt/bnxt.c: In function 'bnxt_init_board': >> drivers/net/ethernet/broadcom/bnxt/bnxt.c:12062:27: error: 'struct bnxt' has no member named 'db_lock' 12062 | spin_lock_init(&bp->db_lock); | ^~ include/linux/spinlock.h:338:45: note: in definition of macro 'spin_lock_init' 338 | __raw_spin_lock_init(spinlock_check(lock), \ | ^~~~ vim +12062 drivers/net/ethernet/broadcom/bnxt/bnxt.c 230d1f0de754b4 Michael Chan 2019-08-29 11998 c0c050c58d8409 Michael Chan 2015-10-22 11999 static int bnxt_init_board(struct pci_dev *pdev, struct net_device *dev) c0c050c58d8409 Michael Chan 2015-10-22 12000 { c0c050c58d8409 Michael Chan 2015-10-22 12001 int rc; c0c050c58d8409 Michael Chan 2015-10-22 12002 struct bnxt *bp = netdev_priv(dev); c0c050c58d8409 Michael Chan 2015-10-22 12003 c0c050c58d8409 Michael Chan 2015-10-22 12004 SET_NETDEV_DEV(dev, &pdev->dev); c0c050c58d8409 Michael Chan 2015-10-22 12005 c0c050c58d8409 Michael Chan 2015-10-22 12006 /* enable device (incl. PCI PM wakeup), and bus-mastering */ c0c050c58d8409 Michael Chan 2015-10-22 12007 rc = pci_enable_device(pdev); c0c050c58d8409 Michael Chan 2015-10-22 12008 if (rc) { c0c050c58d8409 Michael Chan 2015-10-22 12009 dev_err(&pdev->dev, "Cannot enable PCI device, aborting\n"); c0c050c58d8409 Michael Chan 2015-10-22 12010 goto init_err; c0c050c58d8409 Michael Chan 2015-10-22 12011 } c0c050c58d8409 Michael Chan 2015-10-22 12012 c0c050c58d8409 Michael Chan 2015-10-22 12013 if (!(pci_resource_flags(pdev, 0) & IORESOURCE_MEM)) { c0c050c58d8409 Michael Chan 2015-10-22 12014 dev_err(&pdev->dev, c0c050c58d8409 Michael Chan 2015-10-22 12015 "Cannot find PCI device base address, aborting\n"); c0c050c58d8409 Michael Chan 2015-10-22 12016 rc = -ENODEV; c0c050c58d8409 Michael Chan 2015-10-22 12017 goto init_err_disable; c0c050c58d8409 Michael Chan 2015-10-22 12018 } c0c050c58d8409 Michael Chan 2015-10-22 12019 c0c050c58d8409 Michael Chan 2015-10-22 12020 rc = pci_request_regions(pdev, DRV_MODULE_NAME); c0c050c58d8409 Michael Chan 2015-10-22 12021 if (rc) { c0c050c58d8409 Michael Chan 2015-10-22 12022 dev_err(&pdev->dev, "Cannot obtain PCI resources, aborting\n"); c0c050c58d8409 Michael Chan 2015-10-22 12023 goto init_err_disable; c0c050c58d8409 Michael Chan 2015-10-22 12024 } c0c050c58d8409 Michael Chan 2015-10-22 12025 c0c050c58d8409 Michael Chan 2015-10-22 12026 if (dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)) != 0 && c0c050c58d8409 Michael Chan 2015-10-22 12027 dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)) != 0) { c0c050c58d8409 Michael Chan 2015-10-22 12028 dev_err(&pdev->dev, "System does not support DMA, aborting\n"); 3383176efc0fb0 Zhang Changzhong 2020-11-19 12029 rc = -EIO; c54bc3ced51066 Michael Chan 2020-11-20 12030 goto init_err_release; c0c050c58d8409 Michael Chan 2015-10-22 12031 } c0c050c58d8409 Michael Chan 2015-10-22 12032 c0c050c58d8409 Michael Chan 2015-10-22 12033 pci_set_master(pdev); c0c050c58d8409 Michael Chan 2015-10-22 12034 c0c050c58d8409 Michael Chan 2015-10-22 12035 bp->dev = dev; c0c050c58d8409 Michael Chan 2015-10-22 12036 bp->pdev = pdev; c0c050c58d8409 Michael Chan 2015-10-22 12037 8ae2473842bdbb Michael Chan 2020-05-04 12038 /* Doorbell BAR bp->bar1 is mapped after bnxt_fw_init_one_p2() 8ae2473842bdbb Michael Chan 2020-05-04 12039 * determines the BAR size. 8ae2473842bdbb Michael Chan 2020-05-04 12040 */ c0c050c58d8409 Michael Chan 2015-10-22 12041 bp->bar0 = pci_ioremap_bar(pdev, 0); c0c050c58d8409 Michael Chan 2015-10-22 12042 if (!bp->bar0) { c0c050c58d8409 Michael Chan 2015-10-22 12043 dev_err(&pdev->dev, "Cannot map device registers, aborting\n"); c0c050c58d8409 Michael Chan 2015-10-22 12044 rc = -ENOMEM; c0c050c58d8409 Michael Chan 2015-10-22 12045 goto init_err_release; c0c050c58d8409 Michael Chan 2015-10-22 12046 } c0c050c58d8409 Michael Chan 2015-10-22 12047 c0c050c58d8409 Michael Chan 2015-10-22 12048 bp->bar2 = pci_ioremap_bar(pdev, 4); c0c050c58d8409 Michael Chan 2015-10-22 12049 if (!bp->bar2) { c0c050c58d8409 Michael Chan 2015-10-22 12050 dev_err(&pdev->dev, "Cannot map bar4 registers, aborting\n"); c0c050c58d8409 Michael Chan 2015-10-22 12051 rc = -ENOMEM; c0c050c58d8409 Michael Chan 2015-10-22 12052 goto init_err_release; c0c050c58d8409 Michael Chan 2015-10-22 12053 } c0c050c58d8409 Michael Chan 2015-10-22 12054 6316ea6db93d87 Satish Baddipadige 2016-03-07 12055 pci_enable_pcie_error_reporting(pdev); 6316ea6db93d87 Satish Baddipadige 2016-03-07 12056 c0c050c58d8409 Michael Chan 2015-10-22 12057 INIT_WORK(&bp->sp_task, bnxt_sp_task); 230d1f0de754b4 Michael Chan 2019-08-29 12058 INIT_DELAYED_WORK(&bp->fw_reset_task, bnxt_fw_reset_task); c0c050c58d8409 Michael Chan 2015-10-22 12059 c0c050c58d8409 Michael Chan 2015-10-22 12060 spin_lock_init(&bp->ntp_fltr_lock); 697197e5a17353 Michael Chan 2018-10-14 12061 #if BITS_PER_LONG == 32 697197e5a17353 Michael Chan 2018-10-14 @12062 spin_lock_init(&bp->db_lock); 697197e5a17353 Michael Chan 2018-10-14 12063 #endif c0c050c58d8409 Michael Chan 2015-10-22 12064 c0c050c58d8409 Michael Chan 2015-10-22 12065 bp->rx_ring_size = BNXT_DEFAULT_RX_RING_SIZE; c0c050c58d8409 Michael Chan 2015-10-22 12066 bp->tx_ring_size = BNXT_DEFAULT_TX_RING_SIZE; c0c050c58d8409 Michael Chan 2015-10-22 12067 18775aa8a91fcd Michael Chan 2017-10-26 12068 bnxt_init_dflt_coal(bp); 51f307856b60e6 Michael Chan 2016-07-01 12069 e99e88a9d2b067 Kees Cook 2017-10-16 12070 timer_setup(&bp->timer, bnxt_timer, 0); c0c050c58d8409 Michael Chan 2015-10-22 12071 bp->current_interval = BNXT_TIMER_INTERVAL; c0c050c58d8409 Michael Chan 2015-10-22 12072 442a35a5a7aa72 Jakub Kicinski 2020-07-09 12073 bp->vxlan_fw_dst_port_id = INVALID_HW_RING_ID; 442a35a5a7aa72 Jakub Kicinski 2020-07-09 12074 bp->nge_fw_dst_port_id = INVALID_HW_RING_ID; 442a35a5a7aa72 Jakub Kicinski 2020-07-09 12075 caefe526d7b5af Michael Chan 2015-12-09 12076 clear_bit(BNXT_STATE_OPEN, &bp->state); c0c050c58d8409 Michael Chan 2015-10-22 12077 return 0; c0c050c58d8409 Michael Chan 2015-10-22 12078 c0c050c58d8409 Michael Chan 2015-10-22 12079 init_err_release: 17086399c113d9 Sathya Perla 2017-02-20 12080 bnxt_unmap_bars(bp, pdev); c0c050c58d8409 Michael Chan 2015-10-22 12081 pci_release_regions(pdev); c0c050c58d8409 Michael Chan 2015-10-22 12082 c0c050c58d8409 Michael Chan 2015-10-22 12083 init_err_disable: c0c050c58d8409 Michael Chan 2015-10-22 12084 pci_disable_device(pdev); c0c050c58d8409 Michael Chan 2015-10-22 12085 c0c050c58d8409 Michael Chan 2015-10-22 12086 init_err: c0c050c58d8409 Michael Chan 2015-10-22 12087 return rc; c0c050c58d8409 Michael Chan 2015-10-22 12088 } c0c050c58d8409 Michael Chan 2015-10-22 12089 :::::: The code at line 12062 was first introduced by commit :::::: 697197e5a1735325c0e1ef85dde2b2986354beb9 bnxt_en: Re-structure doorbells. :::::: 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