]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.9-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Nov 2022 17:00:11 +0000 (18:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Nov 2022 17:00:11 +0000 (18:00 +0100)
added patches:
kbuild-fix-wimplicit-function-declaration-in-license_is_gpl_compatible.patch

queue-4.9/kbuild-fix-wimplicit-function-declaration-in-license_is_gpl_compatible.patch [new file with mode: 0644]
queue-4.9/s390-crashdump-fix-tod-programmable-field-size.patch
queue-4.9/series

diff --git a/queue-4.9/kbuild-fix-wimplicit-function-declaration-in-license_is_gpl_compatible.patch b/queue-4.9/kbuild-fix-wimplicit-function-declaration-in-license_is_gpl_compatible.patch
new file mode 100644 (file)
index 0000000..9f92014
--- /dev/null
@@ -0,0 +1,44 @@
+From 50c697215a8cc22f0e58c88f06f2716c05a26e85 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Wed, 16 Nov 2022 18:26:34 +0000
+Subject: kbuild: fix -Wimplicit-function-declaration in license_is_gpl_compatible
+
+From: Sam James <sam@gentoo.org>
+
+commit 50c697215a8cc22f0e58c88f06f2716c05a26e85 upstream.
+
+Add missing <linux/string.h> include for strcmp.
+
+Clang 16 makes -Wimplicit-function-declaration an error by default.
+Unfortunately, out of tree modules may use this in configure scripts,
+which means failure might cause silent miscompilation or misconfiguration.
+
+For more information, see LWN.net [0] or LLVM's Discourse [1], gentoo-dev@ [2],
+or the (new) c-std-porting mailing list [3].
+
+[0] https://lwn.net/Articles/913505/
+[1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213
+[2] https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
+[3] hosted at lists.linux.dev.
+
+[akpm@linux-foundation.org: remember "linux/"]
+Link: https://lkml.kernel.org/r/20221116182634.2823136-1-sam@gentoo.org
+Signed-off-by: Sam James <sam@gentoo.org>
+Cc: <stable@vger.kernel.org>
+Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ include/linux/license.h |    2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/include/linux/license.h
++++ b/include/linux/license.h
+@@ -1,6 +1,8 @@
+ #ifndef __LICENSE_H
+ #define __LICENSE_H
++#include <linux/string.h>
++
+ static inline int license_is_gpl_compatible(const char *license)
+ {
+       return (strcmp(license, "GPL") == 0
index 4864ef810cf47052910bdfead5621342e342e199..9314d4d04eae2f98ebc650ecf148fe599cf5e13d 100644 (file)
@@ -40,11 +40,9 @@ Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
 Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
 Signed-off-by: Sasha Levin <sashal@kernel.org>
 ---
- arch/s390/kernel/crash_dump.c | 2 +-
+ arch/s390/kernel/crash_dump.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
-diff --git a/arch/s390/kernel/crash_dump.c b/arch/s390/kernel/crash_dump.c
-index 167135294ca5..d246cb23e341 100644
 --- a/arch/s390/kernel/crash_dump.c
 +++ b/arch/s390/kernel/crash_dump.c
 @@ -42,7 +42,7 @@ struct save_area {
@@ -56,6 +54,3 @@ index 167135294ca5..d246cb23e341 100644
        u64 timer;
        u64 todcmp;
        u64 vxrs_low[16];
--- 
-2.35.1
-
index 29661671800f4ee82ad8326c044ffd43a24cf8ae..f8094ca3c56d7b2c45710f3fd1ed695e42033ced 100644 (file)
@@ -17,4 +17,5 @@ nfc-st-nci-fix-incorrect-validating-logic-in-evt_tra.patch
 nfc-st-nci-fix-memory-leaks-in-evt_transaction.patch
 net-thunderx-fix-the-acpi-memory-leak.patch
 s390-crashdump-fix-tod-programmable-field-size.patch
+kbuild-fix-wimplicit-function-declaration-in-license_is_gpl_compatible.patch
 nios2-add-force-for-vmlinuz.gz.patch