cifsd-team / ksmbd

ksmbd kernel server(SMB/CIFS server)
154 stars 23 forks source link

ksmbd: fix build errors with linux-5.4 #571

Closed hclee closed 2 years ago

hclee commented 2 years ago

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, | ^~~~~~~~

Signed-off-by: Hyunchul Lee hyc.lee@gmail.com

namjaejeon commented 2 years ago

Applied, Thanks!