commit: 3c727b15fe293a179ccf32e872d6933cf6f57406 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> AuthorDate: Thu Jun 9 18:30:52 2022 +0000 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> CommitDate: Thu Jun 9 18:30:52 2022 +0000 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3c727b15
cifs: fix minor compile warning Bug: https://bugs.gentoo.org/850763 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 e0e0b2de..675c8bcb 100644 --- a/0000_README +++ b/0000_README @@ -107,6 +107,10 @@ Patch: 1510_fs-enable-link-security-restrictions-by-default.patch From: http://sources.debian.net/src/linux/3.16.7-ckt4-3/debian/patches/debian/fs-enable-link-security-restrictions-by-default.patch/ Desc: Enable link security restrictions by default. +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 +