Hi Salil,

[auto build test ERROR on net-next/master]

url:    
https://github.com/0day-ci/linux/commits/Salil-Mehta/Hisilicon-Network-Subsystem-3-Ethernet-Driver/20170614-162343
config: m68k-allyesconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
reproduce:
        wget 
https://raw.githubusercontent.com/01org/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=m68k 

All errors (new ones prefixed by >>):

   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: In function 
'hclge_pci_init':
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:768:2: error: 
implicit declaration of function 'pci_clear_master' 
[-Werror=implicit-function-declaration]
     pci_clear_master(pdev);
     ^
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: In function 
'hclge_init_msix':
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:1862:15: error: 
invalid application of 'sizeof' to incomplete type 'struct msix_entry'
           sizeof(struct msix_entry),
                  ^
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:1873:3: error: 
invalid use of undefined type 'struct msix_entry'
      hdev->msix_entries[i].entry = i;
      ^
>> drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:1873:21: error: 
>> dereferencing pointer to incomplete type
      hdev->msix_entries[i].entry = i;
                        ^
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:1882:2: error: 
implicit declaration of function 'pci_enable_msix_range' 
[-Werror=implicit-function-declaration]
     ret = pci_enable_msix_range(hdev->pdev, hdev->msix_entries,
     ^
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: In function 
'hclge_init_msi':
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:1907:2: error: 
implicit declaration of function 'pci_alloc_irq_vectors' 
[-Werror=implicit-function-declaration]
     vectors = pci_alloc_irq_vectors(pdev, 1, hdev->num_msi, PCI_IRQ_MSI);
     ^
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:1907:58: error: 
'PCI_IRQ_MSI' undeclared (first use in this function)
     vectors = pci_alloc_irq_vectors(pdev, 1, hdev->num_msi, PCI_IRQ_MSI);
                                                             ^
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:1907:58: note: each 
undeclared identifier is reported only once for each function it appears in
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: In function 
'hclge_init_ae_dev':
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:2335:2: error: 
implicit declaration of function 'pci_match_id' 
[-Werror=implicit-function-declaration]
     id = pci_match_id(roce_pci_tbl, ae_dev->pdev);
     ^
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:2335:5: warning: 
assignment makes pointer from integer without a cast
     id = pci_match_id(roce_pci_tbl, ae_dev->pdev);
        ^
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: In function 
'hclge_pci_uninit':
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:2444:3: error: 
implicit declaration of function 'pci_disable_msix' 
[-Werror=implicit-function-declaration]
      pci_disable_msix(pdev);
      ^
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:2448:3: error: 
implicit declaration of function 'pci_disable_msi' 
[-Werror=implicit-function-declaration]
      pci_disable_msi(pdev);
      ^
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:2452:2: error: 
implicit declaration of function 'pci_release_mem_regions' 
[-Werror=implicit-function-declaration]
     pci_release_mem_regions(pdev);
     ^
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: In function 
'hclge_get_vector':
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:2518:5: error: 
implicit declaration of function 'pci_irq_vector' 
[-Werror=implicit-function-declaration]
        vector->vector = pci_irq_vector(hdev->pdev, i);
        ^
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: In function 
'hclge_get_vector_index':
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:2545:4: error: 
invalid use of undefined type 'struct msix_entry'
       if (vector == hdev->msix_entries[i].vector)
       ^
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:2545:36: error: 
dereferencing pointer to incomplete type
       if (vector == hdev->msix_entries[i].vector)
                                       ^
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: At top level:
   drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:2456:13: warning: 
'hclge_disable_sriov' defined but not used [-Wunused-function]
    static void hclge_disable_sriov(struct hclge_dev *hdev)
                ^
   cc1: some warnings being treated as errors

vim +1873 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

05219959 Salil Mehta 2017-06-14  1856  static int hclge_init_msix(struct 
hclge_dev *hdev)
05219959 Salil Mehta 2017-06-14  1857  {
05219959 Salil Mehta 2017-06-14  1858   struct pci_dev *pdev = hdev->pdev;
05219959 Salil Mehta 2017-06-14  1859   int ret, i;
05219959 Salil Mehta 2017-06-14  1860  
05219959 Salil Mehta 2017-06-14  1861   hdev->msix_entries = 
devm_kcalloc(&pdev->dev, hdev->num_msi,
05219959 Salil Mehta 2017-06-14 @1862                                     
sizeof(struct msix_entry),
05219959 Salil Mehta 2017-06-14  1863                                     
GFP_KERNEL);
05219959 Salil Mehta 2017-06-14  1864   if (!hdev->msix_entries)
05219959 Salil Mehta 2017-06-14  1865           return -ENOMEM;
05219959 Salil Mehta 2017-06-14  1866  
05219959 Salil Mehta 2017-06-14  1867   hdev->vector_status = 
devm_kcalloc(&pdev->dev, hdev->num_msi,
05219959 Salil Mehta 2017-06-14  1868                                      
sizeof(u16), GFP_KERNEL);
05219959 Salil Mehta 2017-06-14  1869   if (!hdev->vector_status)
05219959 Salil Mehta 2017-06-14  1870           return -ENOMEM;
05219959 Salil Mehta 2017-06-14  1871  
05219959 Salil Mehta 2017-06-14  1872   for (i = 0; i < hdev->num_msi; i++) {
05219959 Salil Mehta 2017-06-14 @1873           hdev->msix_entries[i].entry = i;
05219959 Salil Mehta 2017-06-14  1874           hdev->vector_status[i] = 
HCLGE_INVALID_VPORT;
05219959 Salil Mehta 2017-06-14  1875   }
05219959 Salil Mehta 2017-06-14  1876  

:::::: The code at line 1873 was first introduced by commit
:::::: 05219959390d67c9087522bdec6dea07927ebada net: hns3: Add HNS3 
Acceleration Engine & Compatibility Layer Support

:::::: TO: Salil Mehta <salil.me...@huawei.com>
:::::: CC: 0day robot <fengguang...@intel.com>

---
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