aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2022-05-22 21:25:24 -0500
committerSteve French <stfrench@microsoft.com>2022-05-23 20:24:12 -0500
commit93ed91c020aa4f021600a633f1f87790a5e50b91 (patch)
tree6497afb09439b0ff612ebb289c62b4cb23de1500 /fs/cifs
parentAdd various fsctl structs (diff)
downloadlinux-dev-93ed91c020aa4f021600a633f1f87790a5e50b91.tar.xz
linux-dev-93ed91c020aa4f021600a633f1f87790a5e50b91.zip
cifs: fix minor compile warning
Add ifdef around nodfs variable from patch: "cifs: don't call cifs_dfs_query_info_nonascii_quirk() if nodfs was set" which is unused when CONFIG_DFS_UPCALL is not set. Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/connect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 44dc66f21d83..0b08693d1af8 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -3433,7 +3433,9 @@ static int is_path_remote(struct mount_ctx *mnt_ctx)
struct cifs_tcon *tcon = mnt_ctx->tcon;
struct smb3_fs_context *ctx = mnt_ctx->fs_ctx;
char *full_path;
+#ifdef CONFIG_CIFS_DFS_UPCALL
bool nodfs = cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_DFS;
+#endif
if (!server->ops->is_path_accessible)
return -EOPNOTSUPP;