From patchwork Mon Aug 17 15:10:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 247876 Delivered-To: patch@linaro.org Received: by 2002:a54:3b12:0:0:0:0:0 with SMTP id j18csp2598854ect; Mon, 17 Aug 2020 12:48:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx98sHdwhSfprSVzy7wtUUx7MVrU9i/bQC/BxApohFnHhqG5cDS48QN72SrVAvXkgS/0Kkx X-Received: by 2002:a05:6402:a5b:: with SMTP id bt27mr16816955edb.120.1597693683971; Mon, 17 Aug 2020 12:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597693683; cv=none; d=google.com; s=arc-20160816; b=i03GOpUbGfZPDvP42EgL5V+2UMVhHmzIzr41ToS9ZlqlQW5CibGX+8QLiwzeT4FsvW S56Qi+klSjistUiT7InsqwxOklVFRhOYVp5VoAg/92LXLEzBVuxkhubFyNQVjiU/uV5B wRhFWHGZmmsz3uUs5f4HxLB0E/YAiqY+sT8fINioUsQ6GGghYaiVVRXFqKGv37cTzLFC EXkm45ZOdx9tje5Hz1ymAH90s5mFMLwPFYPAYkoJtyICPLVZT8K3U6waYAnn97a28RwF +DyiO5Jap0QFcHId1gxwVsXGP3IKZ9WJI54hcwl6htUmKshbbfPkoA3ee2FmZ3ixvN+p L6dQ== 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=aD5Bj3ZIXFlq/eu2eCu2ZoWxnxrxSHaGtqxjoYw6bWM=; b=dYQN3gUBru1gpWEKk8SzF8yratoCGQA4Q+JlkXNM4Wul1dr5EA0VuEHCGuCVk9TMi+ u+6NtBPuEoWlGCp+U/WnJBb4TqycIIpq+OlOV3uRqFVawtJiEYmYAGEhG4S0smcJeQhe Dt1ZsYRkCEp2zf+fa29txW+0S/sTSjPfpO+4jNsc4GOv54WlpCj2b5bpju+ekc33q7ri 9Utya82xUaz578XGw4D6yIgfxzvhDQwi493H5OpCh0BP7FYu1WOv7AytLoA0BJe7bRu6 22hjxeH5JXMbZWPVyEpwdEH/M1Yc9Yl0wGcVovmI8vV+7bSWh/Pmr8gFFaR9H+jC4TuO 5tWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Rkzk0BZm; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c38si12608283edf.153.2020.08.17.12.48.03; Mon, 17 Aug 2020 12:48:03 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Rkzk0BZm; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732724AbgHQTsB (ORCPT + 15 others); Mon, 17 Aug 2020 15:48:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:41178 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729279AbgHQPUY (ORCPT ); Mon, 17 Aug 2020 11:20:24 -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 07267206FA; Mon, 17 Aug 2020 15:20:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597677624; bh=IHgBT8Vjik3BbIgxDcxrZBpBmFQ3aLVlSzGsnPVE574=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Rkzk0BZmMOyLcmT8ErNAkGUaJlEjqlNHWQErKzf0ZmdPm0W3YDcDIlXwB80ESyGM4 cuU16mOQ3gbV/P57Q8+cSTxVRQKGzYLMVpXdlkMlrNhHTjvljFsLTwP3mDOsfa0A3H UmFQ57NAAQd5GTRDvUXVniORuiZPPBY1z1fbgZuw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Nathan Chancellor , Herbert Xu , Sasha Levin Subject: [PATCH 5.8 048/464] crypto: x86/crc32c - fix building with clang ias Date: Mon, 17 Aug 2020 17:10:01 +0200 Message-Id: <20200817143836.060176492@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143833.737102804@linuxfoundation.org> References: <20200817143833.737102804@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnd Bergmann [ Upstream commit 44623b2818f4a442726639572f44fd9b6d0ef68c ] The clang integrated assembler complains about movzxw: arch/x86/crypto/crc32c-pcl-intel-asm_64.S:173:2: error: invalid instruction mnemonic 'movzxw' It seems that movzwq is the mnemonic that it expects instead, and this is what objdump prints when disassembling the file. Fixes: 6a8ce1ef3940 ("crypto: crc32c - Optimize CRC32C calculation with PCLMULQDQ instruction") Signed-off-by: Arnd Bergmann Reviewed-by: Nathan Chancellor Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- arch/x86/crypto/crc32c-pcl-intel-asm_64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/arch/x86/crypto/crc32c-pcl-intel-asm_64.S b/arch/x86/crypto/crc32c-pcl-intel-asm_64.S index 8501ec4532f4f..442599cbe7960 100644 --- a/arch/x86/crypto/crc32c-pcl-intel-asm_64.S +++ b/arch/x86/crypto/crc32c-pcl-intel-asm_64.S @@ -170,7 +170,7 @@ continue_block: ## branch into array lea jump_table(%rip), %bufp - movzxw (%bufp, %rax, 2), len + movzwq (%bufp, %rax, 2), len lea crc_array(%rip), %bufp lea (%bufp, len, 1), %bufp JMP_NOSPEC bufp