Received: by 10.192.165.156 with SMTP id m28csp1642069imm; Sat, 14 Apr 2018 03:12:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx497zqEwFqNqa9N6AzZK7Hv0PHnG5waZ02x9Z8iSoJFLOyMYPsmYX1zcjgdsmNqOvIPR9qWw X-Received: by 10.99.115.14 with SMTP id o14mr6932494pgc.121.1523700776424; Sat, 14 Apr 2018 03:12:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523700776; cv=none; d=google.com; s=arc-20160816; b=Mck0MOm/mLYJKMfsSA+2cBiqUvtxHhCM8Tu2xC8tTWjMYR/mIm7JgZ/RlDUup+BaTY a/tp/A6r1pHPUi8vE8sqjkQua2er22r1nScXREjm5wzRGgy9bQ1HS3FIyMiILV5hoBX3 +kXrJtSZwByOEgEAoKs9Dj1w9uBrQzz8Sd8++9bSq3Mfi2kEY9t83e6hmWZ3bF3bQP6m iyVRpS/04M7L7fin1ScvK8VDmlq6YR7wATnSBmhP8s8FNFeB2VOHD0rBmhmouyY01e+V iXCzvbkjzaD0XVxudivjcM906B3HduNCXd4WPvbxPIW7NQzOFsUb2pQwBku62xEdtZ6W T3zg== 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:arc-authentication-results; bh=kYrvh6Zlx/f2OT5r56+UXeXbp2S0qvgkFPQ3THkjDDA=; b=PPz4o+6LgJc/fvbO7dGdh0ZH/QEaqJoc52daV/xcyzIIreQHRTfT94hqA933PZRjKl om2K1XQ7UjGHPQpIS13Dk1gVnvX1Z6voC/3TPQQXFSvfUNvz1O3raOr+5EhLaU1zxTHs 25B06TaKOm1mNqBsQihOEd+E66EAobmt5kALlN7D4rEqlCM9AnLeC8wSWCgwNaamb0cI Xphy4Gd2PL+oMvswHpyn2e+cbxbwP0oQu9aHZ2+orPynI6ln7SXm4ISLIrAnRLXgNV2G 8DeWXxQ0JBCUEnH2PgEjZnNQlFxvDmy1v/oKwEGeixXkju/YJIS+srvWtRRq4lvXZAdc TqUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=PFu9u2u/; 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 59-v6si658496plp.179.2018.04.14.03.12.42; Sat, 14 Apr 2018 03:12:56 -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=@infradead.org header.s=merlin.20170209 header.b=PFu9u2u/; 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 S1751021AbeDNKLe (ORCPT + 99 others); Sat, 14 Apr 2018 06:11:34 -0400 Received: from merlin.infradead.org ([205.233.59.134]:42124 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750883AbeDNKLc (ORCPT ); Sat, 14 Apr 2018 06:11:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=kYrvh6Zlx/f2OT5r56+UXeXbp2S0qvgkFPQ3THkjDDA=; b=PFu9u2u/kbiCTlY+lHjAu9HpB UlBmVNhQqCmGIIzC5QUrZyGgq3dJNbKbZWwnA+2v3ZJT2AciJFqsjYBVrX68K1Dy989p/MX1Rg3DG cmUrtZnplBsR0KcMg6mAy/0giqncaVzH/ysOd8h8lsepxGJNSYLq5WsOwlvjlYdyzytib+n/aLqvt 0zfthjl35xfAx+Bp4NKoM8t5FqKjox/OTLFLsEphDhh9GBU4zBGdB5UXepR4yrpM2xQyj8t98g9tA njTV24IiohFQ+oridKq5iU2gXaxFNutmbAPpjbq5d9Mx+pKgqaEiOHLDQeqDmuUq76IGW/k2k+MAq IGtU6ex6Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f7I9J-0001vZ-L5; Sat, 14 Apr 2018 10:11:14 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 4CDBE2029B0F9; Sat, 14 Apr 2018 12:11:12 +0200 (CEST) Date: Sat, 14 Apr 2018 12:11:12 +0200 From: Peter Zijlstra To: Alexei Starovoitov Cc: Yonghong Song , mingo@kernel.org, daniel@iogearbox.net, linux-kernel@vger.kernel.org, x86@kernel.org, kernel-team@fb.com, Thomas Gleixner , netdev , Jesper Dangaard Brouer Subject: Re: [PATCH] x86/cpufeature: guard asm_volatile_goto usage with CC_HAVE_ASM_GOTO Message-ID: <20180414101112.GX4064@hirez.programming.kicks-ass.net> References: <20180410204259.3981586-1-yhs@fb.com> <20180410210716.GI4082@hirez.programming.kicks-ass.net> <552d5866-912e-afde-f25a-77ae8390816d@fb.com> <20180413181924.GT4064@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 13, 2018 at 01:42:14PM -0700, Alexei Starovoitov wrote: > On 4/13/18 11:19 AM, Peter Zijlstra wrote: > > On Tue, Apr 10, 2018 at 02:28:04PM -0700, Alexei Starovoitov wrote: > > > Instead of > > > #ifdef CC_HAVE_ASM_GOTO > > > we can replace it with > > > #ifndef __BPF__ > > > or some other name, > > > > I would prefer the BPF specific hack; otherwise we might be encouraging > > people to build the kernel proper without asm-goto. > > > > I don't understand this concern. The thing is; this will be a (temporary) BPF specific hack. Hiding it behind something that looks 'normal' (CC_HAVE_ASM_GOTO) is just not right.