From: Stefan Metzmacher Date: Tue, 26 Aug 2025 13:01:28 +0000 (+0200) Subject: smb: smbdirect: introduce smbdirect_socket.c to be filled X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=83c769a9f45cc4a111e60690fa5e64929dba948a;p=thirdparty%2Fkernel%2Flinux.git smb: smbdirect: introduce smbdirect_socket.c to be filled Over time smbdirect_socket.c will get more and more functions which will be included in fs/smb/client/smbdirect.c and fs/smb/server/transport_rdma.c via fs/smb/common/smbdirect/smbdirect_all_c_files.c in order to allow tiny steps in the direction of moving to a few exported functions from an smbdirect.ko. That's why __maybe_unused is added for now it will be removed at the end of the road to common code. Note the Copyright (C) 2017, Microsoft Corporation is added as a lot of functions from fs/smb/client/smbdirect.c will be moved into this file soon and I don't want to forget about adding it. 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 --- diff --git a/fs/smb/common/smbdirect/smbdirect_all_c_files.c b/fs/smb/common/smbdirect/smbdirect_all_c_files.c index 610556fb79319..269d8c28c92e4 100644 --- a/fs/smb/common/smbdirect/smbdirect_all_c_files.c +++ b/fs/smb/common/smbdirect/smbdirect_all_c_files.c @@ -15,3 +15,4 @@ #ifndef SMBDIRECT_USE_INLINE_C_FILES #error SMBDIRECT_USE_INLINE_C_FILES define needed #endif +#include "smbdirect_socket.c" diff --git a/fs/smb/common/smbdirect/smbdirect_socket.c b/fs/smb/common/smbdirect/smbdirect_socket.c new file mode 100644 index 0000000000000..0a96f5db6ff37 --- /dev/null +++ b/fs/smb/common/smbdirect/smbdirect_socket.c @@ -0,0 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2017, Microsoft Corporation. + * Copyright (c) 2025, Stefan Metzmacher + */ + +#include "smbdirect_internal.h"