From 85958dd2e4edf18360d0f7b3af39a5cc31921cf6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 19 Dec 2025 14:27:41 +0100 Subject: [PATCH] smbd: Make reference_smb_fname_fsp_link() static Only referenced in files.c Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S Autobuild-User(master): Anoop C S Autobuild-Date(master): Mon Aug 3 10:08:42 UTC 2026 on atb-devel-224 --- source3/smbd/files.c | 5 +++-- source3/smbd/proto.h | 3 --- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/source3/smbd/files.c b/source3/smbd/files.c index d626ac5f32e..03e99c14c3f 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -1793,8 +1793,9 @@ static int fsp_ref_no_close_destructor(struct smb_filename *smb_fname) return 0; } -NTSTATUS reference_smb_fname_fsp_link(struct smb_filename *smb_fname_dst, - const struct smb_filename *smb_fname_src) +static NTSTATUS reference_smb_fname_fsp_link( + struct smb_filename *smb_fname_dst, + const struct smb_filename *smb_fname_src) { bool ok; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 3bb309e463b..7ced3a3ffd5 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -414,9 +414,6 @@ void smb_fname_fsp_unlink(struct smb_filename *smb_fname); NTSTATUS move_smb_fname_fsp_link(struct smb_filename *smb_fname_dst, struct smb_filename *smb_fname_src); -NTSTATUS reference_smb_fname_fsp_link(struct smb_filename *smb_fname_dst, - const struct smb_filename *smb_fname_src); - NTSTATUS synthetic_pathref(TALLOC_CTX *mem_ctx, const struct files_struct *dirfsp, const char *base_name, -- 2.47.3