Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2266182yba; Mon, 22 Apr 2019 03:41:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+goMW6GhjdrpreK+XcW+SzkKx+zCl7vj6U+m5mLsOTNVzRO/9vBAez2PqeL35FrxTidRc X-Received: by 2002:a17:902:f212:: with SMTP id gn18mr5909625plb.126.1555929673190; Mon, 22 Apr 2019 03:41:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555929673; cv=none; d=google.com; s=arc-20160816; b=JKooG0tAMPFRpQdd8/MGbpPrdeLTbaTsISq4ERylOYoSakN5qVQib0exeyZOf/nh8s Wa9Z0WvskbgH/Uzusnhe58yhTGUq8+5KAZSdNZ0KEj+0iCkISvvG/kc9HicHi8eNsSrp fer8bycYRHOGONnQDrW4xhAqwLdwOvdcDMt8EmEVEejxTY0UQy0T/O9KtWgfh3xSSVKk n+C18qPSBn4spbXn6MUlABn4QyICWMa2VCDsTL5poMUtDsdEcsWdc9MdgMj4OFl9UGi3 N3Isj+DadbEP6qbRpBaWIlnrQ2DCvMkxZiG01iNFy2tw14Adv82PMhmi7bWSQwGBK+eL on4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sz3E4pgdldPIX/SlGCWVkujUtXQ0huwXgSgApTywR/Y=; b=RifFsZkSrsENdeFij3Z8JVH4nSQ25sI0vQ1jIsB4VRRXf0hQCuXw/VKaNNzUt1MQRc mfrb5ItufZK1ZWjQfc+2DTsVrdfAhZ72Tg5k8WDwM3eQokyXhPCPw2FglhzCE0678i7h itOdKOPjZSkGMyO4TDkdIHg0UTc0RpHv5z3H7tlIpRX7LxcVg/FVkbGng0iwITs00uWx 18kBLTM0DXWeA1VTaiJMvjdHJLeiVMNFeMfsy+YFueoPoXbJ+k9AaOg3G+W1zsQsL1Fu OtTvkwqKGAcY3YiQZjWhI1vOucdHjxeIzKgPUNPj7l1GrPCqh649EUVnGTGbust3I4N9 kLSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="sWma/h1F"; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o9si11620685pgv.25.2019.04.22.03.40.25; Mon, 22 Apr 2019 03:41: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=@alien8.de header.s=dkim header.b="sWma/h1F"; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726845AbfDVKOa (ORCPT + 99 others); Mon, 22 Apr 2019 06:14:30 -0400 Received: from mail.skyhub.de ([5.9.137.197]:47270 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726057AbfDVKO3 (ORCPT ); Mon, 22 Apr 2019 06:14:29 -0400 Received: from zn.tnic (p200300EC2F07AE00CC11E6C5A9980264.dip0.t-ipconnect.de [IPv6:2003:ec:2f07:ae00:cc11:e6c5:a998:264]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 1EAA81EC082D; Mon, 22 Apr 2019 12:14:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1555928067; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=sz3E4pgdldPIX/SlGCWVkujUtXQ0huwXgSgApTywR/Y=; b=sWma/h1F7e6UVTopq1w9LG7G7cMAoJT6cxRkYHGw5ZeuYoWcR9kGCDOMy+Tr9msUZrPVG7 Vt5CfoFUZ0DRtijdvo/zaa4UO/AJpqKXbGr/zO1vduQxWjlxU0EhyVukdEEPoCe8QyUhO5 goRUd3FSGJHbd34nC/yvDhfNBJAZq14= Date: Mon, 22 Apr 2019 12:14:20 +0200 From: Borislav Petkov To: Masahiro Yamada Cc: Andrew Morton , linux-arch , linux-s390@vger.kernel.org, Heiko Carstens , Arnd Bergmann , linuxppc-dev@lists.ozlabs.org, x86@kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Ingo Molnar , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Christophe Leroy Subject: Re: [PATCH v2 11/11] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING Message-ID: <20190422101420.GA21457@zn.tnic> References: <20190419094754.24667-1-yamada.masahiro@socionext.com> <20190419094754.24667-12-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190419094754.24667-12-yamada.masahiro@socionext.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 19, 2019 at 06:47:54PM +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. This commit moves the config > entry from arch/x86/Kconfig.debug to lib/Kconfig.debug so that all > architectures can benefit from it. > > 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 for v5.1-rc1. > > dec file > 18983424 arch/arm64/boot/Image.before > 18321920 arch/arm64/boot/Image.after > > This also slightly improves the "Kernel hacking" Kconfig menu as > e61aca5158a8 ("Merge branch 'kconfig-diet' from Dave Hansen') suggested; > this config option would be a good fit in the "compiler option" menu. > > Signed-off-by: Masahiro Yamada > --- > > Changes in v2: > - split into a separate patch > > arch/x86/Kconfig | 3 --- > arch/x86/Kconfig.debug | 14 -------------- > include/linux/compiler_types.h | 3 +-- > lib/Kconfig.debug | 14 ++++++++++++++ > 4 files changed, 15 insertions(+), 19 deletions(-) Acked-by: Borislav Petkov -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.