mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
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>
This commit is contained in:
parent
a42078b9e8
commit
93ed91c020
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue