Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5538694ybl; Tue, 10 Dec 2019 07:38:15 -0800 (PST) X-Google-Smtp-Source: APXvYqygmm4UfmEiMqwUFt4lC4rxIAwC3BLbXlPHK0ZXR7q+p2EVQrOXldgGhIYG9hC5MUMg4+Jt X-Received: by 2002:a05:6830:124b:: with SMTP id s11mr25634692otp.333.1575992295399; Tue, 10 Dec 2019 07:38:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575992295; cv=none; d=google.com; s=arc-20160816; b=ikqhdqo/4UcfS/pq3n6v3FhJMmW64qRoF67FtCY7SRjPrgr4CxcYqVlwKk0fpsIPjy lqPuEPNd9KAuO3gjzg2xWNXNFNeIVsGdCjoJvQteC/fjj7q94Bq/nIvvWe9Z97wxh2tT yp+AGKTXNyCr9YGpIIMHIGt4J95HbURLtxmHioga+c1095wviLA+zd7RfZZ6S3mDOeA0 pYqVDzalTIRpV3KUEoQYaIK7Xtuaqvi9ocKSzLI+LLvb6rd+jw7IST9bT4PS7+r0EQ9k sPqii86f5bk10U8iinz5UMj7px1TZEPBCHQICYguJ1yRBV64of8/U/kYqzgJssXKOiU7 MZlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=coGlc8GfQQu4gLxijfW7KfxO14Jm0dG7Ht0cutnU4I8=; b=papIHl65RcwMabZKTZ2ZNLcdtThxJUPtljjFpbC1C/B40fAm+PGQk5HN5COk5IGrkG icseILdJNFd8Z0mmf7/M1vrLT3Sh0/ljP9MN0Vksxy0TbSB4w8t1EuZwiPHbOMPQt9bf OSXiwuevSVIKHkMeAAzqNovUnF+Ro4nMUQ76xBK88UXlO0S1oVv9w2zhFk4Jdx+mpSJY 5TxXdsegpIhniwq/X15ozT7h/0BKTV88x7hjfZ7DRDz1SN9IwiScTM6nnOk/0mFqwqCf C5i6ipbgw1CTnVJ4uDf2oSL7NQ/VKIhwIWPHxh3s3V+UjqVgym1CE3Eo1UPEVaYB6D0v BtYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="tmzVi/9q"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v13si1395976oth.280.2019.12.10.07.38.02; Tue, 10 Dec 2019 07:38:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="tmzVi/9q"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727620AbfLJPhY (ORCPT + 99 others); Tue, 10 Dec 2019 10:37:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:54850 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727486AbfLJPhX (ORCPT ); Tue, 10 Dec 2019 10:37:23 -0500 Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B89B622B48 for ; Tue, 10 Dec 2019 15:37:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575992243; bh=1vwTuyeGNMoWzMSycC968byapHd+NyJvdWDj4S+IGzk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=tmzVi/9qM6uBnYYEyG0XC7YXoHByQZfteOHBN3MQTZWHeRD4QKCV1uf5IVDVxVbAe 0ydyQauqJL5JD7nzoY2w9NE92E7m2Trq62q55XHVaFNmRQ1Z3Yhq4Dre3ExkLmY/65 4t3mLfG3K06iteG2xHwmX4KlMsQSvLyVRGDcQKDM= Received: by mail-lf1-f54.google.com with SMTP id n25so14138516lfl.0 for ; Tue, 10 Dec 2019 07:37:22 -0800 (PST) X-Gm-Message-State: APjAAAU9MPXILj6rrCS5VeS/PsRXMm5Q/1wRzDG3OtPt7btUEqDBcrS9 VUxsZAXRvi9s8uUPtZt/N4EzjouTh3Vf1AJVByE= X-Received: by 2002:a19:c205:: with SMTP id l5mr18943583lfc.159.1575992240859; Tue, 10 Dec 2019 07:37:20 -0800 (PST) MIME-Version: 1.0 References: <20191210145657.105808-1-oleksandr@redhat.com> In-Reply-To: <20191210145657.105808-1-oleksandr@redhat.com> From: Krzysztof Kozlowski Date: Tue, 10 Dec 2019 16:37:09 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH RFC] init/Kconfig: enable -O3 for all arches To: Oleksandr Natalenko Cc: "linux-kernel@vger.kernel.org" , Masahiro Yamada , Andrew Morton , Greg Kroah-Hartman , Jessica Yu , Tejun Heo , Mauro Carvalho Chehab , Joel Fernandes , David Howells , Patrick Bellasi , Dan Williams , "Eric W . Biederman" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Dec 2019 at 15:57, Oleksandr Natalenko wrote: > > Building a kernel with -O3 may help in hunting bugs like [1] and thus > using this switch should not be restricted to one specific arch only. > > Thus lets expose it. If for some reasone we have to hide it, lets hide > it under EXPERT. You are not hiding it under EXPERT so no need to document in commit log theoretical future decisions. > The commit is made against next-20191210 tag. This does not belong to commit message. You can put such under the --- separator. Best regards, Krzysztof > > [1] https://lore.kernel.org/lkml/673b885183fb64f1cbb3ed2387524077@natalenko.name/ > > Signed-off-by: Oleksandr Natalenko > --- > init/Kconfig | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/init/Kconfig b/init/Kconfig > index a34064a031a5..b41b18edb10e 100644 > --- a/init/Kconfig > +++ b/init/Kconfig > @@ -1228,7 +1228,6 @@ config CC_OPTIMIZE_FOR_PERFORMANCE > > config CC_OPTIMIZE_FOR_PERFORMANCE_O3 > bool "Optimize more for performance (-O3)" > - depends on ARC > imply CC_DISABLE_WARN_MAYBE_UNINITIALIZED # avoid false positives > help > Choosing this option will pass "-O3" to your compiler to optimize > -- > 2.24.0 >