All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve French <smfrench@gmail.com>
To: CIFS <linux-cifs@vger.kernel.org>, Enzo Matsumiya <ematsumiya@suse.de>
Subject: [PATCH][SMB3] Fix trivial unused variable compile warning
Date: Sun, 22 May 2022 21:30:50 -0500	[thread overview]
Message-ID: <CAH2r5msUe_HnNY7ZsdYoBp1ertK=4jLLxiBCxUbUTP1X00+Z=A@mail.gmail.com> (raw)

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

                 reply	other threads:[~2022-05-23  2:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH2r5msUe_HnNY7ZsdYoBp1ertK=4jLLxiBCxUbUTP1X00+Z=A@mail.gmail.com' \
    --to=smfrench@gmail.com \
    --cc=ematsumiya@suse.de \
    --cc=linux-cifs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.