From 0a6428978df1c16971db0b0daae60b8fc0c4eb9b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 24 Oct 2025 15:48:15 +0200 Subject: [PATCH] smb: smbdirect: introduce smbdirect_all_c_files.c This is a very basic start in order to introduce common functions, which will be shared by client and server. As a start smbdirect_all_c_files.c will be included in fs/smb/client/smbdirect.c and fs/smb/server/transport_rdma.c in order to allow tiny steps in the direction of moving to a few exported functions from an smbdirect.ko. Step by step this will include individual c files with the real functions. Cc: Steve French Cc: Tom Talpey Cc: Long Li Cc: Namjae Jeon 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 --- fs/smb/common/smbdirect/smbdirect_all_c_files.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 fs/smb/common/smbdirect/smbdirect_all_c_files.c diff --git a/fs/smb/common/smbdirect/smbdirect_all_c_files.c b/fs/smb/common/smbdirect/smbdirect_all_c_files.c new file mode 100644 index 0000000000000..610556fb79319 --- /dev/null +++ b/fs/smb/common/smbdirect/smbdirect_all_c_files.c @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (c) 2025, Stefan Metzmacher + */ + +/* + * This is a temporary solution in order + * to include the common smbdirect functions + * into .c files in order to make a transformation + * in tiny bisectable steps possible. + * + * It will be replaced by a smbdirect.ko with + * exported public functions at the end. + */ +#ifndef SMBDIRECT_USE_INLINE_C_FILES +#error SMBDIRECT_USE_INLINE_C_FILES define needed +#endif -- 2.47.3