Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp583100yba; Thu, 18 Apr 2019 06:22:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxracI3R3Rdg9zoe6Z1eXoDVGxvd5Cx4JjoNKymi/xDpSbQifWyLZdsQq298HemNPg5tz5X X-Received: by 2002:a17:902:407:: with SMTP id 7mr96827369ple.62.1555593743510; Thu, 18 Apr 2019 06:22:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555593743; cv=none; d=google.com; s=arc-20160816; b=Jr6t40lxfrsged7D/3fJV641lQaqMB44SiUZ87Zw+oO/wNJsOIhBT8dU/hZ4bmrHTx oJFEnK80Xdyim+E2xh2aEx+iRLvcWC4TKeSzxqk7UUvF0gvVOAdcUfxyVuH6kSChriTs alBHmDZcoA97Md72PjgMXtvA4bQe6qZYVwfIgKzbnVzwVSg7oiMEYb7PNf2ZR0uWirc8 nOVIbseFuC0qyRYXpoE/Zf/+5TP4dOrfbh8udOMdHvLkg0jkMSbs2SjP7rmhB5AVui28 hYRlQB4kV19pnwzqJwHs71jiF5gXu7fQyqulZYXBEdLatRZMH5iNochO3nA/1Obs7pW0 igEQ== 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=XQCHoAAFT5Z9bDRSYOBbJEBinvShFFVBSkUMOBYi/Tc=; b=H+BuhQ40jxLqeJaQwvcrEYdfh90sj52lWw7XNTvsfmMMiMJTnIto2r7+xRRIt8FXiY iSB3aYUvfRotF5kVrtMuTpd2c3wSOdhbzjiHwprJU7v41Zm2DwJwxgtTEWv7y6d3oJW9 x6rxmWZR+oIkTGIrBcWsJCOgq19bp/lbqkrvovrhaRD4iW3FM2xjZnexg51i1siZeHkT eNbVlGPPHTBcSv+7sDn/jLqPJrwwPHs5q3vq6zWa08Kosjd6Ya2dXawLDBlMvK7RCBXt TGlkril/14j8qcy6IqNxAwNTMmX/Gn08qYdovCuQk5G/COeRhWoy7E09iI+U2h7XvAks x7SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=OBVI3mxB; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z19si625029pgv.146.2019.04.18.06.22.08; Thu, 18 Apr 2019 06:22:23 -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=fail header.i=@gmail.com header.s=20161025 header.b=OBVI3mxB; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388973AbfDRNUx (ORCPT + 99 others); Thu, 18 Apr 2019 09:20:53 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:33744 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727807AbfDRNUw (ORCPT ); Thu, 18 Apr 2019 09:20:52 -0400 Received: by mail-wr1-f68.google.com with SMTP id k1so1780371wrw.0; Thu, 18 Apr 2019 06:20:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=XQCHoAAFT5Z9bDRSYOBbJEBinvShFFVBSkUMOBYi/Tc=; b=OBVI3mxBq7hJJ7GMq63UZAs5eDSNSQHVMQhmsRcAzOUlEvQybBl1shmYvk0PdKKK5/ 0AT3aJ9peUWu6DDE2+uo/dmc7PEUAwXzlwkLRi6iJQAHlOzIPupYPzVxLR6BgJ1aoE8/ PaA7Uf6uU6WdoZEbRyIT6Bl8wnNCRk7UlthLWf1af5Bs/hdbglOXeyfrugNoRNZbu+ve K6oedra3Ss9p/ADCD3fv4vNKJ1x2sNjXk8UGfrCFuaZT7pQkl/USfphp6YQaSoQn1qZZ OJjlYQjkhJvXBlSdRxhmEm7YT/CUd/7rFK/KQcjGeGoFbZTeIJoWsQ6fLUy7H1fnUd8s b6mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=XQCHoAAFT5Z9bDRSYOBbJEBinvShFFVBSkUMOBYi/Tc=; b=HyAedJ13BSndJyNGMfLKRQ35i4vThDLmzI3hShhbYtODM/y/VId9Kt9S22Y0acdgQ8 n4ii6hTWqXEbmR5bLiMYB5V4ulQa9fGzkY4arMvxhAsb1xmZK/0mASRwxmZBoo+XEH9L Qhr8qOwzc/jg+w2Yxh3z8ysyUeKShRMcPFoBYBi+EVYmPUsmRwlN+tTJJPmYhkRcN4as DUX+Z9/7d1Ok51P7/I1foRT2T/dKWcnnSvhKFZMrgEr2gXeooYRh81X/hgDXv9CHpzfE aWCmxJp88yuOrrjzl4SqfyNKbWd5DgbCFJbXXlmRntbO2mzlJpMDUD/hm8tfWv0quQiZ 3epA== X-Gm-Message-State: APjAAAUBXnIn3sfLDDOVXwY6OkmT5h2hykRKX/nOhWUTWFcxRZEX1BrC P1qc0nUQiLwzTn9jrrndrEQ= X-Received: by 2002:a05:6000:1111:: with SMTP id z17mr282634wrw.103.1555593650693; Thu, 18 Apr 2019 06:20:50 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id r18sm3417736wme.18.2019.04.18.06.20.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Apr 2019 06:20:49 -0700 (PDT) Date: Thu, 18 Apr 2019 15:20:47 +0200 From: Ingo Molnar 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 Message-ID: <20190418132047.GA21430@gmail.com> 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> 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 * 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 > > This also slightly improves the "Kernel hacking" Kconfig menu. > Commit e61aca5158a8 ("Merge branch 'kconfig-diet' from Dave Hansen') > mentioned this config option would be a good fit in the "compiler option" > menu. I did so. No objections against moving it from x86 code to generic code. Thanks, Ingo