From: Florian Fainelli Date: Fri, 17 Mar 2017 01:06:12 +0000 (-0700) Subject: MIPS: Disable Werror when W= is set X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5373633cc9253ba82547473e899cab141c54133e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git MIPS: Disable Werror when W= is set Using any value for W= will lead to a ton of warnings which are turned into fatal errors because MIPS adds -Werror to arch/mips/*. Signed-off-by: Florian Fainelli Cc: linux-mips@linux-mips.org Cc: james.hogan@imgtec.com Patchwork: https://patchwork.linux-mips.org/patch/15785/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/Kbuild b/arch/mips/Kbuild index 5c3f688a5232..5cef58651db0 100644 --- a/arch/mips/Kbuild +++ b/arch/mips/Kbuild @@ -1,7 +1,9 @@ # Fail on warnings - also for files referenced in subdirs # -Werror can be disabled for specific files using: # CFLAGS_ := -Wno-error +ifeq ($(W),) subdir-ccflags-y := -Werror +endif # platform specific definitions include arch/mips/Kbuild.platforms