From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eddie.linux-mips.org ([78.24.191.182] helo=cvs.linux-mips.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SQxYG-0004uw-AG for linux-mtd@lists.infradead.org; Sun, 06 May 2012 09:14:49 +0000 Received: from localhost.localdomain ([127.0.0.1]:45606 "EHLO localhost.localdomain" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1903560Ab2EFJOq (ORCPT ); Sun, 6 May 2012 11:14:46 +0200 Date: Sun, 6 May 2012 10:14:46 +0100 (BST) From: "Maciej W. Rozycki" To: Artem Bityutskiy Subject: Re: [PATCH 1/2] MIPS: Kbuild: remove -Werror In-Reply-To: <1336293478.2801.4.camel@brekeke> Message-ID: References: <1335534510-12573-1-git-send-email-dedekind1@gmail.com> <4F9AD14E.9060008@gmail.com> <1336289676.1996.3.camel@koala> <1336293478.2801.4.camel@brekeke> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: MIPS Mailing List , MTD Maling List , Ralf Baechle , David Daney List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, 6 May 2012, Artem Bityutskiy wrote: > > And my opinion is based on experience. Please check the LMO archives for > > why Ralf added this option in the first place -- many years ago. It's > > probably recorded in the git repository too (I'm not sure if the option > > was added before or after we moved away from CVS, but in any case old > > change logs have been imported when our current repo was created). > > We need to figure out how to make -Werror be applied only when we do not > have W=[123]. Hmm, that sounds better, however has the counter-intuitive side-effect of lowering the severity of the warnings that are enabled even without W=[123]. Modern versions of GCC have that selective -Wno-error=foo option and I think it should be possible to build the precise list of warnings not to choke on locally in arch/mips/Kbuild with little Makefile magic, falling back to something sane for older GCC versions (I'm not sure exactly when these selective options were added, certainly sometime between 4.1 and 4.3). This will be a bit imperfect if any of these additional -Wfoo options duplicate ones already added to KBUILD_CFLAGS in our top-level Makefile (either explicitly or via -Wall), but that's about the best we can do. I'll see if I can cook up something quickly. Maciej