powerpc: Add configurable -Werror for arch/powerpc
[pandora-kernel.git] / arch / powerpc / mm / Makefile
index c4bcf07..2d2192e 100644 (file)
@@ -2,6 +2,8 @@
 # Makefile for the linux ppc-specific parts of the memory manager.
 #
 
+subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
+
 ifeq ($(CONFIG_PPC64),y)
 EXTRA_CFLAGS   += -mno-minimal-toc
 endif