Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp161596ybl; Thu, 29 Aug 2019 20:45:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoVRY5LB0bP99T5pnWDYO9FAp4JYuvkz6uiPPDKyV0HBlqdTPWE/Yqc2nnpvVczsIdHd/l X-Received: by 2002:a17:90a:c404:: with SMTP id i4mr13413079pjt.81.1567136715930; Thu, 29 Aug 2019 20:45:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567136715; cv=none; d=google.com; s=arc-20160816; b=rEO1mK2i8mQEwX1CV3oUmE2zWWXP9fJCI3Cgr5wf1P7ZUExFBlp0QG9VoetOpdzmc6 6+fFhwx3tuOoDsfiVGFQHyk/N5hinYmalvu0DjmovIabf+doe7kCjkGY8dHxChFTffz1 SjtYx65opPJ31a9zyuKbuVRMhaoViFbWZdC52nfZ+P3WMsNtbAEfA/sQitahPK1B+PJJ IUcttmCX5/Ub1Zp3e9ZydJWpRuZ2KkvJ6nk50ITCkvxFm4+XJ3PKgePhYrXt5u1yx2zf 6KZIJ3pXid69SvZRIpYvrMzfTtro6jG8VawN2jh80cnV1Hs+Ln9aR6d+uwaH7IP3S2za 91vA== 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 i14si4994525pfq.287.2019.08.29.20.45.00; Thu, 29 Aug 2019 20:45:15 -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 S1727701AbfH3DoM (ORCPT + 99 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(-) 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 -- 2.17.1