Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp60720ybp; Thu, 3 Oct 2019 10:10:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPvl71MxM9h6INkAhpuUFF57P9RgQYefDZTQJ123N5GAxm5sMfXFci6tirvVr4O8d30eEK X-Received: by 2002:a50:e791:: with SMTP id b17mr10427574edn.11.1570122627707; Thu, 03 Oct 2019 10:10:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570122627; cv=none; d=google.com; s=arc-20160816; b=Ll/Z0sI6pYo3JIqQTMn8EL08nJ/ul2GNi5cr0fJAaZuUN42ER+40rdpO3qZ6/cP/k+ GzGkLKnMkmeLGMBBfloiIo2ZuFWBA3rvMGDsRrlvbmleC9c209uRXXKg5Nwqd5PuG6xd vruxgkSbRUEk8L1V+50j7qELjs8YPgmDnBWCtdr5z7W02C8OWJyU1W2U7ZtRmOYo6DHy IYH0buYsQx4w8eygPmhUunB7ZuwU0tlGMZg7eoMWXMtzurbY0UZ2z0cBaPaRtEV3P92T y7ay/RPnNE4+/Rhv1jEZAvsFuyHK1iCi9mHMMrALQe4zTJ6DBHQURu5aa2jXT1NE94W6 gkQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=xGPNBFqVYtxez447o7VfzpEEdWGUXuNgcxnMZZtHxhw=; b=Ud7JA9NSO8mkssAT42YKTIFTblZZD0sM3pblhM16ZErh9q3IAioCwQkZ74Zzhjhx4Y vA72eb4XLNVqFZuaMqaAd1BAPU62vAwmm6llhhXJyCm3a25gLYa2zOJeXa6s8jkO3ah+ AMuWzjyr3PUB9bDq6t9o/sQ8grMSKvfhw/YZ2o9KerFS9vohv6QANBGnd84tkygEYC2G D4y0TvAHT5TJ3MMqKcZvUGBej/0VAm4GFA4mPaA2Mh80Z6dIDZaJe7/4RbnB9geCHsd0 1nfCoxRQEqHjfWnARD1hP7Q/5zetclSUGgcJxwauDur2shGnJ0jIw3pKu6oDy4Tnua2V zhcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=JQlxhcyH; 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 g11si1574438ejj.11.2019.10.03.10.10.02; Thu, 03 Oct 2019 10:10:27 -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=@linux-foundation.org header.s=google header.b=JQlxhcyH; 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 S2393438AbfJCRIe (ORCPT + 99 others); Thu, 3 Oct 2019 13:08:34 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:33398 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393437AbfJCRIc (ORCPT ); Thu, 3 Oct 2019 13:08:32 -0400 Received: by mail-lj1-f195.google.com with SMTP id a22so3643395ljd.0 for ; Thu, 03 Oct 2019 10:08:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xGPNBFqVYtxez447o7VfzpEEdWGUXuNgcxnMZZtHxhw=; b=JQlxhcyH0jHwarYabbpi6wNpJW+TQGKZ3Q/o2mSONQp+edqEcUDbfc+bZRMV+49X8b 6iqsJ6W2xVarc2Qbqm9lYLbIQOaubfS2b2d2RR4HW+NziK3KAuGvVuwqS5GOwXs3hULK jTZNUAkzsyFNJMvYZMy8abMpYXNOFhEkahnBA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xGPNBFqVYtxez447o7VfzpEEdWGUXuNgcxnMZZtHxhw=; b=oYfeS1MOJvU0l7wacN3BzVdxj//AJwgyhCDy1xddHhvbdL9ThV2VFwtyeGKRxMWGBD aCt8ub9Ivuk7/wsBif3iIFS7Vcl66Wctp8vY5ypNesSB8jlfui5nJwWds2TTo5ZUX48Z Gz+vK8l1sY7+neYucPpftln7zGEvPZxbTcYC5yzAaLM1KsvjRUKcLRjwxDHEu62OXoOm Pr5GUW0WHU7eNhVBgPnszhJF9T4YyEHICyCCmHLCZW/8o9zyB7EMUPZ3F5JIb1Ogj0/k xVgq92v342emlgxHnbztP8NzqNxPvKl2Qc+wP8wKon1zC8l4OtaFSAjE8LNyRnyyZSpD jAxQ== X-Gm-Message-State: APjAAAW/9v3Z4smIzWYpdmKvy8xRjI0t+GQ1qgK0JnoKWyX+wduItw9J wsbqXVe/Ne9EDO89l9h2tUIged/juKM= X-Received: by 2002:a2e:8199:: with SMTP id e25mr3993242ljg.246.1570122509079; Thu, 03 Oct 2019 10:08:29 -0700 (PDT) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com. [209.85.208.169]) by smtp.gmail.com with ESMTPSA id g27sm658951lja.33.2019.10.03.10.08.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Oct 2019 10:08:27 -0700 (PDT) Received: by mail-lj1-f169.google.com with SMTP id n14so3579022ljj.10 for ; Thu, 03 Oct 2019 10:08:26 -0700 (PDT) X-Received: by 2002:a2e:86d5:: with SMTP id n21mr6759265ljj.1.1570122505822; Thu, 03 Oct 2019 10:08:25 -0700 (PDT) MIME-Version: 1.0 References: <20190930112636.vx2qxo4hdysvxibl@willie-the-truck> <20190930121803.n34i63scet2ec7ll@willie-the-truck> <20191001092823.z4zhlbwvtwnlotwc@willie-the-truck> <20191001170142.x66orounxuln7zs3@willie-the-truck> <20191001175512.GK25745@shell.armlinux.org.uk> <20191001181438.GL25745@shell.armlinux.org.uk> In-Reply-To: From: Linus Torvalds Date: Thu, 3 Oct 2019 10:08:09 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly To: Masahiro Yamada Cc: Geert Uytterhoeven , Nick Desaulniers , Russell King - ARM Linux admin , Will Deacon , Nicolas Saenz Julienne , Andrew Morton , Ingo Molnar , Borislav Petkov , Miguel Ojeda , linux-arch , LKML , Catalin Marinas , Stefan Wahren , Kees Cook , Arnd Bergmann , clang-built-linux Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 3, 2019 at 10:01 AM Linus Torvalds wrote: > > If this is purely about the fact that x86 is different from other > architectures, then let's remove the "compiler can do stupid things" > option on x86 too. It was never clear that it was a huge advantage. Side note: what might be an actual advantage would be to have a mode where you see when the compiler would choose to not inline things. Maybe we have things that are marked "inline" that simply shouldn't be. We do tend to have this history of adding small helper functions to header files, and then they grow and grow and grow. And now they shouldn't be in a header file any more, but they still are. So having a "compiler doesn't want to inline this" flag might be useful for finding those, but it might also be useful for people looking for what triggers bugs. But honestly, the last time I saw somebody argue for "I don't want inlining", it was the broken "I want to compiler the kernel with no optimizations so that it's easier to look at the resulting code". That was just a _bad_ bad patch. And if it is concerns like that that are driving this "compiler doesn't have to inline", then we should stop it immediately. Linus