]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb: smbdirect: provide explicit prototypes for cross .c file functions
authorStefan Metzmacher <metze@samba.org>
Mon, 27 Oct 2025 19:57:51 +0000 (20:57 +0100)
committerSteve French <stfrench@microsoft.com>
Thu, 16 Apr 2026 02:58:20 +0000 (21:58 -0500)
commit89df0942907894a92dbece12bfa35e1647959b0c
treeef573fe7f27cb9a002ffe9d902bd83b198cd161e
parentb2261ceedd4a4831957732ebae5ad33bf5c7fc80
smb: smbdirect: provide explicit prototypes for cross .c file functions

These prototypes are used between private .c files,
when they will be compiled alone into smbdirect.ko.

For now this uses the SMBDIRECT_USE_INLINE_C_FILES code path
and marks all function as '__maybe_unused static',
but this will make further changes easier.

Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Long Li <longli@microsoft.com>
Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/common/smbdirect/smbdirect_connection.c
fs/smb/common/smbdirect/smbdirect_internal.h
fs/smb/common/smbdirect/smbdirect_mr.c
fs/smb/common/smbdirect/smbdirect_socket.c