Received: by 10.192.165.156 with SMTP id m28csp527284imm; Wed, 11 Apr 2018 03:12:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx49qWJoEz+4MKTtxXiwhEobtjAoNLuUuNy5+sudvQ9G4lFEe5d3haRCX1wof/OiCGzuhEHh6 X-Received: by 10.98.15.195 with SMTP id 64mr3424184pfp.63.1523441545278; Wed, 11 Apr 2018 03:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523441545; cv=none; d=google.com; s=arc-20160816; b=MI7iqPQgioUhgzHVy6UirdoLOToErpDnqwdWENPLO+oTaUJcefXWZTT/jv/60VgY/3 nuNZdKVwKDtGMehyJkPBmk+tipSTQVNvvKBlf2vXrH4wx30+eKrgjd1R6zU1GATDvKS1 6eRzazyGSbyFW1lFwAW4edeLshHhMwVOFDGvofL4N9Ym6nREEnztwfS09TduilC3SDnE Jxtog3CKfkCFuldqARbK7d/5P3X+eHBFS4D8vUK+EnbiPP/6IaudBHLZG0hma43kNu6C JrFoB1JQR+vX6kGP4rTGuki/uDZnj0wjROBWwcPZB+gZtdV/H2ga+6ARLuvDlhmrNxH+ 4anQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=V5psy+kJgYxBotBWKaGcOBr64KsWORkUlVfiZW1FHHo=; b=m6hND31hjOtnfGDWcSAiRfFd+50GCQ6b5k5EFngv24q4cA+iGBBeT7riIkyiXGUAZw NeGDcUpL4SgRz1M9SYn6gJSMgKppjbqRaB5QdrOGR5JzhIG0heGQzUMWEAh4lPENjql/ C7J5xboiWas0fHrB4qm2FvSEyYEiKWOQdT3Yoh14kjCYSEDc11UpNQkdC6sGlvrPVgK7 LXJAi+Jzs9pPI1BLh0HpVqwdkBFcHp4aXpgyo9hqSY5kuVBmo1eZM9Ji8x9FaRb8xqEg /yzuFDt+HPUsEPPYlg5FqOYbk8i28QJjONof18t7myJV3I2OflcXiGVUBsY6xupEChyN iS2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=gRcQ6Dkv; 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 r30si538392pgu.587.2018.04.11.03.11.48; Wed, 11 Apr 2018 03:12: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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=gRcQ6Dkv; 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 S1752491AbeDKKI7 (ORCPT + 99 others); Wed, 11 Apr 2018 06:08:59 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:35138 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751668AbeDKKIx (ORCPT ); Wed, 11 Apr 2018 06:08:53 -0400 Received: by mail-qk0-f195.google.com with SMTP id c188so1207306qkg.2; Wed, 11 Apr 2018 03:08:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=V5psy+kJgYxBotBWKaGcOBr64KsWORkUlVfiZW1FHHo=; b=gRcQ6DkvyJGIs12j48GEfQR2cOvab0hj1xA8P5qsqBWmbx818CTC9GsGJAkbsvzkNn Rs5nkSSexcB5955ZuZAc6eyIUH03Vix5PABSVSbjY+Q2gZeLeBNSRM15hWw9uIs2cAVN mlD0T0/1qDvYwMQdk6bbWjVjy8kZAd+N/qp4vu9GQ8LdmuGxbMXFkzp3+NrWtAB7N+1F bRZAb391qiQ/B3N3Jxumu61bVrPI2WAxXCHNuJgrOppFET+t96Xq/f808c5ZFuT5xvOT pVOJU4xfROIQcBEraUS/NHdmUpgNaWdELrwxaBXpyJcirZXfoH9+VWARK8MF/6byLqxN Cl7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=V5psy+kJgYxBotBWKaGcOBr64KsWORkUlVfiZW1FHHo=; b=tpvAkE6X8JVythhL4qIpe/f8fteGkkXAFmoWv/NOJ47/ql8dT65bFswVE2nLiF+xwB xK2WkR0x5SgJbazcvMYyKZJYG8MvMdY6LNrMVXqvcLjKCucirA3tY5fQTcu7dd7o3zly rPzwQGmP2mDVQ4lmeutUJaqp0plCIT0+50iO+HLG0kXGjnNwP1mTpg9i3nW6NOFGVdTX MGSZohKtgHlUImR7GjAklMgShAN5S8CoW8UeBvJQmNQqjfO74cJbYrJ3dTIuQ4zXYUOd voih7F2Tw2f+FCXhSI/ply3cm7z0FUDF4eAjmVkhg1eiPG1ZX9E3N69yhtZwnkS9eCqk 5wXg== X-Gm-Message-State: ALQs6tDsW4qC5oDwSY9gOFV59ntmLHp3yxI/6qeiR6vBPtrzcTmvP0TS 1eeA6W/XGy+zzfYdIP6WwZVbmjH2hdqm1//Cfrw= X-Received: by 10.55.225.16 with SMTP id c16mr5506435qkm.343.1523441332243; Wed, 11 Apr 2018 03:08:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.185.25 with HTTP; Wed, 11 Apr 2018 03:08:51 -0700 (PDT) In-Reply-To: <20180411095359.GB21429@saruman> References: <20171219114112.939391-1-arnd@arndb.de> <20180410224805.GA21429@saruman> <20180411095359.GB21429@saruman> From: Arnd Bergmann Date: Wed, 11 Apr 2018 12:08:51 +0200 X-Google-Sender-Auth: t8Y5JFZ2ohjdioqhKh1Px9Qjymw Message-ID: Subject: Re: [PATCH] bug.h: Work around GCC PR82365 in BUG() To: James Hogan 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 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 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 wrote: >> > Before I forward port those patches to add .insn for MIPS, is that sort >> > 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... Interesting. For the other ones, including asm/compiler.h from linux/compiler.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: 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 +config OPTIMIZE_INLINING + def_bool y + source "init/Kconfig" source "kernel/Kconfig.freezer" which should have the same effect.