commit: ea28214f21dc64ec385bdcf962806c9d93a9e7e6 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> AuthorDate: Thu Jun 9 18:39:55 2022 +0000 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> CommitDate: Thu Jun 9 18:39:55 2022 +0000 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=ea28214f
cifs: fix minor compile warning Bug: https://bugs.gentoo.org/85076 Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> 0000_README | 4 ++++ 1950_cifs-fix-minor-compile-warning.patch | 33 +++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/0000_README b/0000_README index 5acbe17f..01987387 100644 --- a/0000_README +++ b/0000_README @@ -67,6 +67,10 @@ Patch: 1700_sparc-address-warray-bound-warnings.patch From: https://github.com/KSPP/linux/issues/109 Desc: Address -Warray-bounds warnings +Patch: 1950_cifs-fix-minor-compile-warning.patch +From: https://git.kernel.org/ +Desc: cifs: fix minor compile warning + Patch: 2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch From: https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-mar...@holtmann.org/raw Desc: Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. See bug #686758 diff --git a/1950_cifs-fix-minor-compile-warning.patch b/1950_cifs-fix-minor-compile-warning.patch new file mode 100644 index 00000000..65787238 --- /dev/null +++ b/1950_cifs-fix-minor-compile-warning.patch @@ -0,0 +1,33 @@ +From 93ed91c020aa4f021600a633f1f87790a5e50b91 Mon Sep 17 00:00:00 2001 +From: Steve French <stfre...@microsoft.com> +Date: Sun, 22 May 2022 21:25:24 -0500 +Subject: 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 <stfre...@microsoft.com> +--- + fs/cifs/connect.c | 2 ++ + 1 file changed, 2 insertions(+) + +(limited to 'fs/cifs/connect.c') + +diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c +index 44dc66f21d832..0b08693d1af8f 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; +-- +cgit 1.2.3-1.el7 +