[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201603152057.7Ftefsym%fengguang.wu@intel.com>
Date: Tue, 15 Mar 2016 20:19:06 +0800
From: kbuild test robot <lkp@...el.com>
To: Netanel Belgazal <netanel@...apurnalabs.com>
Cc: kbuild-all@...org, zorik@...apurnalabs.com,
saeed@...apurnalabs.com, alex@...apurnalabs.com, msw@...zon.com,
aliguori@...zon.com, davem@...emloft.net,
Netanel Belgazal <netanel@...apurnalabs.com>,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
antoine.tenart@...e-electrons.com
Subject: Re: [PATCH] net: ena: Add a driver for Amazon Elastic Network
Adapters (ENA)
Hi Netanel,
[auto build test ERROR on net-next/master]
[also build test ERROR on v4.5 next-20160315]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
url: https://github.com/0day-ci/linux/commits/Netanel-Belgazal/net-ena-Add-a-driver-for-Amazon-Elastic-Network-Adapters-ENA/20160315-185239
config: um-allmodconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=um
All error/warnings (new ones prefixed by >>):
drivers/net/ethernet/amazon/ena/ena_netdev.c: In function 'ena_init_rx_cpu_rmap':
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:141:17: error: 'struct net_device' has no member named 'rx_cpu_rmap'
adapter->netdev->rx_cpu_rmap = alloc_irq_cpu_rmap(adapter->num_queues);
^
drivers/net/ethernet/amazon/ena/ena_netdev.c:142:22: error: 'struct net_device' has no member named 'rx_cpu_rmap'
if (!adapter->netdev->rx_cpu_rmap)
^
drivers/net/ethernet/amazon/ena/ena_netdev.c:147:40: error: 'struct net_device' has no member named 'rx_cpu_rmap'
rc = irq_cpu_rmap_add(adapter->netdev->rx_cpu_rmap,
^
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:148:11: error: invalid use of undefined type 'struct msix_entry'
adapter->msix_entries[irq_idx].vector);
^
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:148:32: error: dereferencing pointer to incomplete type 'struct msix_entry'
adapter->msix_entries[irq_idx].vector);
^
drivers/net/ethernet/amazon/ena/ena_netdev.c:150:37: error: 'struct net_device' has no member named 'rx_cpu_rmap'
free_irq_cpu_rmap(adapter->netdev->rx_cpu_rmap);
^
drivers/net/ethernet/amazon/ena/ena_netdev.c:151:19: error: 'struct net_device' has no member named 'rx_cpu_rmap'
adapter->netdev->rx_cpu_rmap = NULL;
^
drivers/net/ethernet/amazon/ena/ena_netdev.c: In function 'ena_rx_skb':
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:816:3: error: implicit declaration of function 'pci_dma_sync_single_for_cpu' [-Werror=implicit-function-declaration]
pci_dma_sync_single_for_cpu(rx_ring->pdev,
^
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:821:3: error: implicit declaration of function 'pci_dma_sync_single_for_device' [-Werror=implicit-function-declaration]
pci_dma_sync_single_for_device(rx_ring->pdev,
^
drivers/net/ethernet/amazon/ena/ena_netdev.c: In function 'ena_enable_msix':
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:1179:53: error: invalid application of 'sizeof' to incomplete type 'struct msix_entry'
adapter->msix_entries = vzalloc(msix_vecs * sizeof(struct msix_entry));
^
drivers/net/ethernet/amazon/ena/ena_netdev.c:1185:3: error: invalid use of undefined type 'struct msix_entry'
adapter->msix_entries[i].entry = i;
^
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:1187:7: error: implicit declaration of function 'pci_enable_msix' [-Werror=implicit-function-declaration]
rc = pci_enable_msix(adapter->pdev, adapter->msix_entries, msix_vecs);
^
drivers/net/ethernet/amazon/ena/ena_netdev.c: In function 'ena_setup_mgmnt_intr':
drivers/net/ethernet/amazon/ena/ena_netdev.c:1221:3: error: invalid use of undefined type 'struct msix_entry'
adapter->msix_entries[ENA_MGMNT_IRQ_IDX].vector;
^
drivers/net/ethernet/amazon/ena/ena_netdev.c: In function 'ena_setup_io_intr':
drivers/net/ethernet/amazon/ena/ena_netdev.c:1242:4: error: invalid use of undefined type 'struct msix_entry'
adapter->msix_entries[irq_idx].vector;
^
drivers/net/ethernet/amazon/ena/ena_netdev.c: In function 'ena_disable_msix':
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:1339:3: error: implicit declaration of function 'pci_disable_msix' [-Werror=implicit-function-declaration]
pci_disable_msix(adapter->pdev);
^
In file included from include/linux/cpumask.h:9:0,
from include/linux/cpu_rmap.h:13,
from drivers/net/ethernet/amazon/ena/ena_netdev.c:35:
drivers/net/ethernet/amazon/ena/ena_netdev.c: In function 'ena_calc_io_queue_num':
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:2583:42: error: implicit declaration of function 'pci_msix_vec_count' [-Werror=implicit-function-declaration]
io_queue_num = min_t(int, io_queue_num, pci_msix_vec_count(pdev) - 1);
^
include/linux/kernel.h:793:17: note: in definition of macro 'min_t'
type __min2 = (y); \
^
drivers/net/ethernet/amazon/ena/ena_netdev.c: In function 'ena_set_push_mode':
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:2597:16: error: implicit declaration of function 'pci_select_bars' [-Werror=implicit-function-declaration]
has_mem_bar = pci_select_bars(pdev, IORESOURCE_MEM) & BIT(ENA_MEM_BAR);
^
drivers/net/ethernet/amazon/ena/ena_netdev.c: In function 'ena_release_bars':
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:2735:2: error: implicit declaration of function 'pci_release_selected_regions' [-Werror=implicit-function-declaration]
pci_release_selected_regions(pdev, release_bars);
^
drivers/net/ethernet/amazon/ena/ena_netdev.c: In function 'ena_probe':
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:2791:7: error: implicit declaration of function 'pci_enable_device_mem' [-Werror=implicit-function-declaration]
rc = pci_enable_device_mem(pdev);
^
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:2807:7: error: implicit declaration of function 'pci_request_selected_regions' [-Werror=implicit-function-declaration]
rc = pci_request_selected_regions(pdev, bars, DRV_MODULE_NAME);
^
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:2814:21: error: implicit declaration of function 'ioremap' [-Werror=implicit-function-declaration]
ena_dev->reg_bar = ioremap(pci_resource_start(pdev, ENA_REG_BAR),
^
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:2814:19: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
ena_dev->reg_bar = ioremap(pci_resource_start(pdev, ENA_REG_BAR),
^
>> drivers/net/ethernet/amazon/ena/ena_netdev.c:2839:22: error: implicit declaration of function 'ioremap_wc' [-Werror=implicit-function-declaration]
ena_dev->mem_bar = ioremap_wc(pci_resource_start(pdev, ENA_MEM_BAR),
^
drivers/net/ethernet/amazon/ena/ena_netdev.c:2839:20: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
ena_dev->mem_bar = ioremap_wc(pci_resource_start(pdev, ENA_MEM_BAR),
^
drivers/net/ethernet/amazon/ena/ena_netdev.c: In function 'ena_remove':
drivers/net/ethernet/amazon/ena/ena_netdev.c:3034:27: error: 'struct net_device' has no member named 'rx_cpu_rmap'
free_irq_cpu_rmap(netdev->rx_cpu_rmap);
^
drivers/net/ethernet/amazon/ena/ena_netdev.c:3035:9: error: 'struct net_device' has no member named 'rx_cpu_rmap'
netdev->rx_cpu_rmap = NULL;
^
cc1: some warnings being treated as errors
vim +141 drivers/net/ethernet/amazon/ena/ena_netdev.c
135
136 static int ena_init_rx_cpu_rmap(struct ena_adapter *adapter)
137 {
138 u32 i;
139 int rc;
140
> 141 adapter->netdev->rx_cpu_rmap = alloc_irq_cpu_rmap(adapter->num_queues);
142 if (!adapter->netdev->rx_cpu_rmap)
143 return -ENOMEM;
144 for (i = 0; i < adapter->num_queues; i++) {
145 int irq_idx = ENA_IO_IRQ_IDX(i);
146
147 rc = irq_cpu_rmap_add(adapter->netdev->rx_cpu_rmap,
> 148 adapter->msix_entries[irq_idx].vector);
149 if (rc) {
150 free_irq_cpu_rmap(adapter->netdev->rx_cpu_rmap);
151 adapter->netdev->rx_cpu_rmap = NULL;
---
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/octet-stream" (17636 bytes)
Powered by blists - more mailing lists