Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1265358pxb; Fri, 22 Jan 2021 10:58:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfI8a3RuRfeyf5PYJfRGI6G/Qx/gN7JtjP3+VmIYYWM0mvw28J7kZLOHH2y9CMTbeKR7pf X-Received: by 2002:a17:907:968e:: with SMTP id hd14mr2861844ejc.108.1611341905901; Fri, 22 Jan 2021 10:58:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611341905; cv=none; d=google.com; s=arc-20160816; b=A2wuECfzSk9MzNDoMAme6FSqNjPHS8onW0xzj/iNS2J9nsAyjA4YkcXPyChW9rcIjE drN2yzsP/PJcbV22TaTAbCvkYSAzngxdwCgywAl7jljfWJZhXLBh/vpHuuNEuh4qfGYA mWqp+MG4Dx60NgokS17T9sEhHbIlofJ7w6W03PvYtB3Izr1QWmwUhYVqBaEgmAFlNMLL wbkStqeKbrPKQNXI/HYYCZkgmBF+PY+Lovo5vyd+kAMse4i137g6hal2hHWdx5tRLIBf mXFzGaitOBgsgewrQMsuIUwsh2IflKpQRtAaDuhMmVre42B1gc/wPp+o1oixxIqQMUyY SGpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Vn9PTwjB9PaPZu+08T5HugoJXe8bhb1kaD2Bv147vX0=; b=eUc3rvq9sJLQXfOmNpGzFVtN+R3LoC7Cs2CsSIwxcdxTFfECDVSbi2UfW+AUk0DDN3 A+8KCMHZom64gyia+XvXornMpI1Nx/lMaJYxnHU93rAv6hRfUcpffrcZNVe6HW0oSzlQ LjK7zHj11LasjrSZgXK9xN1VAy1RAN1Ij9okvnVgU4Rv5DWIRJ8x8OHID0a5VtNYqH/j ras77JWZVxO6/S90T65w7V4sJYUj4+TexCYk3o8JOgAfNHJc6DfAMHIdjtzi02X92+fh YWE/hhG+47+9JiDYZm9xF4LB9Qbr+ZPNUOsNI5azA04tgmt0JnxnLrPMTS2xC1k9oD7d cgfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Y25u0bqw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 w17si2011336ejb.242.2021.01.22.10.58.01; Fri, 22 Jan 2021 10:58:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=Y25u0bqw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730334AbhAVSyJ (ORCPT + 99 others); Fri, 22 Jan 2021 13:54:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:39050 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728524AbhAVOWB (ORCPT ); Fri, 22 Jan 2021 09:22:01 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E2EA523B51; Fri, 22 Jan 2021 14:16:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611324965; bh=U+H9QY895yIA4dEjk9EOwQp3tOH3m8bsnCOmG/cOMGA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y25u0bqwJGbgodVX6xhN6ZtB/kd6hHvQTbzpJv2xoLeLiFv1f29ufhX2JGAOCXYq+ RpILcgm56xVXkQd64kebm1OYGyXaKJptr1iQ1R7pPTE+ds0SxxvrutJsZe9q8wz5+v +aqYLoBT6e430Nnu7uW5pOiliwOuT3xoiuiQk0wY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Nathan Chancellor , Herbert Xu , Jian Cai , Nick Desaulniers Subject: [PATCH 4.19 04/22] crypto: x86/crc32c - fix building with clang ias Date: Fri, 22 Jan 2021 15:12:22 +0100 Message-Id: <20210122135732.098221677@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210122135731.921636245@linuxfoundation.org> References: <20210122135731.921636245@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann commit 44623b2818f4a442726639572f44fd9b6d0ef68c upstream. 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 [jc: Fixed conflicts due to lack of 34fdce6981b9 ("x86: Change {JMP,CALL}_NOSPEC argument")] Signed-off-by: Jian Cai Cc: Nick Desaulniers Signed-off-by: Greg Kroah-Hartman --- arch/x86/crypto/crc32c-pcl-intel-asm_64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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