[Top] [All Lists]

Re: [PATCH 1/2] MIPS: Kbuild: remove -Werror

To: Artem Bityutskiy <>, Ralf Baechle <>
Subject: Re: [PATCH 1/2] MIPS: Kbuild: remove -Werror
From: David Daney <>
Date: Fri, 27 Apr 2012 10:03:10 -0700
Cc: MIPS Mailing List <>, MTD Maling List <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=IFc4uBfoYdArzZ9SB72P6FBMe9//6Us6PcJJ5HcwYiA=; b=0Ees0UGDOAIxsyXoXp/CnH8CSO+TpiqdFT9+FU4M7+GQPBl04hv/TDLK9/kt5E5o4b cLWTrhHRUb7s2mLFGnM+W6pFEEc9KsX0E82+wvA88DOAXZse5i4Js7vQXPVw54eJgP/M h7IY2PuxtBg1tQRpeal9wDRUj7hMJ+FebP64vY2HK9pdaRqUQlsdr7AB9roeYJmzYa2g gfLDfGumiKlOHRprLWi5z6Ed6tWWXQ3Df2545RF6XL/gWWlenr0A4z+B9HCkXSFOYZbk 6hf1wiB8dwREihGcUGTs1WEP8yc+pkHMcwbRwyCIOlQaNfqlCwLq4I0wglvJ3YTtv0a4 CHgw==
In-reply-to: <>
References: <>
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10
On 04/27/2012 06:48 AM, Artem Bityutskiy wrote:
From: Artem Bityutskiy<>

MIPS build fails with the standard W=1 Kbuild switch with because of the
-Werror gcc switch.

This patch removes the gcc switch to make W=1 work. Mips is the only
architecture I know which does not build with W=1 and this upsets my aiaiai
scripts. And in general, you never know which warnings newer versions of gcc
will start emiting so having -Werror by default is not the best idea.

Signed-off-by: Artem Bityutskiy<>

I think the warning messages are enough, we don't need to break things.

Acked-by: David Daney <>

  arch/mips/Kbuild |    5 -----
  1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/arch/mips/Kbuild b/arch/mips/Kbuild
index 7dd65cf..0d37730 100644
--- a/arch/mips/Kbuild
+++ b/arch/mips/Kbuild
@@ -1,8 +1,3 @@
-# Fail on warnings - also for files referenced in subdirs
-# -Werror can be disabled for specific files using:
-# CFLAGS_<file.o>  := -Wno-error
-subdir-ccflags-y := -Werror
  # platform specific definitions
  include arch/mips/Kbuild.platforms
  obj-y := $(platform-y)

<Prev in Thread] Current Thread [Next in Thread>