Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Florian Fainelli and committed by
Ralf Baechle
5373633c e96b1b06

+2
+2
arch/mips/Kbuild
··· 1 1 # Fail on warnings - also for files referenced in subdirs 2 2 # -Werror can be disabled for specific files using: 3 3 # CFLAGS_<file.o> := -Wno-error 4 + ifeq ($(W),) 4 5 subdir-ccflags-y := -Werror 6 + endif 5 7 6 8 # platform specific definitions 7 9 include arch/mips/Kbuild.platforms