Received: by 10.213.65.68 with SMTP id h4csp4391959imn; Tue, 10 Apr 2018 14:14:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/LM/rwRt/zMF9LQcFr0qxrIWhXFpr6y52cxABDlbEMbVPbOb7f/QYajjo4A7WbbFe7wZPv X-Received: by 2002:a17:902:b707:: with SMTP id d7-v6mr2115427pls.188.1523394857884; Tue, 10 Apr 2018 14:14:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523394857; cv=none; d=google.com; s=arc-20160816; b=jd8pRNJO5Mc3ZErvaRj2S3JMT00gM+2uvDEZAnYAfoPWr0W9/eSga4IkvsUqwrzpVc 6JmiikAa5aI8pw6Lye9Qf+dmU2t9lxtEbYPPbXtwRXxqjJZAzrtrIv6qKNQWWcftWaEq tTy+TrDcUoGJDTXhcUhkE9qh7Jr1iGPrxcAg4vJEHUAG5+Rhi7/q3AL+1XvWjPmkTAzu fvqnjGYEAV8Zfzc5DAl83wIU7/6bsD6Xc+8mtFDKF1vVBo/nks6f3RS2w8MIm7G3OoYD qeUqmkx4WNmXtYnscgWBLqArQVccbj1Zuht/rhsT7iFB7NY+HnMdIkqjthnA7yw/FMbv 8FZQ== 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=36vSoPKb5oEQPRdq7/zIEn1aVtLZaYM39JFPoYHjwNU=; b=hsNQa0aFUEXKBWUtvBCmn5CCVzKW9cNPoIWsFEDOydPYeMm/bAaSOr9Ss2yG1aIoSi J4DtlBQBTrvctwGcLjT8Ik61lo4iG5dDkjjUdSQ6WFdQdHghiemJnylAeW2WjUn8ecUy WDnzUOdgzWgK3vCpP/rPfia6AHOy0kJ1HsK8RJlaLyz2LAoV8yy8QQ8aQiWXjb2noZaF ikXEnwCJcV3xaoi9KNelfXBgYZLY5DH7dIYHYBuaHu9bbbCXLVEXOLQySne/0zpIcSGb Gd0tgdl2LOwPszXPIEHaxfCdEsdoTIj6VcJfVfv0AXGLb7yd4AnNxB9/9Ia479bqINje ZY2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=EaAUdQz3; 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 v14si2335555pgq.266.2018.04.10.14.13.41; Tue, 10 Apr 2018 14:14:17 -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=bombadil.20170209 header.b=EaAUdQz3; 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 S1752081AbeDJVHZ (ORCPT + 99 others); Tue, 10 Apr 2018 17:07:25 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:55452 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751589AbeDJVHY (ORCPT ); Tue, 10 Apr 2018 17:07:24 -0400 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=36vSoPKb5oEQPRdq7/zIEn1aVtLZaYM39JFPoYHjwNU=; b=EaAUdQz3oCkx+dxNsZTZRVSEe 1pfeNCb8RShSTQm3cayEnP8z/ejUTUDzYDdOw/U82PuvIoO+864dwF30OFVe53WHquPu1E4eTJ4PZ 2hZdbeQWVl/2hfgORtOD9tMlB06SqPkMgPGSxSHnWhJpV7B4LEOrMCAHmOe1gRtj2P4aa2K08yqn+ ntjO93Q8mJxqfsj3K06ljLGQlcS+4Ss+2OHvBuVWL+s5lKXdnSSPBK39AP7G1VC6NhGYVdZLRsv9F ZYa21Z9J6esBdBuskL4YZsdzH/NKwHejYd4EttezNLxudtzh+mC8s0FYgggb4pxxS1mX/V4501w1g m72KvWzTA==; 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 1f60U2-0003DS-HY; Tue, 10 Apr 2018 21:07:18 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 4B99F2029B0F8; Tue, 10 Apr 2018 23:07:16 +0200 (CEST) Date: Tue, 10 Apr 2018 23:07:16 +0200 From: Peter Zijlstra To: Yonghong Song Cc: mingo@kernel.org, ast@fb.com, daniel@iogearbox.net, linux-kernel@vger.kernel.org, x86@kernel.org, kernel-team@fb.com, Thomas Gleixner Subject: Re: [PATCH] x86/cpufeature: guard asm_volatile_goto usage with CC_HAVE_ASM_GOTO Message-ID: <20180410210716.GI4082@hirez.programming.kicks-ass.net> References: <20180410204259.3981586-1-yhs@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180410204259.3981586-1-yhs@fb.com> 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 Tue, Apr 10, 2018 at 01:42:59PM -0700, Yonghong Song wrote: > Commit d0266046ad54 ("x86: Remove FAST_FEATURE_TESTS") > removed X86_FAST_FEATURE_TESTS and make macro static_cpu_has() always > use __always_inline function _static_cpu_has() funciton. > The static_cpu_has() uses gcc feature asm_volatile_goto construct, > which is not supported by clang. There will be more unconditional asm-goto usage, clang is in the process of growing asm-goto.