From 66f9ba101f54bda63ab1db97f9e9e94763d0651b Mon Sep 17 00:00:00 2001 From: Sam Ravnborg Date: Sun, 30 May 2010 16:26:40 +0200 Subject: MIPS: Add -Werror to arch/mips/Kbuild Adding subdirs-ccflags-y := -Werror to arch/mips/Kbuild let us in one go cover all files with -Werror. In addition this allows us to remove the individual -Werror definition in various Makefile. Adding the definition to Kbuild as a recursive option help us not to forget to do so. With this change we now compile arch/mips/kernel/cpufreq with -Werror One drawback: When specifying a subdirectory covered by the Kbuild file like this: make arch/mips/kernel/ then kbuild fails to pick up the -Werror definition. Signed-off-by: Sam Ravnborg To: linux-mips To: Wu Zhangjin Patchwork: https://patchwork.linux-mips.org/patch/1301/ Signed-off-by: Ralf Baechle --- arch/mips/Kbuild | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'arch/mips/Kbuild') 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 @@ +# Fail on warnings - also for files referenced in subdirs +# -Werror can be disabled for specific files using: +# CFLAGS_ := -Wno-error +subdir-ccflags-y := -Werror + + # mips object files # The object files are linked as core-y files would be linked -- cgit v1.2.3