When CONFIG_SMB_SERVER_SMBDIRECT is enabled,
Build failed with the errors below:
transport_rdma.c:1922:45: error: ‘struct ib_device_attr’ has no member
named ‘max_sgl_rd’; did you mean ‘max_sge_rd’?
1922 | if (pages_per_rw > t->cm_id->device->attrs.max_sgl_rd) {
| ^~~~~~
| max_sge_rd
transport_rdma.c:2177:9: error: initialization of
‘void ()(struct ib_device )’ from incompatible pointer type
‘int ()(struct ib_device )’ [-Werror=incompatible-pointer-types]
2177 | .add = smb_direct_ib_client_add,
| ^~~~~~~~
When CONFIG_SMB_SERVER_SMBDIRECT is enabled, Build failed with the errors below:
transport_rdma.c:1922:45: error: ‘struct ib_device_attr’ has no member named ‘max_sgl_rd’; did you mean ‘max_sge_rd’? 1922 | if (pages_per_rw > t->cm_id->device->attrs.max_sgl_rd) { | ^
~~~~~ | max_sge_rdtransport_rdma.c:2177:9: error: initialization of ‘void ()(struct ib_device )’ from incompatible pointer type ‘int ()(struct ib_device )’ [-Werror=incompatible-pointer-types] 2177 | .add = smb_direct_ib_client_add, | ^
~~~~~~~Signed-off-by: Hyunchul Lee hyc.lee@gmail.com