cifs: fix minor compile warning
[sfrench/cifs-2.6.git] / fs / cifs / connect.c
index 44dc66f21d8326d3a0a43afeca67938f3407d0c5..0b08693d1af8fbf1d23bae8af51857e38c94e5fc 100644 (file)
@@ -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;