From: Greg Kroah-Hartman Date: Tue, 29 Nov 2022 17:00:11 +0000 (+0100) Subject: 4.9-stable patches X-Git-Tag: v5.10.157~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8feec5121ddbf1e7e9a829ffdbcbb09d6a6c38fa;p=thirdparty%2Fkernel%2Fstable-queue.git 4.9-stable patches added patches: kbuild-fix-wimplicit-function-declaration-in-license_is_gpl_compatible.patch --- 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 index 00000000000..9f920149848 --- /dev/null +++ b/queue-4.9/kbuild-fix-wimplicit-function-declaration-in-license_is_gpl_compatible.patch @@ -0,0 +1,44 @@ +From 50c697215a8cc22f0e58c88f06f2716c05a26e85 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Wed, 16 Nov 2022 18:26:34 +0000 +Subject: kbuild: fix -Wimplicit-function-declaration in license_is_gpl_compatible + +From: Sam James + +commit 50c697215a8cc22f0e58c88f06f2716c05a26e85 upstream. + +Add missing 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 +Cc: +Signed-off-by: Andrew Morton +Signed-off-by: Greg Kroah-Hartman +--- + 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 ++ + static inline int license_is_gpl_compatible(const char *license) + { + return (strcmp(license, "GPL") == 0 diff --git a/queue-4.9/s390-crashdump-fix-tod-programmable-field-size.patch b/queue-4.9/s390-crashdump-fix-tod-programmable-field-size.patch index 4864ef810cf..9314d4d04ea 100644 --- a/queue-4.9/s390-crashdump-fix-tod-programmable-field-size.patch +++ b/queue-4.9/s390-crashdump-fix-tod-programmable-field-size.patch @@ -40,11 +40,9 @@ Signed-off-by: Heiko Carstens Signed-off-by: Alexander Gordeev Signed-off-by: Sasha Levin --- - 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 - diff --git a/queue-4.9/series b/queue-4.9/series index 29661671800..f8094ca3c56 100644 --- a/queue-4.9/series +++ b/queue-4.9/series @@ -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