From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E612C43381 for ; Mon, 25 Mar 2019 07:57:36 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0905B20830 for ; Mon, 25 Mar 2019 07:57:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=nifty.com header.i=@nifty.com header.b="ZyjtIOVp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0905B20830 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 44SRSY4gSzzDqF1 for ; Mon, 25 Mar 2019 18:57:33 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=softfail (mailfrom) smtp.mailfrom=socionext.com (client-ip=210.131.2.82; helo=conssluserg-03.nifty.com; envelope-from=yamada.masahiro@socionext.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="ZyjtIOVp"; dkim-atps=neutral Received: from conssluserg-03.nifty.com (conssluserg-03.nifty.com [210.131.2.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 44SRQY3pK7zDq5v for ; Mon, 25 Mar 2019 18:55:48 +1100 (AEDT) Received: from mail-ua1-f44.google.com (mail-ua1-f44.google.com [209.85.222.44]) (authenticated) by conssluserg-03.nifty.com with ESMTP id x2P7tN1S016135 for ; Mon, 25 Mar 2019 16:55:24 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com x2P7tN1S016135 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.44] Received: by mail-ua1-f44.google.com with SMTP id c13so1263084uao.12 for ; Mon, 25 Mar 2019 00:55:24 -0700 (PDT) X-Gm-Message-State: APjAAAXeQD21FJC1ClTiWfrlsXv2eHOubh7srUqIXsVk3fCfY4t5CN76 GV6uDVfPEuPHB7zrr2QAIq5oOUOQAGUgj5GdDqM= X-Google-Smtp-Source: APXvYqyhekNOWsqEE0/Be7lm9WkHu4bw/ySyZW5oHyXthk2oN26mxaoB5RYhMA6O73DJhsq2BgV3+fx1ravROmYHO3M= 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 Content-Type: text/plain; charset="UTF-8" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch , linux-s390 , Dave Hansen , 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 Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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