Hello SCST team,
I have server on Ubuntu 20.04. The system uses HWE kernel 5.15
The server has few mellanox-6 network cards with MOFED 5.6 drivers
When I try to build iscsi module it always failed with infiband errors
Could you fix that?
Thank you.
make[2]: Entering directory '/usr/src/linux-headers-5.15.0-41-generic'
CC [M] /root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.o
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c: In function ‘isert_post_recv’:
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:90:50: error: passing argument 3 of ‘ib_post_recv’ from incompatible pointer type [-Werror=incompatible-pointer-types]
90 | err = ib_post_recv(isert_conn->qp, first_ib_wr, &bad_wr);
| ^~~~~~~
| |
| struct ib_recv_wr
In file included from /usr/src/ofa_kernel/default/include/rdma/ib_mad.h:15,
from /usr/src/ofa_kernel/default/include/rdma/ib_cm.h:13,
from /root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:44:
/usr/src/ofa_kernel/default/include/rdma/ib_verbs.h:3941:37: note: expected ‘const struct ib_recv_wr ’ but argument is of type ‘struct ib_recv_wr ’
3941 | const struct ib_recv_wr bad_recv_wr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c: In function ‘isert_post_send’:
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:137:50: error: passing argument 3 of ‘ib_post_send’ from incompatible pointer type [-Werror=incompatible-pointer-types]
137 | err = ib_post_send(isert_conn->qp, first_ib_wr, &bad_wr);
| ^~~~~~~
| |
| struct ib_send_wr
In file included from /usr/src/ofa_kernel/default/include/rdma/ib_mad.h:15,
from /usr/src/ofa_kernel/default/include/rdma/ib_cm.h:13,
from /root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:44:
/usr/src/ofa_kernel/default/include/rdma/ib_verbs.h:3924:37: note: expected ‘const struct ib_send_wr ’ but argument is of type ‘struct ib_send_wr ’
3924 | const struct ib_send_wr bad_send_wr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c: In function ‘isert_post_drain_sq’:
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:167:33: error: passing argument 3 of ‘ib_post_send’ from incompatible pointer type [-Werror=incompatible-pointer-types]
167 | &drain_wr_sq->send_wr.wr, &bad_wr);
| ^~~~~~~
| |
| struct ib_send_wr
In file included from /usr/src/ofa_kernel/default/include/rdma/ib_mad.h:15,
from /usr/src/ofa_kernel/default/include/rdma/ib_cm.h:13,
from /root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:44:
/usr/src/ofa_kernel/default/include/rdma/ib_verbs.h:3924:37: note: expected ‘const struct ib_send_wr ’ but argument is of type ‘struct ib_send_wr ’
3924 | const struct ib_send_wr bad_send_wr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c: In function ‘isert_post_drain_rq’:
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:192:30: error: passing argument 3 of ‘ib_post_recv’ from incompatible pointer type [-Werror=incompatible-pointer-types]
192 | &drain_wr_rq->recv_wr, &bad_wr);
| ^~~~~~~
| |
| struct ib_recv_wr
In file included from /usr/src/ofa_kernel/default/include/rdma/ib_mad.h:15,
from /usr/src/ofa_kernel/default/include/rdma/ib_cm.h:13,
from /root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:44:
/usr/src/ofa_kernel/default/include/rdma/ib_verbs.h:3941:37: note: expected ‘const struct ib_recv_wr ’ but argument is of type ‘struct ib_recv_wr ’
3941 | const struct ib_recv_wr bad_recv_wr)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c: In function ‘isert_device_create’:
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:998:8: error: macro "ib_create_cq" passed 6 arguments, but takes just 5
998 | i); / completion vector /
| ^
In file included from /usr/src/ofa_kernel/default/include/rdma/ib_mad.h:15,
from /usr/src/ofa_kernel/default/include/rdma/ib_cm.h:13,
from /root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:44:
/usr/src/ofa_kernel/default/include/rdma/ib_verbs.h:4009: note: macro "ib_create_cq" defined here
4009 | #define ib_create_cq(device, cmp_hndlr, evt_hndlr, cq_ctxt, cq_attr) \
|
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:993:8: error: ‘ib_create_cq’ undeclared (first use in this function); did you mean ‘ib_create_wq’?
993 | cq = ib_create_cq(ib_dev,
| ^~~~~~~~~~~~
| ib_create_wq
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:993:8: note: each undeclared identifier is reported only once for each function it appears in
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c: In function ‘isert_conn_create’:
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:1233:47: error: ‘struct ib_device_attr’ has no member named ‘max_sge’; did you mean ‘max_cqe’?
1233 | isert_conn->max_sge = isert_dev->device_attr.max_sge - 3;
| ^~~~~~~
| max_cqe
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c: In function ‘isert_cm_conn_req_handler’:
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:1482:2: error: too few arguments to function ‘rdma_reject’
1482 | rdma_reject(cm_id, NULL, 0
| ^~~~~~~~~~~
In file included from /usr/src/ofa_kernel/default/include/rdma/ib_cm.h:15,
from /root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:44:
/usr/src/ofa_kernel/default/include/rdma/rdma_cm.h:272:5: note: declared here
272 | int rdma_reject(struct rdma_cm_id id, const void private_data,
| ^~~~~~~~~~~
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c: In function ‘isert_setup_id’:
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:1731:20: error: macro "rdma_create_id" requires 5 arguments, but only 4 given
1731 | IB_QPT_RC);
| ^
In file included from /usr/src/ofa_kernel/default/include/rdma/ib_cm.h:15,
from /root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:44:
/usr/src/ofa_kernel/default/include/rdma/rdma_cm.h:139: note: macro "rdma_create_id" defined here
139 | #define rdma_create_id(net, event_handler, context, ps, qp_type) \
|
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:1730:7: error: ‘rdma_create_id’ undeclared (first use in this function); did you mean ‘rdma_create_qp’?
1730 | id = rdma_create_id(isert_cm_evt_handler, portal, RDMA_PS_TCP,
| ^~~~~~~~~~~~~~
| rdma_create_qp
At top level:
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:1617:12: warning: ‘isert_cm_evt_handler’ defined but not used [-Wunused-function]
1617 | static int isert_cm_evt_handler(struct rdma_cm_id cm_id,
| ^~~~~~~~~~~~~~~~~~~~
/root/scst/scst/iscsi-scst/kernel/isert-scst/iser_rdma.c:770:13: warning: ‘isert_cq_comp_handler’ defined but not used [-Wunused-function]
770 | static void isert_cq_comp_handler(struct ib_cq cq, void *context)
| ^~~~~~~~~~~~~~~~~~~~~
Hi,
Thank you for the report. I will take a look at it soon.
Thanks,
Gleb