[PATCH] powerpc: Add configurable -Werror for arch/powerpc

Kumar Gala kumar.gala at freescale.com
Wed Apr 8 01:05:45 EST 2009


On Apr 6, 2009, at 9:00 PM, Michael Ellerman wrote:

> Add an option, on by default, to build all code under arch/powerpc  
> with
> -Werror, which causes gcc to treat warnings as errors.
>
> The intention is to make it harder for people to inadvertantly  
> introduce
> errors in the arch/powerpc code. It needs to be configurable so that
> if a warning is introduced, people can easily work around it while  
> it's
> being fixed.
>
> Signed-off-by: Michael Ellerman <michael at ellerman.id.au>
> ---
> arch/powerpc/Kconfig.debug      |    8 ++++++++
> arch/powerpc/kernel/Makefile    |    4 ++++
> arch/powerpc/kvm/Makefile       |    4 ++++
> arch/powerpc/lib/Makefile       |    4 ++++
> arch/powerpc/mm/Makefile        |    4 ++++
> arch/powerpc/oprofile/Makefile  |    4 ++++
> arch/powerpc/platforms/Makefile |    4 ++++
> arch/powerpc/sysdev/Makefile    |    4 ++++
> arch/powerpc/xmon/Makefile      |    4 ++++
> 9 files changed, 40 insertions(+), 0 deletions(-)
>
> v2: Leave math-emu alone, it's a steaming pile of warnings.

Acked-by: Kumar Gala <galak at kernel.crashing.org>

- k



More information about the Linuxppc-dev mailing list