Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751702Ab1ECIwb (ORCPT ); Tue, 3 May 2011 04:52:31 -0400 Received: from cantor.suse.de ([195.135.220.2]:35127 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751406Ab1ECIwa (ORCPT ); Tue, 3 May 2011 04:52:30 -0400 Message-ID: <4DBFC24B.7090805@suse.cz> Date: Tue, 03 May 2011 10:52:27 +0200 From: Michal Marek User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Thunderbird/3.1.8 MIME-Version: 1.0 To: Stephen Rothwell Cc: davej@redhat.com, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, sam@ravnborg.org Subject: Re: [PATCH] kbuild: Fix passing -Wno-* options to gcc 4.4+ References: <20110502111337.GA15769@sepie.suse.cz> <1304338381-3772-1-git-send-email-mmarek@suse.cz> <20110503104440.700ea26f.sfr@canb.auug.org.au> In-Reply-To: <20110503104440.700ea26f.sfr@canb.auug.org.au> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1142 Lines: 29 On 3.5.2011 02:44, Stephen Rothwell wrote: > HI Michal, > > On Mon, 2 May 2011 14:13:01 +0200 Michal Marek wrote: >> >> Starting with 4.4, gcc will happily accept -Wno- in the >> cc-option test and complain later when compiling a file that has some >> other warning. This rather unexpected behavior is intentional as per >> http://gcc.gnu.org/PR28322, so work around it by testing for support of >> the opposite option (without the no-). Introduce a new Makefile function >> cc-disable-warning that does this and update two uses of cc-option in >> the toplevel Makefile. >> >> Reported-by: Stephen Rothwell >> Signed-off-by: Michal Marek > > This fixed things for me, thanks. > > Tested-by: Stephen Rothwell Thanks for spotting the warnings and for testing. I pushed this to kbuild-2.6.git#kbuild. Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/