From: Olaf Hering Date: Sun, 11 Oct 2020 18:54:31 +0000 (+0200) Subject: kbuild: enforce -Werror=return-type X-Git-Tag: v5.4.91~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb562e6e0358fe0ecf6853f28dab615e90389f9a;p=thirdparty%2Fkernel%2Fstable.git kbuild: enforce -Werror=return-type 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 --- diff --git a/Makefile b/Makefile index 5c9d680b7ce51..d87ef7a839072 100644 --- a/Makefile +++ b/Makefile @@ -480,7 +480,7 @@ KBUILD_AFLAGS := -D__ASSEMBLY__ -fno-PIE 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 :=