Received: by 10.192.165.156 with SMTP id m28csp537405imm; Wed, 11 Apr 2018 03:23:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx48xxryTHSGwJwtWd9rOBrnwYMiqTxUGkXGeKZ7x/nv3TCc6xD5baq6CfhgLEsKbgb0lAXlh X-Received: by 10.98.76.68 with SMTP id z65mr3508734pfa.181.1523442205336; Wed, 11 Apr 2018 03:23:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523442205; cv=none; d=google.com; s=arc-20160816; b=KFyBba+BuM3lbsy/1Y3bj8P/qI7y5lISjKv/7F7/0StEzmIZybYzue9a4mZuSRV39p Lz4nWDLKFz6c0bkxdYlSgoNYlMS9HxxYXzfRnRzxRloeGJRLs9eYalhutSILdg6aw/vE WgcRyIjpyYwu6/v1C8S1EK2azPqdspCXbXVlrBVPr2aKZ34FPq/AEUTYYYO+JuumP6TN V959v3KQvcXc8bG26gIJFKKCUizYg2Imy/93kYM6A/u870Sfrx4r1dmx5Vb1j5/cHNS8 nQ5xZ7AG0p5aopgYLDWG53MRs3ChoplekFr2F5iy2cJYwAO7/56OZ28jjsBu5shUBRyG IfSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=OUrRIQsY8tkwAujTXhap+Nj36LA0wO7PjRd6A0SVmwo=; b=Xi/ydL9Hfoy5q2E78FqiWwVO05jWdjFPAuoCg5ATgQEItdIudaR/6yf7EsemMD6N8d gywTfkyCzzp74ryOVHURxZc+tO8/Cr7yQVCKq2J3PncxBdLRcL9+qTv6VJEXI3bBQuRh lG3/bsONobOJAeEMygJgjEeUEdgZNzuRa4TD4np4fiHBTv6kMsPfCcjYVQap1tuMM4y9 /FmeDa731mraOd4NZtM20CTI3bhKfwDpaisP6GjfMbFpdwkX53jN9xYXfKVTaGAijdKW ne6B5RNaFqLcOqmJelxd9FSlfARrqrV3ia5sHuNR02gByyILJHP72ER73yaAP7a8S+Q8 ryXw== 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 x10si523660pgo.58.2018.04.11.03.22.48; Wed, 11 Apr 2018 03:23:25 -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 S1752753AbeDKKTm (ORCPT + 99 others); Wed, 11 Apr 2018 06:19:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:42548 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750819AbeDKKTh (ORCPT ); Wed, 11 Apr 2018 06:19:37 -0400 Received: from saruman (jahogan.plus.com [212.159.75.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3BF6421785; Wed, 11 Apr 2018 10:19:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3BF6421785 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jhogan@kernel.org Date: Wed, 11 Apr 2018 11:19:27 +0100 From: James Hogan To: Arnd Bergmann Cc: "open list:RALINK MIPS ARCHITECTURE" , Paul Burton , Maciej Rozycki , linux-arch , Andrew Morton , Linux Kbuild mailing list , Vineet Gupta , Mikael Starvik , Jesper Nilsson , Tony Luck , Fenghua Yu , Geert Uytterhoeven , "David S. Miller" , Christopher Li , Thomas Gleixner , Peter Zijlstra , Kees Cook , Ingo Molnar , Josh Poimboeuf , Will Deacon , "Steven Rostedt (VMware)" , Mark Rutland , "open list:SYNOPSYS ARC ARCHITECTURE" , Linux Kernel Mailing List , linux-cris-kernel@axis.com, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, sparclinux , linux-sparse@vger.kernel.org, linux-alpha@vger.kernel.org Subject: Re: [PATCH] bug.h: Work around GCC PR82365 in BUG() Message-ID: <20180411101927.GA29949@saruman> References: <20171219114112.939391-1-arnd@arndb.de> <20180410224805.GA21429@saruman> <20180411095359.GB21429@saruman> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --AhhlLboLdkugWU4S Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 11, 2018 at 12:08:51PM +0200, Arnd Bergmann wrote: > On Wed, Apr 11, 2018 at 11:54 AM, James Hogan wrote: > > On Wed, Apr 11, 2018 at 09:30:56AM +0200, Arnd Bergmann wrote: > >> On Wed, Apr 11, 2018 at 12:48 AM, James Hogan wrot= e: > >> > Before I forward port those patches to add .insn for MIPS, is that s= ort > >> > of approach (an arch specific asm/compiler-gcc.h to allow MIPS to > >> > override barrier_before_unreachable()) an acceptable fix? > >> > >> That sounds fine to me. However, I would suggest making that > >> asm/compiler.h instead of asm/compiler-gcc.h, so we can also > >> use the same file to include workarounds for clang if needed. > > > > Yes, though there are a few asm/compiler.h's already, and the alpha one > > includes linux/compiler.h before undefining inline, so seems to have its > > own specific purpose... >=20 > Interesting. For the other ones, including asm/compiler.h from linux/comp= iler.h > seems appropriate though, so the question would be what to do with the > alpha case. I think we can simply remove that header file and replace > it with this patch: >=20 > diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig > index b2022885ced8..5502404f54cd 100644 > --- a/arch/alpha/Kconfig > +++ b/arch/alpha/Kconfig > @@ -81,6 +81,9 @@ config PGTABLE_LEVELS > int > default 3 >=20 > +config OPTIMIZE_INLINING > + def_bool y > + > source "init/Kconfig" > source "kernel/Kconfig.freezer" >=20 > which should have the same effect. Hmm yes, and I suppose alpha would need ARCH_SUPPORTS_OPTIMIZED_INLINING too. I'll give it a try. Cheers James --AhhlLboLdkugWU4S Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd80NauSabkiESfLYbAtpk944dnoFAlrN4S4ACgkQbAtpk944 dnoXAxAAsHoTKQyZDTU/r/kGekG1pEfs0mc8yWLe9iRHbilM5u/YOGj6o0cqkkv8 7YEH7lfapOs5Fi3+t+kXezfDtIijHFiwlgWJXnqe8z1ZRoovmIw4BYZvZGRMUjrf syPK/fOx2ZkQ+L3Zv02UdXfITV2rvWaK58olIs9Qnl7mwkUViA7cK3tzRtOhyKG1 mEi58L9dOR8SZIGLJjUvBHpMDKyXsTb1AD4chQ5I3TCs8eCOq5FCOb6b0sa9P2x5 UOpiJ1IMORXgML+FQ2o8lakjkk7b+jmj+NP4dgtydiMqlwZTcXydXW7POh7HMzko G6R2+QQiDl8Wf8fqTokXskTT3v2/vM+TwufVJlxWTqirUmuDN2l8AICSXO0Y3PR4 aTJPIamIA/izYNBo0ukletJRH89TdHdzG5zSNypm6tYu5Vil69A20NnRHHQOYAk6 Wt1BZUZp9/hz1bcxMCT9jnB10xDO/cXOIODWiwWQQbgx/upbK6oFOHh8YKxgSnXQ HFPAwV5tFNT7jVabbj43IQ2lIg+LlwLxL96VghSWxfmOrbUbZhBq7owHp3wwPYiF 2TAD34tz6oWpgismxcQMV3dnIILncctozEKBleRA63TxYh8gCSH/QsvTi+3zZI2M 8jnlOr4EkFefBAHhOAjZQE14qDig9/rW8FgnJTAhLteAF8f5wY0= =HfmN -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S--