From: kbuild test robot <lkp@intel.com>
To: Manish Rangankar <manish.rangankar@cavium.com>
Cc: kbuild-all@01.org, martin.petersen@oracle.com, lduncan@suse.com,
cleech@redhat.com, linux-scsi@vger.kernel.org,
netdev@vger.kernel.org, QLogic-Storage-Upstream@cavium.com,
Yuval.Mintz@cavium.com
Subject: Re: [PATCH v2 3/6] qedi: Add QLogic FastLinQ offload iSCSI driver framework.
Date: Tue, 8 Nov 2016 19:13:34 +0800 [thread overview]
Message-ID: <201611081927.mMvjZtws%fengguang.wu@intel.com> (raw)
In-Reply-To: <1478588223-16183-4-git-send-email-manish.rangankar@cavium.com>
[-- Attachment #1: Type: text/plain, Size: 10951 bytes --]
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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 47377 bytes --]
next prev parent reply other threads:[~2016-11-08 11:14 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-08 6:56 [PATCH v2 0/6] Add QLogic FastLinQ iSCSI (qedi) driver Manish Rangankar
2016-11-08 6:56 ` Manish Rangankar
2016-11-08 6:56 ` [PATCH v2 1/6] qed: Add support for hardware offloaded iSCSI Manish Rangankar
2016-11-08 6:56 ` Manish Rangankar
2016-11-11 15:57 ` Hannes Reinecke
2016-11-11 18:12 ` Arun Easi
2016-11-11 18:12 ` Arun Easi
2016-11-08 6:56 ` [PATCH v2 2/6] qed: Add iSCSI out of order packet handling Manish Rangankar
2016-11-08 6:56 ` Manish Rangankar
2016-11-11 15:59 ` Hannes Reinecke
2016-11-08 6:57 ` [PATCH v2 3/6] qedi: Add QLogic FastLinQ offload iSCSI driver framework Manish Rangankar
2016-11-08 6:57 ` Manish Rangankar
2016-11-08 10:52 ` kbuild test robot
2016-11-08 20:04 ` Arun Easi
2016-11-08 20:04 ` Arun Easi
2016-11-08 23:49 ` Martin K. Petersen
2016-11-08 23:49 ` Martin K. Petersen
2016-11-09 0:00 ` Arun Easi
2016-11-09 0:00 ` Arun Easi
2016-11-09 0:07 ` Martin K. Petersen
2016-11-09 0:07 ` Martin K. Petersen
2016-11-08 11:13 ` kbuild test robot [this message]
2016-11-11 16:43 ` Hannes Reinecke
2016-11-15 6:14 ` Rangankar, Manish
2016-11-15 7:21 ` Hannes Reinecke
2017-01-01 12:28 ` Or Gerlitz
2016-11-08 6:57 ` [PATCH v2 4/6] qedi: Add LL2 iSCSI interface for offload iSCSI Manish Rangankar
2016-11-08 6:57 ` Manish Rangankar
2016-11-11 16:44 ` Hannes Reinecke
2016-11-08 6:57 ` [PATCH v2 5/6] qedi: Add support for iSCSI session management Manish Rangankar
2016-11-08 6:57 ` Manish Rangankar
2016-11-11 16:47 ` Hannes Reinecke
2016-11-08 6:57 ` [PATCH v2 6/6] qedi: Add support for data path Manish Rangankar
2016-11-08 6:57 ` Manish Rangankar
2016-11-08 11:09 ` kbuild test robot
2016-11-11 16:49 ` Hannes Reinecke
2016-11-29 17:21 ` [PATCH v2 0/6] Add QLogic FastLinQ iSCSI (qedi) driver Martin K. Petersen
2016-11-29 17:21 ` Martin K. Petersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201611081927.mMvjZtws%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=QLogic-Storage-Upstream@cavium.com \
--cc=Yuval.Mintz@cavium.com \
--cc=cleech@redhat.com \
--cc=kbuild-all@01.org \
--cc=lduncan@suse.com \
--cc=linux-scsi@vger.kernel.org \
--cc=manish.rangankar@cavium.com \
--cc=martin.petersen@oracle.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.