* drivers/infiniband/ulp/isert/ib_isert.c:505:39: error: 'IB_CM_REJ_CONSUMER_DEFINED' undeclared; did you mean 'DL_STATE_CONSUMER_PROBE'?
@ 2020-05-26 23:58 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-26 23:58 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4033 bytes --]
tree: https://github.com/alaahl/linux.git orphan-3f7670cae1638aa12a285757b5e57f777ae16212
head: 3f7670cae1638aa12a285757b5e57f777ae16212
commit: 2476070d3c1b49806521a903cee838ce59233c05 RDMA/cma: Provide ECE reject reason
date: 12 hours ago
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build):
git checkout 2476070d3c1b49806521a903cee838ce59233c05
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
drivers/infiniband/ulp/isert/ib_isert.c: In function 'isert_connect_request':
>> drivers/infiniband/ulp/isert/ib_isert.c:505:39: error: 'IB_CM_REJ_CONSUMER_DEFINED' undeclared (first use in this function); did you mean 'DL_STATE_CONSUMER_PROBE'?
return rdma_reject(cma_id, NULL, 0, IB_CM_REJ_CONSUMER_DEFINED);
^~~~~~~~~~~~~~~~~~~~~~~~~~
DL_STATE_CONSUMER_PROBE
drivers/infiniband/ulp/isert/ib_isert.c:505:39: note: each undeclared identifier is reported only once for each function it appears in
--
drivers/infiniband/ulp/rtrs/rtrs-srv.c: In function 'rtrs_rdma_do_reject':
>> drivers/infiniband/ulp/rtrs/rtrs-srv.c:1579:46: error: 'IB_CM_REJ_CONSUMER_DEFINED' undeclared (first use in this function); did you mean 'DL_STATE_CONSUMER_PROBE'?
err = rdma_reject(cm_id, &msg, sizeof(msg), IB_CM_REJ_CONSUMER_DEFINED);
^~~~~~~~~~~~~~~~~~~~~~~~~~
DL_STATE_CONSUMER_PROBE
drivers/infiniband/ulp/rtrs/rtrs-srv.c:1579:46: note: each undeclared identifier is reported only once for each function it appears in
vim +505 drivers/infiniband/ulp/isert/ib_isert.c
491
492 static int
493 isert_connect_request(struct rdma_cm_id *cma_id, struct rdma_cm_event *event)
494 {
495 struct isert_np *isert_np = cma_id->context;
496 struct iscsi_np *np = isert_np->np;
497 struct isert_conn *isert_conn;
498 struct isert_device *device;
499 int ret = 0;
500
501 spin_lock_bh(&np->np_thread_lock);
502 if (!np->enabled) {
503 spin_unlock_bh(&np->np_thread_lock);
504 isert_dbg("iscsi_np is not enabled, reject connect request\n");
> 505 return rdma_reject(cma_id, NULL, 0, IB_CM_REJ_CONSUMER_DEFINED);
506 }
507 spin_unlock_bh(&np->np_thread_lock);
508
509 isert_dbg("cma_id: %p, portal: %p\n",
510 cma_id, cma_id->context);
511
512 isert_conn = kzalloc(sizeof(struct isert_conn), GFP_KERNEL);
513 if (!isert_conn)
514 return -ENOMEM;
515
516 isert_init_conn(isert_conn);
517 isert_conn->cm_id = cma_id;
518
519 ret = isert_alloc_login_buf(isert_conn, cma_id->device);
520 if (ret)
521 goto out;
522
523 device = isert_device_get(cma_id);
524 if (IS_ERR(device)) {
525 ret = PTR_ERR(device);
526 goto out_rsp_dma_map;
527 }
528 isert_conn->device = device;
529
530 isert_set_nego_params(isert_conn, &event->param.conn);
531
532 ret = isert_conn_setup_qp(isert_conn, cma_id);
533 if (ret)
534 goto out_conn_dev;
535
536 ret = isert_login_post_recv(isert_conn);
537 if (ret)
538 goto out_conn_dev;
539
540 ret = isert_rdma_accept(isert_conn);
541 if (ret)
542 goto out_conn_dev;
543
544 mutex_lock(&isert_np->mutex);
545 list_add_tail(&isert_conn->node, &isert_np->accepted);
546 mutex_unlock(&isert_np->mutex);
547
548 return 0;
549
550 out_conn_dev:
551 isert_device_put(device);
552 out_rsp_dma_map:
553 isert_free_login_buf(isert_conn);
554 out:
555 kfree(isert_conn);
556 rdma_reject(cma_id, NULL, 0, IB_CM_REJ_CONSUMER_DEFINED);
557 return ret;
558 }
559
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 72350 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-26 23:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-26 23:58 drivers/infiniband/ulp/isert/ib_isert.c:505:39: error: 'IB_CM_REJ_CONSUMER_DEFINED' undeclared; did you mean 'DL_STATE_CONSUMER_PROBE'? kbuild test robot
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.