Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp850463pja; Wed, 1 Apr 2020 09:49:41 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsOv057vXz4bvX+26SZKfdb13cgJ620hlE3VRghaCQVPHzxcNcXp5BDiKTYfFxx9zGJD8sl X-Received: by 2002:a9d:748a:: with SMTP id t10mr13723430otk.244.1585759781719; Wed, 01 Apr 2020 09:49:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585759781; cv=none; d=google.com; s=arc-20160816; b=zQIA4GgK9Zm0P5krjHnvrb7PSm9IhJ4UBwvBxIrmEr9YFbZzg5FSgzhUjx8yV+yakc ktjOM+RjZcfTQt4NJSqsSrO/vV4t2rCGkvMnniXj0coos7eY6aJM94zY3vnI8azFizWS ztECj3n0TrQcUEUz5s2Fnn6gfL3AepyVDhkFj05SrBeuBmVBjPn9mSN/XSGoCCkyty3W W4VD4HecB/wXlk/IDBhblvNmPKJy84VjJWy4QDZq9fspuk0tz33gBl35i8lLdsuCvWuj jbEoRBMdhfZX93cyMztwsYu43Wfhj/O4vClj7JsIhKxwktymG7P8RkmkVhsP8PbBAurU 03lQ== 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=LlRItLw0O+nMwUXBh1rTGCSTtVJmBzG9GUhIZAO1Zf4=; b=Pt3z+HXmLtgHI/bdUMgScUp5u4ZUgArcGu/cS1h73x4iUKL+MXB63ipc758/3eGH+B fXcnyPTnD/0/n/hvReIcW1cSMSvWbdPIJ7cW7xD7LgSRFnnJfT9UKMNeTOwrDUVhYn0A yCZMAZZUcTl+xKnLS3kuCxq5wUUavmc+C+3Pp3nWdZa1MYib5hNGyq7x/64h4bJjAfiA YLDd0MqZEDBcwpx5pMSqN+HuyneFPRH92LOtNBmgpiYljSs72XxL2Ws8dTkP1ioEBdVB n3g/L8Hpt8dEPzijmDJwgZ2LwuoBJIL+ch7VgzBItzPbmpiSiHrCVcchepM84eRkkf9+ Shmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FoXY4At9; 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 w8si898570otg.26.2020.04.01.09.49.28; Wed, 01 Apr 2020 09:49:41 -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=FoXY4At9; 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 S2390053AbgDAQr0 (ORCPT + 99 others); Wed, 1 Apr 2020 12:47:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:49038 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389834AbgDAQrS (ORCPT ); Wed, 1 Apr 2020 12:47:18 -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 36C38212CC; Wed, 1 Apr 2020 16:47:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585759637; bh=O8o1VsBoFBKPmE2ac8EKDiK2TUahPmQesISu0qFsf1A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FoXY4At9H+IM91F/X0Z/WTqri++zd3l8AgI4K+CLRAVkFulMpG6U7JY/uUq3zDoQf kCEaxTTn8oJhlp5fO1Sg1/5xIPGYrGR1RMTty2dG2p7bD5viqyb7ONnIfE7Lh1aIjb Htz7OY9qJSxIJJmrykq/8bcBesuA8EeT8LKtwzXs= 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.14 143/148] arm64: alternative: fix build with clang integrated assembler Date: Wed, 1 Apr 2020 18:18:55 +0200 Message-Id: <20200401161605.836956481@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200401161552.245876366@linuxfoundation.org> References: <20200401161552.245876366@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 @@ -216,7 +216,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 /*