Hi Andy,

[auto build test ERROR on net-next/master]
[also build test ERROR on v4.14-rc5 next-20171013]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:    
https://github.com/0day-ci/linux/commits/Andy-Shevchenko/pch_gbe-Switch-to-new-PCI-IRQ-allocation-API/20171016-131405
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

   drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c: In function 
'pch_gbe_request_irq':
>> drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:1904:30: error: 'pdev' 
>> undeclared (first use in this function)
     err = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES);
                                 ^
   drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:1904:30: note: each 
undeclared identifier is reported only once for each function it appears in

vim +/pdev +1904 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c

  1891  
  1892  /**
  1893   * pch_gbe_request_irq - Allocate an interrupt line
  1894   * @adapter:  Board private structure
  1895   * Returns:
  1896   *      0:              Successfully
  1897   *      Negative value: Failed
  1898   */
  1899  static int pch_gbe_request_irq(struct pch_gbe_adapter *adapter)
  1900  {
  1901          struct net_device *netdev = adapter->netdev;
  1902          int err;
  1903  
> 1904          err = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES);
  1905          if (err < 0)
  1906                  return err;
  1907  
  1908          adapter->irq = pci_irq_vector(pdev, 0);
  1909  
  1910          err = request_irq(adapter->irq, &pch_gbe_intr, IRQF_SHARED,
  1911                            netdev->name, netdev);
  1912          if (err)
  1913                  netdev_err(netdev, "Unable to allocate interrupt Error: 
%d\n",
  1914                             err);
  1915          netdev_dbg(netdev, "have_msi : %d  return : 0x%04x\n",
  1916                     pci_dev_msi_enabled(adapter->pdev), err);
  1917          return err;
  1918  }
  1919  

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

Reply via email to