* [hch-block:remove-dma-mask-indirection 2/2] drivers//scsi/bnx2i/bnx2i_iscsi.c:794:36: error: 'struct pci_dev' has no member named 'dma_mask'
@ 2020-03-11 19:37 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-03-11 19:37 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 10624 bytes --]
tree: git://git.infradead.org/users/hch/block.git remove-dma-mask-indirection
head: 7f0f0d04b7c2d957bee8220cf37362ed7b956a3b
commit: 7f0f0d04b7c2d957bee8220cf37362ed7b956a3b [2/2] device.h: make dma_mask a scalar instead of a pointer
config: xtensa-randconfig-a001-20200311 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 7f0f0d04b7c2d957bee8220cf37362ed7b956a3b
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers//scsi/bnx2i/bnx2i_iscsi.c: In function 'bnx2i_alloc_hba':
>> drivers//scsi/bnx2i/bnx2i_iscsi.c:794:36: error: 'struct pci_dev' has no member named 'dma_mask'
794 | shost->dma_boundary = cnic->pcidev->dma_mask;
| ^~
--
drivers//net/ethernet/cadence/macb_pci.c: In function 'macb_probe':
>> drivers//net/ethernet/cadence/macb_pci.c:87:27: error: 'struct pci_dev' has no member named 'dma_mask'
87 | plat_info.dma_mask = pdev->dma_mask;
| ^~
--
drivers/rapidio/rio-scan.c: In function 'rio_setup_device':
>> drivers/rapidio/rio-scan.c:450:6: error: 'struct rio_dev' has no member named 'dma_mask'
450 | rdev->dma_mask = DMA_BIT_MASK(32);
| ^~
vim +794 drivers//scsi/bnx2i/bnx2i_iscsi.c
cf4e6363859d30 Michael Chan 2009-06-08 777
cf4e6363859d30 Michael Chan 2009-06-08 778
cf4e6363859d30 Michael Chan 2009-06-08 779 /**
cf4e6363859d30 Michael Chan 2009-06-08 780 * bnx2i_alloc_hba - allocate and init adapter instance
cf4e6363859d30 Michael Chan 2009-06-08 781 * @cnic: cnic device pointer
cf4e6363859d30 Michael Chan 2009-06-08 782 *
cf4e6363859d30 Michael Chan 2009-06-08 783 * allocate & initialize adapter structure and call other
cf4e6363859d30 Michael Chan 2009-06-08 784 * support routines to do per adapter initialization
cf4e6363859d30 Michael Chan 2009-06-08 785 */
cf4e6363859d30 Michael Chan 2009-06-08 786 struct bnx2i_hba *bnx2i_alloc_hba(struct cnic_dev *cnic)
cf4e6363859d30 Michael Chan 2009-06-08 787 {
cf4e6363859d30 Michael Chan 2009-06-08 788 struct Scsi_Host *shost;
cf4e6363859d30 Michael Chan 2009-06-08 789 struct bnx2i_hba *hba;
cf4e6363859d30 Michael Chan 2009-06-08 790
cf4e6363859d30 Michael Chan 2009-06-08 791 shost = iscsi_host_alloc(&bnx2i_host_template, sizeof(*hba), 0);
cf4e6363859d30 Michael Chan 2009-06-08 792 if (!shost)
cf4e6363859d30 Michael Chan 2009-06-08 793 return NULL;
cf4e6363859d30 Michael Chan 2009-06-08 @794 shost->dma_boundary = cnic->pcidev->dma_mask;
cf4e6363859d30 Michael Chan 2009-06-08 795 shost->transportt = bnx2i_scsi_xport_template;
cf4e6363859d30 Michael Chan 2009-06-08 796 shost->max_id = ISCSI_MAX_CONNS_PER_HBA;
cf4e6363859d30 Michael Chan 2009-06-08 797 shost->max_channel = 0;
cf4e6363859d30 Michael Chan 2009-06-08 798 shost->max_lun = 512;
cf4e6363859d30 Michael Chan 2009-06-08 799 shost->max_cmd_len = 16;
cf4e6363859d30 Michael Chan 2009-06-08 800
cf4e6363859d30 Michael Chan 2009-06-08 801 hba = iscsi_host_priv(shost);
cf4e6363859d30 Michael Chan 2009-06-08 802 hba->shost = shost;
cf4e6363859d30 Michael Chan 2009-06-08 803 hba->netdev = cnic->netdev;
cf4e6363859d30 Michael Chan 2009-06-08 804 /* Get PCI related information and update hba struct members */
cf4e6363859d30 Michael Chan 2009-06-08 805 hba->pcidev = cnic->pcidev;
cf4e6363859d30 Michael Chan 2009-06-08 806 pci_dev_get(hba->pcidev);
cf4e6363859d30 Michael Chan 2009-06-08 807 hba->pci_did = hba->pcidev->device;
cf4e6363859d30 Michael Chan 2009-06-08 808 hba->pci_vid = hba->pcidev->vendor;
cf4e6363859d30 Michael Chan 2009-06-08 809 hba->pci_sdid = hba->pcidev->subsystem_device;
cf4e6363859d30 Michael Chan 2009-06-08 810 hba->pci_svid = hba->pcidev->subsystem_vendor;
cf4e6363859d30 Michael Chan 2009-06-08 811 hba->pci_func = PCI_FUNC(hba->pcidev->devfn);
cf4e6363859d30 Michael Chan 2009-06-08 812 hba->pci_devno = PCI_SLOT(hba->pcidev->devfn);
cf4e6363859d30 Michael Chan 2009-06-08 813
b83908ce845311 Eddie Wai 2012-10-15 814 bnx2i_identify_device(hba, cnic);
cf4e6363859d30 Michael Chan 2009-06-08 815 bnx2i_setup_host_queue_size(hba, shost);
cf4e6363859d30 Michael Chan 2009-06-08 816
a77171806515fb Eddie Wai 2012-06-29 817 hba->reg_base = pci_resource_start(hba->pcidev, 0);
cf4e6363859d30 Michael Chan 2009-06-08 818 if (test_bit(BNX2I_NX2_DEV_5709, &hba->cnic_dev_type)) {
a77171806515fb Eddie Wai 2012-06-29 819 hba->regview = pci_iomap(hba->pcidev, 0, BNX2_MQ_CONFIG2);
cf4e6363859d30 Michael Chan 2009-06-08 820 if (!hba->regview)
cf4e6363859d30 Michael Chan 2009-06-08 821 goto ioreg_map_err;
cf4e6363859d30 Michael Chan 2009-06-08 822 } else if (test_bit(BNX2I_NX2_DEV_57710, &hba->cnic_dev_type)) {
a77171806515fb Eddie Wai 2012-06-29 823 hba->regview = pci_iomap(hba->pcidev, 0, 4096);
cf4e6363859d30 Michael Chan 2009-06-08 824 if (!hba->regview)
cf4e6363859d30 Michael Chan 2009-06-08 825 goto ioreg_map_err;
cf4e6363859d30 Michael Chan 2009-06-08 826 }
cf4e6363859d30 Michael Chan 2009-06-08 827
cf4e6363859d30 Michael Chan 2009-06-08 828 if (bnx2i_setup_mp_bdt(hba))
cf4e6363859d30 Michael Chan 2009-06-08 829 goto mp_bdt_mem_err;
cf4e6363859d30 Michael Chan 2009-06-08 830
cf4e6363859d30 Michael Chan 2009-06-08 831 INIT_LIST_HEAD(&hba->ep_ofld_list);
46012e8b8de325 Eddie Wai 2010-07-01 832 INIT_LIST_HEAD(&hba->ep_active_list);
cf4e6363859d30 Michael Chan 2009-06-08 833 INIT_LIST_HEAD(&hba->ep_destroy_list);
cf4e6363859d30 Michael Chan 2009-06-08 834 rwlock_init(&hba->ep_rdwr_lock);
cf4e6363859d30 Michael Chan 2009-06-08 835
cf4e6363859d30 Michael Chan 2009-06-08 836 hba->mtu_supported = BNX2I_MAX_MTU_SUPPORTED;
cf4e6363859d30 Michael Chan 2009-06-08 837
cf4e6363859d30 Michael Chan 2009-06-08 838 /* different values for 5708/5709/57710 */
cf4e6363859d30 Michael Chan 2009-06-08 839 hba->max_active_conns = ISCSI_MAX_CONNS_PER_HBA;
cf4e6363859d30 Michael Chan 2009-06-08 840
cf4e6363859d30 Michael Chan 2009-06-08 841 if (bnx2i_setup_free_cid_que(hba))
cf4e6363859d30 Michael Chan 2009-06-08 842 goto cid_que_err;
cf4e6363859d30 Michael Chan 2009-06-08 843
cf4e6363859d30 Michael Chan 2009-06-08 844 /* SQ/RQ/CQ size can be changed via sysfx interface */
cf4e6363859d30 Michael Chan 2009-06-08 845 if (test_bit(BNX2I_NX2_DEV_57710, &hba->cnic_dev_type)) {
cf4e6363859d30 Michael Chan 2009-06-08 846 if (sq_size && sq_size <= BNX2I_5770X_SQ_WQES_MAX)
cf4e6363859d30 Michael Chan 2009-06-08 847 hba->max_sqes = sq_size;
cf4e6363859d30 Michael Chan 2009-06-08 848 else
cf4e6363859d30 Michael Chan 2009-06-08 849 hba->max_sqes = BNX2I_5770X_SQ_WQES_DEFAULT;
cf4e6363859d30 Michael Chan 2009-06-08 850 } else { /* 5706/5708/5709 */
cf4e6363859d30 Michael Chan 2009-06-08 851 if (sq_size && sq_size <= BNX2I_570X_SQ_WQES_MAX)
cf4e6363859d30 Michael Chan 2009-06-08 852 hba->max_sqes = sq_size;
cf4e6363859d30 Michael Chan 2009-06-08 853 else
cf4e6363859d30 Michael Chan 2009-06-08 854 hba->max_sqes = BNX2I_570X_SQ_WQES_DEFAULT;
cf4e6363859d30 Michael Chan 2009-06-08 855 }
cf4e6363859d30 Michael Chan 2009-06-08 856
cf4e6363859d30 Michael Chan 2009-06-08 857 hba->max_rqes = rq_size;
cf4e6363859d30 Michael Chan 2009-06-08 858 hba->max_cqes = hba->max_sqes + rq_size;
cf4e6363859d30 Michael Chan 2009-06-08 859 if (test_bit(BNX2I_NX2_DEV_57710, &hba->cnic_dev_type)) {
cf4e6363859d30 Michael Chan 2009-06-08 860 if (hba->max_cqes > BNX2I_5770X_CQ_WQES_MAX)
cf4e6363859d30 Michael Chan 2009-06-08 861 hba->max_cqes = BNX2I_5770X_CQ_WQES_MAX;
cf4e6363859d30 Michael Chan 2009-06-08 862 } else if (hba->max_cqes > BNX2I_570X_CQ_WQES_MAX)
cf4e6363859d30 Michael Chan 2009-06-08 863 hba->max_cqes = BNX2I_570X_CQ_WQES_MAX;
cf4e6363859d30 Michael Chan 2009-06-08 864
cf4e6363859d30 Michael Chan 2009-06-08 865 hba->num_ccell = hba->max_sqes / 2;
cf4e6363859d30 Michael Chan 2009-06-08 866
cf4e6363859d30 Michael Chan 2009-06-08 867 spin_lock_init(&hba->lock);
cf4e6363859d30 Michael Chan 2009-06-08 868 mutex_init(&hba->net_dev_lock);
490475a9938f34 Anil Veerabhadrappa 2010-04-08 869 init_waitqueue_head(&hba->eh_wait);
e37d2c4791480e Eddie Wai 2010-07-01 870 if (test_bit(BNX2I_NX2_DEV_57710, &hba->cnic_dev_type)) {
d5307a078bb028 Eddie Wai 2011-05-16 871 hba->hba_shutdown_tmo = 30 * HZ;
e37d2c4791480e Eddie Wai 2010-07-01 872 hba->conn_teardown_tmo = 20 * HZ;
e37d2c4791480e Eddie Wai 2010-07-01 873 hba->conn_ctx_destroy_tmo = 6 * HZ;
e37d2c4791480e Eddie Wai 2010-07-01 874 } else { /* 5706/5708/5709 */
55e15c975cbf9e Eddie Wai 2010-07-01 875 hba->hba_shutdown_tmo = 20 * HZ;
e37d2c4791480e Eddie Wai 2010-07-01 876 hba->conn_teardown_tmo = 10 * HZ;
e37d2c4791480e Eddie Wai 2010-07-01 877 hba->conn_ctx_destroy_tmo = 2 * HZ;
e37d2c4791480e Eddie Wai 2010-07-01 878 }
cf4e6363859d30 Michael Chan 2009-06-08 879
:::::: The code at line 794 was first introduced by commit
:::::: cf4e6363859d30f24f8cd3e8930dbff399cc3550 [SCSI] bnx2i: Add bnx2i iSCSI driver.
:::::: TO: Michael Chan <mchan@broadcom.com>
:::::: CC: James Bottomley <James.Bottomley@HansenPartnership.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29026 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-11 19:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-11 19:37 [hch-block:remove-dma-mask-indirection 2/2] drivers//scsi/bnx2i/bnx2i_iscsi.c:794:36: error: 'struct pci_dev' has no member named 'dma_mask' kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.