[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201611081927.mMvjZtws%fengguang.wu@intel.com>
Date: Tue, 8 Nov 2016 19:13:34 +0800
From: kbuild test robot <lkp@...el.com>
To: Manish Rangankar <manish.rangankar@...ium.com>
Cc: kbuild-all@...org, martin.petersen@...cle.com, lduncan@...e.com,
cleech@...hat.com, linux-scsi@...r.kernel.org,
netdev@...r.kernel.org, QLogic-Storage-Upstream@...ium.com,
Yuval.Mintz@...ium.com
Subject: Re: [PATCH v2 3/6] qedi: Add QLogic FastLinQ offload iSCSI driver
framework.
Hi Manish,
[auto build test ERROR on net-next/master]
[also build test ERROR on v4.9-rc4 next-20161028]
[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/Manish-Rangankar/qed-Add-support-for-hardware-offloaded-iSCSI/20161108-180027
config: parisc-allyesconfig (attached as .config)
compiler: hppa-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=parisc
All errors (new ones prefixed by >>):
drivers/scsi/qedi/qedi_main.c: In function 'qedi_iscsi_event_cb':
drivers/scsi/qedi/qedi_main.c:87:14: error: dereferencing pointer to incomplete type 'struct qedi_endpoint'
if (qedi_ep->state == EP_STATE_OFLDCONN_START)
^~
drivers/scsi/qedi/qedi_main.c:87:25: error: 'EP_STATE_OFLDCONN_START' undeclared (first use in this function)
if (qedi_ep->state == EP_STATE_OFLDCONN_START)
^~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c:87:25: note: each undeclared identifier is reported only once for each function it appears in
drivers/scsi/qedi/qedi_main.c:88:21: error: 'EP_STATE_OFLDCONN_COMPL' undeclared (first use in this function)
qedi_ep->state = EP_STATE_OFLDCONN_COMPL;
^~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c:93:20: error: 'EP_STATE_DISCONN_COMPL' undeclared (first use in this function)
qedi_ep->state = EP_STATE_DISCONN_COMPL;
^~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c:97:3: error: implicit declaration of function 'qedi_process_iscsi_error' [-Werror=implicit-function-declaration]
qedi_process_iscsi_error(qedi_ep, data);
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c:106:3: error: implicit declaration of function 'qedi_process_tcp_error' [-Werror=implicit-function-declaration]
qedi_process_tcp_error(qedi_ep, data);
^~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c: In function 'qedi_host_alloc':
drivers/scsi/qedi/qedi_main.c:414:28: error: 'qedi_host_template' undeclared (first use in this function)
shost = iscsi_host_alloc(&qedi_host_template,
^~~~~~~~~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c:433:27: error: 'ISCSI_MAX_SESS_PER_HBA' undeclared (first use in this function)
qedi->max_active_conns = ISCSI_MAX_SESS_PER_HBA;
^~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c: In function 'qedi_set_iscsi_pf_param':
>> drivers/scsi/qedi/qedi_main.c:463:4: error: passing argument 3 of 'pci_alloc_consistent' from incompatible pointer type [-Werror=incompatible-pointer-types]
&qedi->hw_p_cpuq);
^
In file included from include/linux/pci.h:2131:0,
from drivers/scsi/qedi/qedi_main.c:11:
include/linux/pci-dma-compat.h:16:1: note: expected 'dma_addr_t * {aka unsigned int *}' but argument is of type 'u64 * {aka long long unsigned int *}'
pci_alloc_consistent(struct pci_dev *hwdev, size_t size,
^~~~~~~~~~~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c: In function 'qedi_queue_cqe':
drivers/scsi/qedi/qedi_main.c:571:15: error: dereferencing pointer to incomplete type 'struct qedi_conn'
conn = q_conn->cls_conn->dd_data;
^~
drivers/scsi/qedi/qedi_main.c:581:27: error: dereferencing pointer to incomplete type 'struct qedi_cmd'
INIT_LIST_HEAD(&qedi_cmd->cqe_work.list);
^~
drivers/scsi/qedi/qedi_main.c: At top level:
drivers/scsi/qedi/qedi_main.c:1095:15: error: variable 'qedi_ll2_cb_ops' has initializer but incomplete type
static struct qed_ll2_cb_ops qedi_ll2_cb_ops = {
^~~~~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c:1096:2: error: unknown field 'rx_cb' specified in initializer
.rx_cb = qedi_ll2_rx,
^
drivers/scsi/qedi/qedi_main.c:1096:11: error: 'qedi_ll2_rx' undeclared here (not in a function)
.rx_cb = qedi_ll2_rx,
^~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c:1096:11: warning: excess elements in struct initializer
drivers/scsi/qedi/qedi_main.c:1096:11: note: (near initialization for 'qedi_ll2_cb_ops')
drivers/scsi/qedi/qedi_main.c:1097:2: error: unknown field 'tx_cb' specified in initializer
.tx_cb = NULL,
^
In file included from include/uapi/linux/posix_types.h:4:0,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/list.h:4,
from include/linux/module.h:9,
from drivers/scsi/qedi/qedi_main.c:10:
include/linux/stddef.h:7:14: warning: excess elements in struct initializer
#define NULL ((void *)0)
^
drivers/scsi/qedi/qedi_main.c:1097:11: note: in expansion of macro 'NULL'
.tx_cb = NULL,
^~~~
include/linux/stddef.h:7:14: note: (near initialization for 'qedi_ll2_cb_ops')
#define NULL ((void *)0)
^
drivers/scsi/qedi/qedi_main.c:1097:11: note: in expansion of macro 'NULL'
.tx_cb = NULL,
^~~~
drivers/scsi/qedi/qedi_main.c: In function 'qedi_percpu_io_thread':
drivers/scsi/qedi/qedi_main.c:1117:5: error: implicit declaration of function 'qedi_fp_process_cqes' [-Werror=implicit-function-declaration]
qedi_fp_process_cqes(work);
^~~~~~~~~~~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c: In function '__qedi_remove':
drivers/scsi/qedi/qedi_main.c:1226:16: error: dereferencing pointer to incomplete type 'const struct qed_ll2_ops'
qedi_ops->ll2->stop(qedi->cdev);
^~
drivers/scsi/qedi/qedi_main.c:1242:3: error: implicit declaration of function 'qedi_free_uio' [-Werror=implicit-function-declaration]
qedi_free_uio(qedi->udev);
^~~~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c:1252:3: error: implicit declaration of function 'qedi_ll2_free_skbs' [-Werror=implicit-function-declaration]
qedi_ll2_free_skbs(qedi);
^~~~~~~~~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c: In function '__qedi_probe':
drivers/scsi/qedi/qedi_main.c:1259:24: error: storage size of 'params' isn't known
struct qed_ll2_params params;
^~~~~~
drivers/scsi/qedi/qedi_main.c:1376:15: error: 'DEF_PATH_MTU' undeclared (first use in this function)
params.mtu = DEF_PATH_MTU + IPV6_HDR_LEN + TCP_HDR_LEN;
^~~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c:1376:30: error: 'IPV6_HDR_LEN' undeclared (first use in this function)
params.mtu = DEF_PATH_MTU + IPV6_HDR_LEN + TCP_HDR_LEN;
^~~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c:1376:45: error: 'TCP_HDR_LEN' undeclared (first use in this function)
params.mtu = DEF_PATH_MTU + IPV6_HDR_LEN + TCP_HDR_LEN;
^~~~~~~~~~~
In file included from drivers/scsi/qedi/qedi_main.c:18:0:
drivers/scsi/qedi/qedi_main.c:1394:39: error: 'qedi_ll2_recv_thread' undeclared (first use in this function)
qedi->ll2_recv_thread = kthread_run(qedi_ll2_recv_thread,
^
include/linux/kthread.h:25:25: note: in definition of macro 'kthread_create'
kthread_create_on_node(threadfn, data, NUMA_NO_NODE, namefmt, ##arg)
^~~~~~~~
drivers/scsi/qedi/qedi_main.c:1394:27: note: in expansion of macro 'kthread_run'
qedi->ll2_recv_thread = kthread_run(qedi_ll2_recv_thread,
^~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c:1422:38: error: 'qedi_debugfs_ops' undeclared (first use in this function)
qedi_dbg_host_init(&qedi->dbg_ctx, &qedi_debugfs_ops,
^~~~~~~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c:1423:8: error: 'qedi_dbg_fops' undeclared (first use in this function)
&qedi_dbg_fops);
^~~~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c:1439:8: error: implicit declaration of function 'qedi_alloc_uio_rings' [-Werror=implicit-function-declaration]
rc = qedi_alloc_uio_rings(qedi);
^~~~~~~~~~~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c:1446:8: error: implicit declaration of function 'qedi_init_uio' [-Werror=implicit-function-declaration]
rc = qedi_init_uio(qedi);
^~~~~~~~~~~~~
drivers/scsi/qedi/qedi_main.c:1259:24: warning: unused variable 'params' [-Wunused-variable]
struct qed_ll2_params params;
^~~~~~
drivers/scsi/qedi/qedi_main.c: In function 'qedi_init':
vim +/pci_alloc_consistent +463 drivers/scsi/qedi/qedi_main.c
408
409 static struct qedi_ctx *qedi_host_alloc(struct pci_dev *pdev)
410 {
411 struct Scsi_Host *shost;
412 struct qedi_ctx *qedi = NULL;
413
> 414 shost = iscsi_host_alloc(&qedi_host_template,
415 sizeof(struct qedi_ctx), 0);
416 if (!shost) {
417 QEDI_ERR(NULL, "Could not allocate shost\n");
418 goto exit_setup_shost;
419 }
420
421 shost->max_id = QEDI_MAX_ISCSI_CONNS_PER_HBA;
422 shost->max_channel = 0;
423 shost->max_lun = ~0;
424 shost->max_cmd_len = 16;
425 shost->transportt = qedi_scsi_transport;
426
427 qedi = iscsi_host_priv(shost);
428 memset(qedi, 0, sizeof(*qedi));
429 qedi->shost = shost;
430 qedi->dbg_ctx.host_no = shost->host_no;
431 qedi->pdev = pdev;
432 qedi->dbg_ctx.pdev = pdev;
433 qedi->max_active_conns = ISCSI_MAX_SESS_PER_HBA;
434 qedi->max_sqes = QEDI_SQ_SIZE;
435
436 if (shost_use_blk_mq(shost))
437 shost->nr_hw_queues = MIN_NUM_CPUS_MSIX(qedi);
438
439 pci_set_drvdata(pdev, qedi);
440
441 exit_setup_shost:
442 return qedi;
443 }
444
445 static int qedi_set_iscsi_pf_param(struct qedi_ctx *qedi)
446 {
447 u8 num_sq_pages;
448 u32 log_page_size;
449 int rval = 0;
450
451 QEDI_INFO(&qedi->dbg_ctx, QEDI_LOG_DISC, "Min number of MSIX %d\n",
452 MIN_NUM_CPUS_MSIX(qedi));
453
454 num_sq_pages = (MAX_OUSTANDING_TASKS_PER_CON * 8) / PAGE_SIZE;
455
456 qedi->num_queues = MIN_NUM_CPUS_MSIX(qedi);
457
458 memset(&qedi->pf_params.iscsi_pf_params, 0,
459 sizeof(qedi->pf_params.iscsi_pf_params));
460
461 qedi->p_cpuq = pci_alloc_consistent(qedi->pdev,
462 qedi->num_queues * sizeof(struct qedi_glbl_q_params),
> 463 &qedi->hw_p_cpuq);
464 if (!qedi->p_cpuq) {
465 QEDI_ERR(&qedi->dbg_ctx, "pci_alloc_consistent fail\n");
466 rval = -1;
---
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/gzip" (47377 bytes)
Powered by blists - more mailing lists