All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][SMB3] Fix trivial unused variable compile warning
@ 2022-05-23  2:30 Steve French
  0 siblings, 0 replies; only message in thread
From: Steve French @ 2022-05-23  2:30 UTC (permalink / raw)
  To: CIFS, Enzo Matsumiya

Author: Steve French <stfrench@microsoft.com>
Date:   Sun May 22 21:25:24 2022 -0500

    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>

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;


-- 
Thanks,

Steve

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-23  2:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-23  2:30 [PATCH][SMB3] Fix trivial unused variable compile warning Steve French

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.