From: Stefan Metzmacher Date: Tue, 26 Aug 2025 13:24:33 +0000 (+0200) Subject: smb: server: include smbdirect_all_c_files.c X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=cdb9545c238ff175e72b38269dc6d89c9ccd30b2;p=thirdparty%2Fkernel%2Flinux.git smb: server: include smbdirect_all_c_files.c This is the first tiny step in order to use common functions in future. Once we have all functions in common we'll move to an smbdirect.ko that exports public functions instead of including the .c file. Cc: Namjae Jeon Cc: Steve French Cc: Tom Talpey Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Signed-off-by: Stefan Metzmacher Acked-by: Namjae Jeon Signed-off-by: Steve French --- diff --git a/fs/smb/server/transport_rdma.c b/fs/smb/server/transport_rdma.c index dbc8dedb85dce..12a8def52ff8c 100644 --- a/fs/smb/server/transport_rdma.c +++ b/fs/smb/server/transport_rdma.c @@ -9,6 +9,8 @@ #define SUBMOD_NAME "smb_direct" +#define SMBDIRECT_USE_INLINE_C_FILES 1 + #include #include #include @@ -30,6 +32,16 @@ #include "../common/smbdirect/smbdirect_socket.h" #include "transport_rdma.h" +static void smb_direct_disconnect_rdma_connection(struct smbdirect_socket *sc); + +/* + * This is a temporary solution until all code + * is moved to smbdirect_all_c_files.c and we + * have an smbdirect.ko that exports the required + * functions. + */ +#include "../common/smbdirect/smbdirect_all_c_files.c" + #define SMB_DIRECT_PORT_IWARP 5445 #define SMB_DIRECT_PORT_INFINIBAND 445