Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2967399img; Mon, 25 Mar 2019 00:33:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQZFhAqKq1o5tF5dLvZ79Fsvp9lMeOTmjgV2oK+MI1x1DvWbJ5SgBjU3jl4H+Ux2F7tElk X-Received: by 2002:a17:902:403:: with SMTP id 3mr23606491ple.48.1553499237814; Mon, 25 Mar 2019 00:33:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553499237; cv=none; d=google.com; s=arc-20160816; b=bJJeizwzsdB8fwDxHZnkoLi6QoFmi3kwvhXpiG9A4Hfd4DIlBVrqs1KzCMajUjlBuX dALf+09APy/ea54mw10negghY+0TMvocmhTi4J321Y49XE8dCu4yhzXFyKmhkqmbOcAk 1ZR6oI3uW6LHukhSS8NaRe2DOu2cIJCdzWB/wDGXB8FKNESJFZF7BAV50aQxgCqw4mBG RSgLVHvM5xyWoZfebK4T9KsAZiLwRdwjKrB0qY0sJKutqnCGoMVS91/aRob8ODFpOaZ0 j+Sg6VvJGvF83bRXoNRAwocVx2vA+mOL8DP8/1hR97GWDSiNyOp22KhElE9mNAFllblN a7cg== 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; bh=1MqoVO4GdF3K6sehfp7D7I5RtwnxGYYTVEiIQ0OI5sQ=; b=P9qI+w2aGGSPvQ9AoZavTTpmazV+D9rzVDir1NRhv8KAz1OWprkQHVqWXu430RBsy6 b2jZsEpnNz6gCxqenPTWAPpPXJk83p2sWXYIVCd/06fepsiJ9aOiqUfKj4xosFr73aQX POcTkCu5bm+1TMo4HBxbjKyJMdwfmGXCTp6EQJYvmAJeNmM1AFhIY40agIKmUJU/LPZf kikXXShDIOop+yj15JbXmMcwappRcF445VNnEcX+l3lJGe05BtB4zb9cp9yUuox8Vg5j An2jz/fCoC6Kvgj2fxRDHLwUfXSc7USCXG8Qb9QfDuWvYxEYuWnhmqpLMZoS4bUPU76S 9lSw== ARC-Authentication-Results: i=1; mx.google.com; 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 23si11427158pfi.106.2019.03.25.00.33.42; Mon, 25 Mar 2019 00:33:57 -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; 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 S1729842AbfCYHdH (ORCPT + 99 others); Mon, 25 Mar 2019 03:33:07 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:35984 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729720AbfCYHdG (ORCPT ); Mon, 25 Mar 2019 03:33:06 -0400 Received: by mail-qt1-f194.google.com with SMTP id y36so9167556qtb.3; Mon, 25 Mar 2019 00:33:05 -0700 (PDT) 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=1MqoVO4GdF3K6sehfp7D7I5RtwnxGYYTVEiIQ0OI5sQ=; b=KDHhDkNPbfPYTa179Umicum9j8+V8SyYignlqvG+6M226VYe44ZLh94flHfli+mFL6 J2UxIqyLWYJT51nB1KU/q0l79FIZzzAGrUcMz5fmIiLAXm6iKIV2ih7gMK6w5tx0DWtp U0NRC7ZQFSVEUg8fevu0M7+oZkNb8zTwJW4/lPEuh3rYWEuigF5I5fUMslyLSxo3uYKs jB1BD1igL7aK5UrivwU8wf1oEMRxgnzb2c3cWQZFjosJ3JgWbQWj3gdYKkL3Oq5nqWy3 Qw7MTV+NKWr8G+QzK/cH2eo4Q7jFUTXyl6XdNgow/cEMse6vXsRU0xghQmf8NbRcVjlx nBlA== X-Gm-Message-State: APjAAAWH/QcGDgB5Bi/+Zu2d7s9lEi4UqqpQZLmYOS0N9mY89ZTPOE9r Cli6zcrePqyyWEtdaHKcI8/60Ta8DvAbOE+OjTc= X-Received: by 2002:a0c:9487:: with SMTP id j7mr18527311qvj.180.1553499185439; Mon, 25 Mar 2019 00:33:05 -0700 (PDT) MIME-Version: 1.0 References: <1553062828-27798-1-git-send-email-yamada.masahiro@socionext.com> In-Reply-To: From: Arnd Bergmann Date: Mon, 25 Mar 2019 08:32:48 +0100 Message-ID: Subject: Re: [PATCH] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING To: Masahiro Yamada 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 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, but I don't see an advantage over __always_inline there. Arnd