Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2980067img; Mon, 25 Mar 2019 00:56:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcObfW0/IQ7w69GUc9YbwIyL/tRTg8NvtW1WbudaeMDQ+rP7LRJQPQPoxm6/Uv+B+4E01z X-Received: by 2002:a17:902:6804:: with SMTP id h4mr23886135plk.115.1553500609530; Mon, 25 Mar 2019 00:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553500609; cv=none; d=google.com; s=arc-20160816; b=duKzcRpKHfMX3htNLjeZRTjvJ5u/AWoLd+T7h2bXfEmLjUdcGBoMT/F3YmLNLT23fS SmMfj86rJhw336+gbhtohH94r+DmQm8QpDRabE//Lc7LZKsXcsswJ6u8T+C2hH+//sfx hRSFFWX6AGBvANi5liwkGN0jOv5ZXah4614PedElFvhoxapUvX3dppEYxRLFQMkWOYvx rNysmh/Hm/p9bj03fIuDuLh6DlducD+sytvLn40xfWa7jvdvaWg2VhphBpG9G4JsOpcJ 4BemZIESDulGXvXAL2JcSRuJoGHCOFfCOKum/eWGI2G/8MR+3D/5wKlS6u4x9tYy25BJ UY2g== 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=MNSR/rEIOcAArewi0EIYzwa6W/vsUcqG4KdVofhTqSQ=; b=s0D1l8uqeYK6Utj0SPCJlCnTo1GZd+05vRx6IDZB+9/eO8p7yEEyqH5EW6U3liI+Pb JY8GEF103SgUuQi2flek3ld+HfhLcYyTpxNWBOaQsXFGKQ5nfQXNBQGe33atqjbehZD5 FJFbIE3C8fwkegIu+Wk3RJY4VeuVpOeAWiVfdzSjX2vOFWDa7CnOASzrQBseV3jUlyan xXKHXVDUHMr8EW99gu9I10yM2OiUBsvqdNMagML/5yBm2S9hA6J8dnDrRsl1gYu/z7k/ IXYo2oocqIdA0yoYjKwJY4lARwv/3fxkKmKotPHfDfsf8jW6tzQpO5cWDIXPT6Rw1Bl5 XOHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ZyjtIOVp; 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 d23si2334457pls.151.2019.03.25.00.56.35; Mon, 25 Mar 2019 00:56:49 -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=ZyjtIOVp; 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 S1729902AbfCYHzq (ORCPT + 99 others); Mon, 25 Mar 2019 03:55:46 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:56128 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729845AbfCYHzq (ORCPT ); Mon, 25 Mar 2019 03:55:46 -0400 Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com [209.85.222.48]) (authenticated) by conssluserg-05.nifty.com with ESMTP id x2P7tN2j014159; Mon, 25 Mar 2019 16:55:24 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com x2P7tN2j014159 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1553500524; bh=MNSR/rEIOcAArewi0EIYzwa6W/vsUcqG4KdVofhTqSQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ZyjtIOVpxyBOn4a6GEYMaFwQC4gc8MCYc/7NgGdBpVa2FuzM12sLcCIlTGJy1MjVG yVehg7hPuPh/1x0qXuamzJ1Y4wpJ17F/dkiaeG4rEtT+ju726ZJNrToCekEjCqdAA9 DA1eP1H08jc8sFzbUKRHHjZBOG8NwMNNH4SBy5MglHwghLHDHNIMkuwYTGJzqteZ+j xyuox9+hVSVVG7sViwPAS/HdEnDsye6OVQfv4MwXZscFM5Eqmjm5dXac2F1ra8FVRY F9Z/w5/abZ9TQRC3oKrSwGy6uQljW+Z416w1T429hpv0gyVgqArEPkMd55ng9LMoE+ SeleNW2vuSs0g== X-Nifty-SrcIP: [209.85.222.48] Received: by mail-ua1-f48.google.com with SMTP id x1so2675303uaj.4; Mon, 25 Mar 2019 00:55:24 -0700 (PDT) X-Gm-Message-State: APjAAAWf9ZqOA9seiszlEaA4AbQF4HBqoWf4KEqCT+uJEkxoCiJfn4RB xQpk0vnnaPZ2kAxG1bPYIsYdkNWjw3nmC7AEVQA= X-Received: by 2002:ab0:7493:: with SMTP id n19mr13096065uap.121.1553500523266; Mon, 25 Mar 2019 00:55:23 -0700 (PDT) MIME-Version: 1.0 References: <1553062828-27798-1-git-send-email-yamada.masahiro@socionext.com> In-Reply-To: From: Masahiro Yamada Date: Mon, 25 Mar 2019 16:54:47 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING To: Arnd Bergmann Cc: linux-arch , linux-s390 , Dave Hansen , Michael Ellerman , "the arch/x86 maintainers" , linux-mips@vger.kernel.org, Linux Kernel Mailing List , Paul Burton , Ingo Molnar , linux-mtd , Andrew Morton , linuxppc-dev , Linux ARM 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 Mon, Mar 25, 2019 at 4:33 PM Arnd Bergmann wrote: > > On Mon, Mar 25, 2019 at 7:11 AM Masahiro Yamada > wrote: > > On Wed, Mar 20, 2019 at 10:34 PM Arnd Bergmann wrote: > > > > > > On Wed, Mar 20, 2019 at 10:41 AM Arnd Bergmann wrote: > > > > > > > > I've added your patch to my randconfig test setup and will let you > > > > know if I see anything noticeable. I'm currently testing clang-arm32, > > > > clang-arm64 and gcc-x86. > > > > > > This is the only additional bug that has come up so far: > > > > > > `.exit.text' referenced in section `.alt.smp.init' of > > > drivers/char/ipmi/ipmi_msghandler.o: defined in discarded section > > > `exit.text' of drivers/char/ipmi/ipmi_msghandler.o > > > > > > diff --git a/arch/arm/kernel/atags.h b/arch/arm/kernel/atags.h > > > index 201100226301..84b12e33104d 100644 > > > --- a/arch/arm/kernel/atags.h > > > +++ b/arch/arm/kernel/atags.h > > > @@ -5,7 +5,7 @@ void convert_to_tag_list(struct tag *tags); > > > const struct machine_desc *setup_machine_tags(phys_addr_t __atags_pointer, > > > unsigned int machine_nr); > > > #else > > > -static inline const struct machine_desc * > > > +static __always_inline const struct machine_desc * > > > setup_machine_tags(phys_addr_t __atags_pointer, unsigned int machine_nr) > > > { > > > early_print("no ATAGS support: can't continue\n"); > > > > > > > > > I do not know why to reproduce it, > > but is "__init __noreturn" more sensible than > > "__always_inline" here? > > It's in a header file, so it has to be 'inline'. We could make it > static inline __init __noreturn, Yes, I like 'static inline __init __noreturn' > but I don't see an advantage over > __always_inline there. __always_inline takes away the compiler's freedom. I'd like to leave it up to the compiler where possible. The inlining decision may change depending on -O2, -Os, -Og(which was rejected) or whatever optimization strategy. > > Arnd > > ______________________________________________________ > Linux MTD discussion mailing list > http://lists.infradead.org/mailman/listinfo/linux-mtd/ -- Best Regards Masahiro Yamada