* [leon-rdma:refactor-umem-v1 77/105] drivers/infiniband/hw/qedr/verbs.c:937:8: error: use of undeclared label 'err_umem'
@ 2026-02-10 18:56 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-10 18:56 UTC (permalink / raw)
To: Leon Romanovsky; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git refactor-umem-v1
head: b6daace542159a3879b60866e24495985ecffc23
commit: e63ddbcab327acd433b4aa0f7c31fc9df8ed651d [77/105] RDMA/qedr: Convert to modern CQ interface
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260211/202602110253.vdiIP6Wa-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260211/202602110253.vdiIP6Wa-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602110253.vdiIP6Wa-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/infiniband/hw/qedr/verbs.c:937:8: error: use of undeclared label 'err_umem'
937 | goto err_umem;
| ^
1 error generated.
vim +/err_umem +937 drivers/infiniband/hw/qedr/verbs.c
882
883 int qedr_create_user_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr,
884 struct uverbs_attr_bundle *attrs)
885 {
886 struct ib_udata *udata = &attrs->driver_udata;
887 struct ib_device *ibdev = ibcq->device;
888 struct qedr_ucontext *ctx = rdma_udata_to_drv_context(
889 udata, struct qedr_ucontext, ibucontext);
890 struct qed_rdma_destroy_cq_out_params destroy_oparams;
891 struct qed_rdma_destroy_cq_in_params destroy_iparams;
892 struct qedr_dev *dev = get_qedr_dev(ibdev);
893 struct qed_rdma_create_cq_in_params params;
894 struct qedr_create_cq_ureq ureq = {};
895 int vector = attr->comp_vector;
896 int entries = attr->cqe;
897 struct qedr_cq *cq = get_qedr_cq(ibcq);
898 int chain_entries;
899 u32 db_offset;
900 int page_cnt;
901 u64 pbl_ptr;
902 u16 icid;
903 int rc;
904
905 DP_DEBUG(dev, QEDR_MSG_INIT,
906 "create_cq: called from User Lib. entries=%d, vector=%d\n",
907 entries, vector);
908
909 if (attr->flags)
910 return -EOPNOTSUPP;
911
912 if (attr->cqe > QEDR_MAX_CQES)
913 return -EINVAL;
914
915 chain_entries = qedr_align_cq_entries(entries);
916 chain_entries = min_t(int, chain_entries, QEDR_MAX_CQES);
917
918 /* calc db offset. user will add DPI base, kernel will add db addr */
919 db_offset = DB_ADDR_SHIFT(DQ_PWM_OFFSET_UCM_RDMA_CQ_CONS_32BIT);
920
921 if (ib_copy_from_udata(&ureq, udata, min(sizeof(ureq), udata->inlen)))
922 return -EINVAL;
923
924 cq->cq_type = QEDR_CQ_TYPE_USER;
925
926 cq->q.buf_addr = ureq.addr;
927 cq->q.buf_len = ureq.len;
928 if (!ibcq->umem)
929 ibcq->umem = ib_umem_get(&dev->ibdev, ureq.addr, ureq.len,
930 IB_ACCESS_LOCAL_WRITE);
931 if (IS_ERR(ibcq->umem))
932 return PTR_ERR(ibcq->umem);
933 cq->q.umem = ibcq->umem;
934
935 rc = qedr_init_user_queue(udata, dev, &cq->q, true, 1);
936 if (rc)
> 937 goto err_umem;
938
939 pbl_ptr = cq->q.pbl_tbl->pa;
940 page_cnt = cq->q.pbl_info.num_pbes;
941
942 cq->ibcq.cqe = chain_entries;
943 cq->q.db_addr = ctx->dpi_addr + db_offset;
944
945 qedr_init_cq_params(cq, ctx, dev, vector, chain_entries, page_cnt,
946 pbl_ptr, ¶ms);
947
948 rc = dev->ops->rdma_create_cq(dev->rdma_ctx, ¶ms, &icid);
949 if (rc)
950 goto err1;
951
952 cq->icid = icid;
953 cq->sig = QEDR_CQ_MAGIC_NUMBER;
954 spin_lock_init(&cq->cq_lock);
955
956 rc = qedr_copy_cq_uresp(dev, cq, udata, db_offset);
957 if (rc)
958 goto err2;
959
960 rc = qedr_db_recovery_add(dev, cq->q.db_addr,
961 &cq->q.db_rec_data->db_data,
962 DB_REC_WIDTH_64B,
963 DB_REC_USER);
964 if (rc)
965 goto err2;
966
967 DP_DEBUG(dev, QEDR_MSG_CQ,
968 "create cq: icid=0x%0x, addr=%p, size(entries)=0x%0x\n",
969 cq->icid, cq, params.cq_size);
970
971 return 0;
972
973 err2:
974 destroy_iparams.icid = cq->icid;
975 dev->ops->rdma_destroy_cq(dev->rdma_ctx, &destroy_iparams,
976 &destroy_oparams);
977 err1:
978 qedr_free_pbl(dev, &cq->q.pbl_info, cq->q.pbl_tbl);
979 if (cq->q.db_mmap_entry)
980 rdma_user_mmap_entry_remove(cq->q.db_mmap_entry);
981 return rc;
982 }
983
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-02-10 18:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-10 18:56 [leon-rdma:refactor-umem-v1 77/105] drivers/infiniband/hw/qedr/verbs.c:937:8: error: use of undeclared label 'err_umem' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox