From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796381004; b=2VGrtthB7Mlb4gFVlCPqxvSFpcK1hTmFFHyvGz3iBRu3Db+tPEpkwg1MbZ2mvjuuUJsR XTh9apOtL4Q3g8XSZFO+tGoVc7LdB+S1Of7lpdLbCOvoJLOc9hxjnZkQr/lnAyf5jovOV 1WEhGsXMAwG0nH7KL5Jnhlc1TyUxW9UDoz7UN2G63NGfmYdGS4lWFvHLRj2fgLyXRmP+O 4zGO9zr9CA+R3EZpdRpRYn6DcSt6XU/c4owmTBO3cvI971auKPdS8ypCukJ9FMHpaIC54 VCFwyvaBGFRloKyXWOKq3vJQNAYwJ77F7Zm7d4um+EQUx6OsxTB+RDlAr1+JYIOOtMw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796381004; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=JXmQf3ReZPX0kq0zrk2bhLJlU7GyDQtS271vZiupn9Y=; b=v0bqA3Zd/TopCmqPVVHkJJJuQnGwSbUSSbNAlfmfKNyZFW09Q2riaThtCEyEJz8PsFlj CyIc4QvgMwydoUNNn6/uPuPBVo0laZbRPN53HEqMd2WVFXJQHTsKrChCJXeXAkqG2ILix aeX7kHtaYOF6foapFtgwXgCmIrOmZWY/7Sbw9fXcg8JZTJlKfiZ2XvqOlhOUoSw+TqufD qiK6oicSrcv6rrfDgwvUzePNBGhe1vILZh75qzrGfaGkEa0kIKwDnsEPYjZMOeJSua4ff dsowsac4XzlzGfurmm4k4hK9nAmgW6fl+jA+pUqwin7QCYisevVYDyfqKfjWyVyaFtQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Zsl5nsI1; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0831F606A32C; Fri, 4 Dec 2026 10:43:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Zsl5nsI1 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 793471F00934; Fri, 4 Dec 2026 10:43:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796381003; bh=JXmQf3ReZPX0kq0zrk2bhLJlU7GyDQtS271vZiupn9Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Zsl5nsI1PPIX43LlH4j6Q4oXU0PfDdPp3lsUPoDomT1ITKU0/3CQE8TfTnibepEin +/6o4Z3ACuTUiGK0j6e/5+jxLgb57tddyJ1d5fn9+D8fPXdlZQR9Lt5iS1WHWRCfag KwWRurNQo2TSR2hj2Q/xdlzzPf4yg8i/ZBdrubQM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ard Biesheuvel , Thomas Huth , Nathan Chancellor , Eric Biggers , Catalin Marinas Subject: [PATCH 7.3 515/742] lib/crc: Dont include in NEON intrinsics code Date: Fri, 4 Dec 2026 19:06:19 +0900 Message-ID: <20261204100648.834534497@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ard Biesheuvel commit ff049836f05f5e46f702858a7cb949998e85a310 upstream. The kernel's definitions of uint64_t and int64_t in are based on [unsigned] long long, whereas the ones provided by , which is included by , are based on [unsigned] long on arm64. On 32-bit ARM, a similar mismatch exists for intptr_t. Including both into the same compilation unit currently only works because asm/neon-intrinsics.h overrides the predefined macros that the compiler's freestanding uses to define these types. In order to be able to get rid of those overrides, stop including into the CRC64 NEON intrinsics code. Instead, use for the definition of size_t, and rely on to provide the u8 and u64 types used in the prototype of crc64_nvme_neon(), which is shared with code that does include . Use uint64_t for the arrays of constants that are passed to vld1q_u64(), so that they match its prototype regardless of how uint64_t is defined. No change in generated code. Signed-off-by: Ard Biesheuvel Reviewed-by: Thomas Huth Tested-by: Nathan Chancellor Reviewed-by: Eric Biggers Cc: Signed-off-by: Catalin Marinas Signed-off-by: Greg Kroah-Hartman --- lib/crc/crc64-neon.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/lib/crc/crc64-neon.c +++ b/lib/crc/crc64-neon.c @@ -3,7 +3,7 @@ * Accelerated CRC64 (NVMe) using ARM NEON C intrinsics */ -#include +#include #include #include "crc64-neon.h" @@ -11,11 +11,11 @@ u64 crc64_nvme_neon(u64 crc, const u8 *p, size_t len); /* x^191 mod G, x^127 mod G */ -static const u64 fold_consts_val[2] = { 0xeadc41fd2ba3d420ULL, - 0x21e9761e252621acULL }; +static const uint64_t fold_consts_val[2] = { 0xeadc41fd2ba3d420ULL, + 0x21e9761e252621acULL }; /* floor(x^127 / G), (G - x^64) / x */ -static const u64 bconsts_val[2] = { 0x27ecfa329aef9f77ULL, - 0x34d926535897936aULL }; +static const uint64_t bconsts_val[2] = { 0x27ecfa329aef9f77ULL, + 0x34d926535897936aULL }; u64 crc64_nvme_neon(u64 crc, const u8 *p, size_t len) {