Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp432754img; Thu, 21 Mar 2019 01:02:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRO5+e8C+prpTM3flXyGSl8Dd3qg+ofVigRLPk6931hVNVN5Qp5ss0IpeASRZpNbVaDObu X-Received: by 2002:a63:5515:: with SMTP id j21mr2166035pgb.244.1553155355542; Thu, 21 Mar 2019 01:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553155355; cv=none; d=google.com; s=arc-20160816; b=Q97QkmVOfCUe2AFraBU21i58OOAG4JIxQuKYvXwScoTE893SMa173aTfbFh3PJnHzB yq6SfUKbq/mPUpfbSZmy7DMAbJtZTL3bmlepyrUKUec5P2wFV7iR3KKygdq862M5VAnm 1l4VFq3d/lAh4evClwub7sWnUuNa59f0kNCu6Umf1HUQSJ3PnWdHheh9y4Me8Tp+muuo lUu3eKmmye3IG5Ea6TZ0oVVc2xaPiVqzy34uXHCDDfZfA2t/uGPe2Ma85rl+NQg/NjrO +aSBGXC7wwtrrlHTWHtF5uawRN13niopBIgy0//1rzY2xOzY9BDDCvIdNZ/OB3UNxx/N 8OLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date; bh=tgOyTrhfhmplqzO0ModthNXlPxK1j2vQk66JXCg6kRg=; b=rcuhlZsRRg1T6tBBa63nzjY7Q/ZvOKcQGBIshCuW/0DQ+6N8eTXYzoRWmR1mzI51W7 oDBvVz63j7MWNNboAVYVON8+JqKvBmrh1NuUxtCCG34Kcm8hJ4wWPqSjpNpoHmwEYKbk c9hcFrJuHAdY22vxHOAXMEHVB9KqJJxIyRD8uqM7m8jDmf2ePiJGoylLNaxER0uJc72d sJVHKtqvj4ZxPsThtbt5AULB/0v3ecisyzKWXqar9kgiUadW6vInyN88feepjVgN437o sdnqq3TgKqqiJQYJ2aGgyxoAJIIVKtfkgFIk9pSyz5YahnfA2PtDiECfEcxNLzIRiV92 rZ0g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h7si2940924pfb.167.2019.03.21.01.02.20; Thu, 21 Mar 2019 01:02:35 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727875AbfCUIBp (ORCPT + 99 others); Thu, 21 Mar 2019 04:01:45 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:43402 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727870AbfCUIBo (ORCPT ); Thu, 21 Mar 2019 04:01:44 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2L7sf07084981 for ; Thu, 21 Mar 2019 04:01:43 -0400 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0a-001b2d01.pphosted.com with ESMTP id 2rc5ftu166-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 21 Mar 2019 04:01:43 -0400 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 21 Mar 2019 08:01:33 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 21 Mar 2019 08:01:29 -0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x2L81ZGS49545430 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 21 Mar 2019 08:01:35 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 526674C052; Thu, 21 Mar 2019 08:01:35 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E44354C05A; Thu, 21 Mar 2019 08:01:34 +0000 (GMT) Received: from osiris (unknown [9.152.212.21]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 21 Mar 2019 08:01:34 +0000 (GMT) Date: Thu, 21 Mar 2019 09:01:33 +0100 From: Heiko Carstens To: Masahiro Yamada Cc: Andrew Morton , linux-arch , linux-arm-kernel@lists.infradead.org, Ingo Molnar , Paul Burton , linux-mips@vger.kernel.org, x86@kernel.org, linux-mtd@lists.infradead.org, Arnd Bergmann , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, Dave Hansen , linuxppc-dev@lists.ozlabs.org, Michael Ellerman Subject: Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING References: <1553062828-27798-1-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1553062828-27798-1-git-send-email-yamada.masahiro@socionext.com> X-TM-AS-GCONF: 00 x-cbid: 19032108-0016-0000-0000-00000265702D X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19032108-0017-0000-0000-000032C08DCF Message-Id: <20190321080133.GB3916@osiris> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-21_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=508 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903210058 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 20, 2019 at 03:20:27PM +0900, Masahiro Yamada wrote: > Commit 60a3cdd06394 ("x86: add optimized inlining") introduced > CONFIG_OPTIMIZE_INLINING, but it has been available only for x86. > > The idea is obviously arch-agnostic although we need some code fixups. > This commit moves the config entry from arch/x86/Kconfig.debug to > lib/Kconfig.debug so that all architectures (except MIPS for now) can > benefit from it. > > At this moment, I added "depends on !MIPS" because fixing 0day bot reports > for MIPS was complex to me. > > I tested this patch on my arm/arm64 boards. > > This can make a huge difference in kernel image size especially when > CONFIG_OPTIMIZE_FOR_SIZE is enabled. > > For example, I got 3.5% smaller arm64 kernel image for v5.1-rc1. > > dec file > 18983424 arch/arm64/boot/Image.before > 18321920 arch/arm64/boot/Image.after Well, this will change, since now people (have to) start adding __always_inline annotations on all architectures, most likely until all have about the same amount of annotations like x86. This will reduce the benefit. Not sure if it's really a win that we get the inline vs __always_inline discussion now on all architectures.