From: Olaf Hering Date: Sun, 11 Oct 2020 18:54:31 +0000 (+0200) Subject: kbuild: enforce -Werror=return-type X-Git-Tag: v4.19.169~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=47b5fc25044c81190203fe73d84068bffa0dd73a;p=users%2Fdwmw2%2Flinux.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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/Makefile b/Makefile index 3e44a813604eb..17ee114eb52d0 100644 --- a/Makefile +++ b/Makefile @@ -438,7 +438,7 @@ KBUILD_AFLAGS := -D__ASSEMBLY__ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common -fshort-wchar \ -Werror-implicit-function-declaration \ - -Wno-format-security \ + -Werror=return-type -Wno-format-security \ -std=gnu89 KBUILD_CPPFLAGS := -D__KERNEL__ KBUILD_AFLAGS_KERNEL :=