Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2112323ybp; Sat, 12 Oct 2019 04:25:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWbHWvUWs0/VPlSk5hYluF26oTHuySITFCtX/Hlfyvky2dMu+zPxTwpUAk5VnXNENNp4oI X-Received: by 2002:a50:8f03:: with SMTP id 3mr18899821edy.195.1570879510807; Sat, 12 Oct 2019 04:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570879510; cv=none; d=google.com; s=arc-20160816; b=jazBnbiErZ/OHe2j9rpcxH903cgTGE/s91mPx/7L/x/ErrDLAEC5/f9JdyniBHgARd Akg/YYYoNQBZ8rRhDFXllSNG84nLKcxOjJMbgk9hSjjJv3H9dW4G1MvSgK/qpLVjC1qx 1LInkL3vns0oY9okRpfTTjwEP0Nm66jY6XqSv/DoAzuHYZoeZg1w6E55rRz+KbItHp2K B6xqOjXgHR4hk7tsW/rcX8yFIH1X1Ajf2uK5QwxaCbsDK+znS3qH0Gxe7hl0OhCWFdUw JvScz6aNUb0c4U5RogROEj3LDVh/2JdqlZMsiPI43p7O05rPu20Jfuo7vbMHdEphlANk in6w== 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:dkim-filter; bh=QIQWbVFMywEGzrVFv7ncajs828mx8ZAypZawE3JRNnA=; b=Fc+tLZVXJzouNEH/riNwb4zplDq0FbM+l+mRaIx0uz8tnFdwCN/FYKae/fgAIQ9TsO QWoW1iRQ5AzmhVNcXmugex+I70N4g5eJQ9fsS6GUP4p51cA0qT/6g2vSzKq3DRmk3zWC DsW67n8Nv3zd5ryOBcbGR5cfuwTfKRfwbM+vLUR2u7E3cWMh9qZB4p1jclv+v5vDjE6Y sbuQ44zmPzgYH7c6T1NXCYP3lYBdufVLl/M6SxKkwU6MisV7cFiSN7YsPQF/jek94Kye Ddkqrj8FVvNb2Zsv4MPIzkaNCy9D3+172slX3z2javwGwphj2ouz6mPRhey4I7gfsy8l gdBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=wUiDd5ik; 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 b42si7613029edb.11.2019.10.12.04.24.34; Sat, 12 Oct 2019 04:25:10 -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=wUiDd5ik; 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 S1728714AbfJLLNg (ORCPT + 99 others); Sat, 12 Oct 2019 07:13:36 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:53079 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbfJLLNg (ORCPT ); Sat, 12 Oct 2019 07:13:36 -0400 Received: from mail-vs1-f51.google.com (mail-vs1-f51.google.com [209.85.217.51]) (authenticated) by conssluserg-02.nifty.com with ESMTP id x9CBDFgi027307; Sat, 12 Oct 2019 20:13:15 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com x9CBDFgi027307 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1570878796; bh=QIQWbVFMywEGzrVFv7ncajs828mx8ZAypZawE3JRNnA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=wUiDd5ikCr1JT2Yxc8XHCJxQQ7iwviMZJG/IOTrYxVuuQgdsur+sx2xBB1eYo4rtM eCGR7bnd6kLscEH67zamCqWXt+fz9Je68JdOf2+hENU7TUExvoT0MAUDOVPtrURzy1 XPV3jPwpXdocP6ipUYDc1c03IGGsTzouSN2ST4Hzn1QcZ1srv9uRu2rK3OrNvuJb0v 03yTUSstvsDe/N0H/7l8aVQHpF+eJwbweZRrBVDQW7PlhC+d1zIr7vMJ+g+xixUHXr PnE+gRyY0wrQUOnIXmcaaBvjC7VNmt/D8wUq054V4+zVxB/lY2JVdHM2GV6epkxRHO OA47ecmgP6HIQ== X-Nifty-SrcIP: [209.85.217.51] Received: by mail-vs1-f51.google.com with SMTP id z14so7882474vsz.13; Sat, 12 Oct 2019 04:13:15 -0700 (PDT) X-Gm-Message-State: APjAAAVEEZkfFUK/zsOLqK1PTDOkFKykKnadpV6/fHcCQo1QGZgdocPI hzWDpi2iTZDrnqqPpIaKC9A7heKaPrIFbqqFeWg= X-Received: by 2002:a67:ff86:: with SMTP id v6mr11732128vsq.181.1570878794590; Sat, 12 Oct 2019 04:13:14 -0700 (PDT) MIME-Version: 1.0 References: <20191001092823.z4zhlbwvtwnlotwc@willie-the-truck> <20191001170142.x66orounxuln7zs3@willie-the-truck> <20191001175512.GK25745@shell.armlinux.org.uk> <20191001181438.GL25745@shell.armlinux.org.uk> <20191003163606.iqzcxvghaw7hdqb5@willie-the-truck> <35643c7e-94e9-e410-543b-a7de17b59a32@gmx.net> In-Reply-To: <35643c7e-94e9-e410-543b-a7de17b59a32@gmx.net> From: Masahiro Yamada Date: Sat, 12 Oct 2019 20:12:38 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly To: Stefan Wahren Cc: Will Deacon , Linus Torvalds , Geert Uytterhoeven , Nick Desaulniers , Russell King - ARM Linux admin , Nicolas Saenz Julienne , Andrew Morton , Ingo Molnar , Borislav Petkov , Miguel Ojeda , linux-arch , LKML , Catalin Marinas , 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 Sat, Oct 12, 2019 at 7:21 PM Stefan Wahren wrote: > > Hi, > > Am 03.10.19 um 18:36 schrieb Will Deacon: > > On Wed, Oct 02, 2019 at 01:39:40PM -0700, Linus Torvalds wrote: > >> On Wed, Oct 2, 2019 at 5:56 AM Geert Uytterhoeven wrote: > >>>> Then use the C preprocessor to force the inlining. I'm sorry it's not > >>>> as pretty as static inline functions. > >>> Which makes us lose the baby^H^H^H^Htype checking performed > >>> on function parameters, requiring to add more ugly checks. > >> I'm 100% agreed on this. > >> > >> If the inline change is being pushed by people who say "you should > >> have used macros instead if you wanted inlining", then I will just > >> revert that stupid commit that is causing problems. > >> > >> No, the preprocessor is not the answer. > >> > >> That said, code that relies on inlining for _correctness_ should use > >> "__always_inline" and possibly even have a comment about why. > >> > >> But I am considering just undoing commit 9012d011660e ("compiler: > >> allow all arches to enable CONFIG_OPTIMIZE_INLINING") entirely. The > >> advantages are questionable, and when the advantages are balanced > >> against actual regressions and the arguments are "use macros", that > >> just shows how badly thought out this was. > > It's clear that opinions are divided on this issue, but you can add > > an enthusiastic: > > > > Acked-by: Will Deacon > > > > if you go ahead with the revert. I'm all for allowing the compiler to > > make its own inlining decisions, but not when the potential for > > miscompilation isn't fully understood and the proposed alternatives turn > > the source into an unreadable mess. Perhaps we can do something different > > for 5.5 (arch opt-in? clang only? invert the logic? work to move functions > > over to __always_inline /before/ flipping the CONFIG option? ...?) > > what's the status on this? > > In need to prepare my pull requests for 5.5 and all recent kernelci > targets (including linux-next) with bcm2835_defconfig are still broken. > > Stefan Russell King already applied the fix-up patch. https://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=8908/1 So, (I hope) the breakage of bcm2835 will be solved in mainline soon. -- Best Regards Masahiro Yamada