summaryrefslogtreecommitdiffstats
path: root/arch/mips/Kbuild
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/Kbuild')
-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