diff options
-rw-r--r-- | arch/mips/Kbuild | 6 | ||||
-rw-r--r-- | arch/mips/kernel/Makefile | 2 | ||||
-rw-r--r-- | arch/mips/math-emu/Makefile | 1 | ||||
-rw-r--r-- | arch/mips/mm/Makefile | 2 |
4 files changed, 6 insertions, 5 deletions
diff --git a/arch/mips/Kbuild b/arch/mips/Kbuild index a18eb5d4d40e..6ce938200bbd 100644 --- a/arch/mips/Kbuild +++ b/arch/mips/Kbuild | |||
@@ -1,3 +1,9 @@ | |||
1 | # Fail on warnings - also for files referenced in subdirs | ||
2 | # -Werror can be disabled for specific files using: | ||
3 | # CFLAGS_<file.o> := -Wno-error | ||
4 | subdir-ccflags-y := -Werror | ||
5 | |||
6 | |||
1 | # mips object files | 7 | # mips object files |
2 | # The object files are linked as core-y files would be linked | 8 | # The object files are linked as core-y files would be linked |
3 | 9 | ||
diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile index 7a6ac501cbb5..ff5ec2e0184e 100644 --- a/arch/mips/kernel/Makefile +++ b/arch/mips/kernel/Makefile | |||
@@ -101,6 +101,4 @@ obj-$(CONFIG_HAVE_STD_PC_SERIAL_PORT) += 8250-platform.o | |||
101 | 101 | ||
102 | obj-$(CONFIG_MIPS_CPUFREQ) += cpufreq/ | 102 | obj-$(CONFIG_MIPS_CPUFREQ) += cpufreq/ |
103 | 103 | ||
104 | EXTRA_CFLAGS += -Werror | ||
105 | |||
106 | CPPFLAGS_vmlinux.lds := $(KBUILD_CFLAGS) | 104 | CPPFLAGS_vmlinux.lds := $(KBUILD_CFLAGS) |
diff --git a/arch/mips/math-emu/Makefile b/arch/mips/math-emu/Makefile index d547efdeedc2..96607230d9ea 100644 --- a/arch/mips/math-emu/Makefile +++ b/arch/mips/math-emu/Makefile | |||
@@ -10,4 +10,3 @@ obj-y := cp1emu.o ieee754m.o ieee754d.o ieee754dp.o ieee754sp.o ieee754.o \ | |||
10 | sp_scalb.o sp_simple.o sp_tint.o sp_fint.o sp_tlong.o sp_flong.o \ | 10 | sp_scalb.o sp_simple.o sp_tint.o sp_fint.o sp_tlong.o sp_flong.o \ |
11 | dp_sqrt.o sp_sqrt.o kernel_linkage.o dsemul.o | 11 | dp_sqrt.o sp_sqrt.o kernel_linkage.o dsemul.o |
12 | 12 | ||
13 | EXTRA_CFLAGS += -Werror | ||
diff --git a/arch/mips/mm/Makefile b/arch/mips/mm/Makefile index f0e435599707..d679c772d082 100644 --- a/arch/mips/mm/Makefile +++ b/arch/mips/mm/Makefile | |||
@@ -34,5 +34,3 @@ obj-$(CONFIG_IP22_CPU_SCACHE) += sc-ip22.o | |||
34 | obj-$(CONFIG_R5000_CPU_SCACHE) += sc-r5k.o | 34 | obj-$(CONFIG_R5000_CPU_SCACHE) += sc-r5k.o |
35 | obj-$(CONFIG_RM7000_CPU_SCACHE) += sc-rm7k.o | 35 | obj-$(CONFIG_RM7000_CPU_SCACHE) += sc-rm7k.o |
36 | obj-$(CONFIG_MIPS_CPU_SCACHE) += sc-mips.o | 36 | obj-$(CONFIG_MIPS_CPU_SCACHE) += sc-mips.o |
37 | |||
38 | EXTRA_CFLAGS += -Werror | ||