Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp842737pja; Wed, 1 Apr 2020 09:41:26 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtiGICUuRXkhbMCpXJVttc+9tUm2tKTt07d6x8tsWT5R1wjTh7vtzAjjEsKwVR6Lg0ZETS8 X-Received: by 2002:a9d:356:: with SMTP id 80mr16920452otv.15.1585759286112; Wed, 01 Apr 2020 09:41:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585759286; cv=none; d=google.com; s=arc-20160816; b=CcLF/JNmG6mJctsAQ0IyMoV+tfOem0gyZrT31/7Z2Kx9D/FPsrqVBqQfHXCfz1it24 asv0thn8Hn2DxfCiafMS2hcna8D9xwE35hn5drPrGefU4xknbPT0doqlKWgLT0xRFCo1 JjdFZOrzbKyjQDdFq2Z3tAMn7j/VXFCc74CQHAAGF0ypPVv3/wj3b+RCwy8KCiJ0slek mhy9ZZqksHzcKOdaH1k+G48ndEZU9Kl+GOJvoq2VTB0MiA+UcT7cVQlg0vmGzRKt7B3d DAid73Ug+uiWdhXhUBvJT2xvEVuCM1XNz53fCGkvvOeKPm65fMo6JXmLJb4e0kyBJGEo dzPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OdXuXf42nz7jAMGgDjMrH3qyamww0Di8el4A/5Lw+JY=; b=dOlWboY5AaIYQ41zpeGn6ZFH7jhMvGNEw/qEjguJ65Z1XYDKpP+E9BxnTKJXrlBc22 qsyldN4D+XsOKo7vOfnOB978cQNu7mXbs3jwjJP2nLrZI8BrXmkQnjIq0KgZs18IWQIw EttToC+OfRIaV8DQIVj5QTKzihJqmP4rOZPdp98xpIqIDbr62ENrDWKVTjxqPDxw9nI0 kY8OTNXpfypz1j+Egj0ysMgweK0sn2d5BeKm8eYUiM24w1yAF6+OdJRtOX9cxNalTUTx TXwfQOgM/6iNeoOwiO55kyW1BLwaPQfh3dEgwlYBzq9rF/rleA87OBTyyqUACC3krxBO wNMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HV0VSv+X; 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 k193si1029076oih.78.2020.04.01.09.41.13; Wed, 01 Apr 2020 09:41:26 -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=pass header.i=@kernel.org header.s=default header.b=HV0VSv+X; 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 S2389225AbgDAQjk (ORCPT + 99 others); Wed, 1 Apr 2020 12:39:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:39640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389218AbgDAQjj (ORCPT ); Wed, 1 Apr 2020 12:39:39 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 D72602063A; Wed, 1 Apr 2020 16:39:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585759178; bh=KlgPpM2Ec2cZzsTcea0OVWKnugoEe7M7T6IX8wEotoE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HV0VSv+X5oQBe9pSuyx8gSGE1wCbkatskHX61yvH8JOHRc/QFWSWsHVwj/8jLq9kS FniVWDPwsz0TaYb897uQcKPfCszF9aQdgiuTzJSL7p1ZYiSmmQwXmIu8BvsiOOz3kS SB+/kiCIek6PfKDoQMqE6jOdtlwUR3QR//dpKk6I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nick Desaulniers , Ilie Halip , Will Deacon Subject: [PATCH 4.9 101/102] arm64: alternative: fix build with clang integrated assembler Date: Wed, 1 Apr 2020 18:18:44 +0200 Message-Id: <20200401161548.900106030@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200401161530.451355388@linuxfoundation.org> References: <20200401161530.451355388@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ilie Halip commit 6f5459da2b8736720afdbd67c4bd2d1edba7d0e3 upstream. Building an arm64 defconfig with clang's integrated assembler, this error occurs: :2:2: error: unrecognized instruction mnemonic _ASM_EXTABLE 9999b, 9f ^ arch/arm64/mm/cache.S:50:1: note: while in macro instantiation user_alt 9f, "dc cvau, x4", "dc civac, x4", 0 ^ While GNU as seems fine with case-sensitive macro instantiations, clang doesn't, so use the actual macro name (_asm_extable) as in the rest of the file. Also checked that the generated assembly matches the GCC output. Reviewed-by: Nick Desaulniers Tested-by: Nick Desaulniers Fixes: 290622efc76e ("arm64: fix "dc cvau" cache operation on errata-affected core") Link: https://github.com/ClangBuiltLinux/linux/issues/924 Signed-off-by: Ilie Halip Signed-off-by: Will Deacon Signed-off-by: Greg Kroah-Hartman --- arch/arm64/include/asm/alternative.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/arm64/include/asm/alternative.h +++ b/arch/arm64/include/asm/alternative.h @@ -215,7 +215,7 @@ alternative_endif .macro user_alt, label, oldinstr, newinstr, cond 9999: alternative_insn "\oldinstr", "\newinstr", \cond - _ASM_EXTABLE 9999b, \label + _asm_extable 9999b, \label .endm /*