summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-03-16 18:06:12 -0700
committerRalf Baechle <ralf@linux-mips.org>2017-04-10 11:56:07 +0200
commit5373633cc9253ba82547473e899cab141c54133e (patch)
tree671b92bc4975789d698a996c4b09291db2d70392
parente96b1b0648adf7d80606a99e9596177186fd90ab (diff)
downloadlinux-5373633cc9253ba82547473e899cab141c54133e.tar.bz2
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 <f.fainelli@gmail.com> Cc: linux-mips@linux-mips.org Cc: james.hogan@imgtec.com Patchwork: https://patchwork.linux-mips.org/patch/15785/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/Kbuild2
1 files changed, 2 insertions, 0 deletions
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_<file.o> := -Wno-error
+ifeq ($(W),)
subdir-ccflags-y := -Werror
+endif
# platform specific definitions
include arch/mips/Kbuild.platforms