From: Greg Kroah-Hartman Date: Sun, 17 Jan 2021 13:58:27 +0000 (+0100) Subject: 5.4-stable patches X-Git-Tag: v4.19.169~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=03de15a82f26ecdf5f4f4be898e66e9a608bf874;p=thirdparty%2Fkernel%2Fstable-queue.git 5.4-stable patches added patches: kbuild-enforce-werror-return-type.patch --- diff --git a/queue-5.4/kbuild-enforce-werror-return-type.patch b/queue-5.4/kbuild-enforce-werror-return-type.patch new file mode 100644 index 00000000000..4a4c70103ee --- /dev/null +++ b/queue-5.4/kbuild-enforce-werror-return-type.patch @@ -0,0 +1,31 @@ +From 172aad81a882443eefe1bd860c4eddc81b14dd5b Mon Sep 17 00:00:00 2001 +From: Olaf Hering +Date: Sun, 11 Oct 2020 20:54:31 +0200 +Subject: kbuild: enforce -Werror=return-type + +From: Olaf Hering + +commit 172aad81a882443eefe1bd860c4eddc81b14dd5b upstream. + +Catch errors which at least gcc tolerates by default: + warning: 'return' with no value, in function returning non-void [-Wreturn-type] + +Signed-off-by: Olaf Hering +Signed-off-by: Masahiro Yamada +Cc: Nathan Chancellor +Signed-off-by: Greg Kroah-Hartman +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/Makefile ++++ b/Makefile +@@ -480,7 +480,7 @@ KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-P + KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \ + -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \ + -Werror=implicit-function-declaration -Werror=implicit-int \ +- -Wno-format-security \ ++ -Werror=return-type -Wno-format-security \ + -std=gnu89 + KBUILD_CPPFLAGS := -D__KERNEL__ + KBUILD_AFLAGS_KERNEL := diff --git a/queue-5.4/series b/queue-5.4/series new file mode 100644 index 00000000000..7b392891214 --- /dev/null +++ b/queue-5.4/series @@ -0,0 +1 @@ +kbuild-enforce-werror-return-type.patch