Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753252AbbKXMH1 (ORCPT ); Tue, 24 Nov 2015 07:07:27 -0500 Received: from mx2.suse.de ([195.135.220.15]:45690 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753114AbbKXMHY (ORCPT ); Tue, 24 Nov 2015 07:07:24 -0500 Subject: Re: [PATCH] Kbuild: disable 'maybe-uninitialized' warning for CONFIG_PROFILE_ALL_BRANCHES To: Arnd Bergmann References: <3799453.oCg1CdOrtm@wuerfel> <565439FB.6050800@suse.com> <20825812.L9y0yMCgts@wuerfel> Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-arm-kernel@lists.infradead.org From: Michal Marek Message-ID: <565452FA.6010603@suse.com> Date: Tue, 24 Nov 2015 13:07:22 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20825812.L9y0yMCgts@wuerfel> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1185 Lines: 33 On 2015-11-24 11:42, Arnd Bergmann wrote: > On Tuesday 24 November 2015 11:20:43 Michal Marek wrote: >>> diff --git a/Makefile b/Makefile >>> index 5e01a416c6e4..f8b921658f29 100644 >>> --- a/Makefile >>> +++ b/Makefile >>> @@ -626,7 +626,11 @@ KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) >>> ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE >>> KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,) >>> else >>> -KBUILD_CFLAGS += -O2 >>> +ifdef CONFIG_PROFILE_ALL_BRANCHES >>> +KBUILD_CFLAGS += -O2 $(call cc-disable-warning,maybe-uninitialized,) >>> +else >>> +KBUILD_CFLAGS += -O2 >>> +endif >> >> Does it only happen with -O2? Normally, we would add it outside the >> ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE. >> > > We already disable the warning for -Os builds based on a patch we merged > a while ago. It seems easier to add it to the block we already have. I'm blind, sorry. 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/