[PATCH v4 008/145] smb: server: include smbdirect_all_c_files.c
Stefan Metzmacher
metze at samba.org
Tue Nov 25 17:54:14 UTC 2025
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 <linkinjeon at kernel.org>
Cc: Steve French <smfrench at gmail.com>
Cc: Tom Talpey <tom at talpey.com>
Cc: linux-cifs at vger.kernel.org
Cc: samba-technical at lists.samba.org
Signed-off-by: Stefan Metzmacher <metze at samba.org>
Signed-off-by: Steve French <stfrench at microsoft.com>
---
fs/smb/server/transport_rdma.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/fs/smb/server/transport_rdma.c b/fs/smb/server/transport_rdma.c
index 4e7ab8d9314f..d656dbf9f7ae 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 <linux/kthread.h>
#include <linux/list.h>
#include <linux/mempool.h>
@@ -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
--
2.43.0
More information about the samba-technical
mailing list