From patchwork Fri Aug 30 03:43:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 172667 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp48300ily; Thu, 29 Aug 2019 20:44:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgUg9FX5ckjluzDGTzVUJ3j1z9ahPfxAjcW3TRedn5jXNVZYbVO9kXvTp3nNsNJo1CYwpp X-Received: by 2002:a63:2043:: with SMTP id r3mr11358358pgm.311.1567136653268; Thu, 29 Aug 2019 20:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567136653; cv=none; d=google.com; s=arc-20160816; b=eqhbD6xKJwgpOoUZnjJb23C2nHjvRKO+1OwHrcHmw77OrYMtKty6TjdlphAfnfPe92 SaMOdAIraA9UXukLWAAWWaV8VYY2DWb+9gwMLewRCzYqkJFJw77jB91slbHo3kvA/flr np+IuPMZ8CPt4rqlc9bCkMueBOUgx8hUSkn4PC0U1NcwUpDUyMTbvv6gq+aHfG/NpxWl wifw/DAD4mvRDeZlLgESjCLpMXZafAZxN+z3sJlbGGj0DO5+Xp84TBv61Y0t7DTXDcfM WySSnOuugB0bEprgbtTNH5EAS3MKGItDNpzLsEIslruapLB36ihXi5R/dcPr4BtIpmrl lyLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=n/FaYt9S0oYy3OrU7uUSdznL2hSFziWcD6C9H/gFJSY=; b=a87rkAVxPaCloF4zNokGFm0qauOPjJdOurITLk4SogHktHbmjYhOfgSBSAXRvCNpJF vDPMxxTgrwoxRl/wZ3Bd07W27T/L4rpbVggFjSVU6GjG89TC7WQTA7tKxN7jzVQDYLcA 3rES0oA+K9zRb+uJwcle7lQT3LZcet+D/xseKi8NChF7UqHipOnix6IZcLzfaWn/0Thc ce9oTE8MbYUAb2Q1QsBePDnoS426A1L0aM2gEDM+92r3xxXt1DcpjG4Tz91L08lT4njA 3AL6liIXUZFHQ0koeLdXbnHwMRIoiZ7znrj7tTt6CxH4b26EEi55T8jYoHEh6cxVjaVl oWMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=uf7EcFZa; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s16si3631442pgs.228.2019.08.29.20.44.12; Thu, 29 Aug 2019 20:44:13 -0700 (PDT) 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=@nifty.com header.s=dec2015msa header.b=uf7EcFZa; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727747AbfH3DoM (ORCPT + 28 others); Thu, 29 Aug 2019 23:44:12 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:45744 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727213AbfH3DoM (ORCPT ); Thu, 29 Aug 2019 23:44:12 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id x7U3hATq026091; Fri, 30 Aug 2019 12:43:10 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com x7U3hATq026091 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1567136590; bh=n/FaYt9S0oYy3OrU7uUSdznL2hSFziWcD6C9H/gFJSY=; h=From:To:Cc:Subject:Date:From; b=uf7EcFZazsGLGvFsS19t8IFTDuhERUXvBjI3JrKxn3IC1YmROZFTmWfAdaSZhGwYU dIXgxjLkRU4ztzVqfzWxYmhqhqoypqqcwqotFg8pWNo5fUbXwr+E+p43Low8y8WZvD nS6ez0U5nPVXKIBmTUHlI84Y9ELgdEg5iGrKZns6Ae4vYKXKyU3gY0IUPJdOffg2I6 Pyuv0OQ4Awc0ARp0K3y8QcPSSzKZ9KDXoVGNNdkg+3nrh+7RZEnKg6b65CQSu9T7iq CDzgWBcyeQTIkuTT0pyNylGLlTCYCUrME8ZwicpZSzws+5LCMjxO8IpkzJ1g3KVMk5 vFmFF+KTSulcw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Andrew Morton Cc: Ingo Molnar , Borislav Petkov , Linus Torvalds , Nick Desaulniers , Miguel Ojeda , linux-arch , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly Date: Fri, 30 Aug 2019 12:43:04 +0900 Message-Id: <20190830034304.24259-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 9012d011660e ("compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING") allowed all architectures to enable this option. A couple of build errors were reported by randconfig, but all of them have been ironed out. Towards the goal of removing CONFIG_OPTIMIZE_INLINING entirely (and it will simplify the 'inline' macro in compiler_types.h), this commit changes it to always-on option. Going forward, the compiler will always be allowed to not inline functions marked 'inline'. This is not a problem for x86 since it has been long used by arch/x86/configs/{x86_64,i386}_defconfig. I am keeping the config option just in case any problem crops up for other architectures. The code clean-up will be done after confirming this is solid. Signed-off-by: Masahiro Yamada --- lib/Kconfig.debug | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.17.1 Acked-by: Nick Desaulniers Acked-by: Will Deacon diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 5960e2980a8a..e25493811df8 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -327,7 +327,7 @@ config HEADERS_CHECK relevant for userspace, say 'Y'. config OPTIMIZE_INLINING - bool "Allow compiler to uninline functions marked 'inline'" + def_bool y help This option determines if the kernel forces gcc to inline the functions developers have marked 'inline'. Doing so takes away freedom from gcc to @@ -338,8 +338,6 @@ config OPTIMIZE_INLINING decision will become the default in the future. Until then this option is there to test gcc for this. - If unsure, say N. - config DEBUG_SECTION_MISMATCH bool "Enable full Section mismatch analysis" help