Skip to content

Commit 93ed91c

Browse files
committed
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>
1 parent a42078b commit 93ed91c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fs/cifs/connect.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3433,7 +3433,9 @@ static int is_path_remote(struct mount_ctx *mnt_ctx)
34333433
struct cifs_tcon *tcon = mnt_ctx->tcon;
34343434
struct smb3_fs_context *ctx = mnt_ctx->fs_ctx;
34353435
char *full_path;
3436+
#ifdef CONFIG_CIFS_DFS_UPCALL
34363437
bool nodfs = cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_DFS;
3438+
#endif
34373439

34383440
if (!server->ops->is_path_accessible)
34393441
return -EOPNOTSUPP;

0 commit comments

Comments
 (0)