Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp694236imu; Thu, 13 Dec 2018 02:54:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/XFCJae+w/+fGmUZOZDHF5p/+Nb6GffsiUVWWUDRoxfAj+uIZgExNhRFSbxmEXWlmXeoxcJ X-Received: by 2002:a63:4101:: with SMTP id o1mr21273900pga.447.1544698450089; Thu, 13 Dec 2018 02:54:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544698450; cv=none; d=google.com; s=arc-20160816; b=bqZIVRK2a41YWVYAzd10biKRtcGq/XDuUEM+/Ovs7USjNMBs+qcvgMxsnCfe4aNL54 Rzz/BC8CQ9twQy6Q6Xv07yWzQGTL4DtVdtfri3S6PcVrwEGhWVsPUCAb8c0AdGz67alH q43m/4arzMLLYiw3MhbRVd0ZJJ3i2R8rp0llv8P2IdxkWlVtBn0T77d/eO+oCyW2EJMC 8sMF1k84s8I0bsMe6k2s2MG6fRVwOFUJuaJozUd9iQGsTi8GtTVtoxcnHGXzgIepHXvJ ST1X3SqcaK7EYSzxUTXf0MPI6V3ZhfoLu0GSHWOvHgzq3DNVShTIOEop88CX1VvfmvGz MfDg== 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:dkim-signature; bh=tv9QIBkjsUG6r3Sg/D/Kx5L7YwlU2tYAOckfeYuussw=; b=c/LVlNn7+Ee41XZ6aQnPzD5gwjNPTTyvF6KvUt2fuJFFVsYP+gBlkJoTUg+JBTaCjA vfVJSZgwaDaKEEd1Hx6E5L4h6p5el5FlXed7b2s13ynMQP7a6+rKgh1+LFdXOcy/JvRT 6RpmmwQS/L/x4MH5JoBBjovLgcKSqJ6FKx1hKQR+iL1A/Y0hfvi48AVCFffHsLkUMJ4H Yo9MYPc3YM9llIqe9nKyoKUeZeUW3viB00nmQE0VlE2Fop9a3kR4rmDkyahVTrmtHz+J Tw1v6X7V1i5mTCs9daVtznJtpqXYEygA7htPmOUcNZt/eEzPFkEDZFpYiOtTe1anRH4l X5WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="JudpRY7/"; 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 p14si1334278pfi.12.2018.12.13.02.53.54; Thu, 13 Dec 2018 02:54:10 -0800 (PST) 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=@infradead.org header.s=bombadil.20170209 header.b="JudpRY7/"; 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 S1728573AbeLMKwG (ORCPT + 99 others); Thu, 13 Dec 2018 05:52:06 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:50342 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728104AbeLMKwG (ORCPT ); Thu, 13 Dec 2018 05:52:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=tv9QIBkjsUG6r3Sg/D/Kx5L7YwlU2tYAOckfeYuussw=; b=JudpRY7/TWvLCDg5nsZTbt+Kj 1SjsQB8uF49SRcr919SwNEiVVdj/hgXsyf0xxbL8irXc/dnpd8wFasJBvXvX/f0s2PFBcxKBV6fNt fmPx0DcmJGn/hSKRdziRAVFM8MmrPG8KqV1k2NTEz3ryQ5DYEH4X0vi0oXHf5e80ycQ9W48/3OpPn IUo8TUHOOj58iH7MCIkqDO7TCNfDTipvFnx9G1ojWFy1TgTt/R/xFOLlYtzlT28/r5zCahObBmw52 Rqt/dQxr0dqmNw/hQAwSn56x6OkVTcM7IoJDebJPC/59ZwKUZzzIDfhCUONrcE2D8YDDFfSZYDCvL SdbA8HupA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gXOap-0004p4-Vs; Thu, 13 Dec 2018 10:51:48 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 55057207261E3; Thu, 13 Dec 2018 11:51:46 +0100 (CET) Date: Thu, 13 Dec 2018 11:51:46 +0100 From: Peter Zijlstra To: Masahiro Yamada Cc: Ingo Molnar , Thomas Gleixner , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, Richard Biener , Nadav Amit , Logan Gunthorpe , Sedat Dilek , Segher Boessenkool , linux-arch@vger.kernel.org, Arnd Bergmann , Luc Van Oostenryck , linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Michal Marek , linux-sparse@vger.kernel.org, Alok Kataria , Juergen Gross , Andy Lutomirski , linux-kbuild@vger.kernel.org Subject: Re: [PATCH] kbuild, x86: revert macros in extended asm workarounds Message-ID: <20181213105146.GH5289@hirez.programming.kicks-ass.net> References: <1544692661-9455-1-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1544692661-9455-1-git-send-email-yamada.masahiro@socionext.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 13, 2018 at 06:17:41PM +0900, Masahiro Yamada wrote: > Revert the following commits: > > - 5bdcd510c2ac9efaf55c4cbd8d46421d8e2320cd > ("x86/jump-labels: Macrofy inline assembly code to work around GCC inlining bugs") > > - d5a581d84ae6b8a4a740464b80d8d9cf1e7947b2 > ("x86/cpufeature: Macrofy inline assembly code to work around GCC inlining bugs") > > - 0474d5d9d2f7f3b11262f7bf87d0e7314ead9200. > ("x86/extable: Macrofy inline assembly code to work around GCC inlining bugs") > > - 494b5168f2de009eb80f198f668da374295098dd. > ("x86/paravirt: Work around GCC inlining bugs when compiling paravirt ops") > > - f81f8ad56fd1c7b99b2ed1c314527f7d9ac447c6. > ("x86/bug: Macrofy the BUG table section handling, to work around GCC inlining bugs") > > - 77f48ec28e4ccff94d2e5f4260a83ac27a7f3099. > ("x86/alternatives: Macrofy lock prefixes to work around GCC inlining bugs") > > - 9e1725b410594911cc5981b6c7b4cea4ec054ca8. > ("x86/refcount: Work around GCC inlining bug") > (Conflicts: arch/x86/include/asm/refcount.h) > > - c06c4d8090513f2974dfdbed2ac98634357ac475. > ("x86/objtool: Use asm macros to work around GCC inlining bugs") > > - 77b0bf55bc675233d22cd5df97605d516d64525e. > ("kbuild/Makefile: Prepare for using macros in inline assembly code to work around asm() related GCC inlining bugs") > I don't think we want to blindly revert all that. Some of them actually made sense and did clean up things irrespective of the asm-inline issue. In particular I like the jump-label one. The cpufeature one OTOh, yeah, I'd love to get that reverted. And as a note; the normal commit quoting style is: d5a581d84ae6 ("x86/cpufeature: Macrofy inline assembly code to work around GCC inlining bugs")