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=1796380811; b=pnRiYeMMHXcYxg/NSiCUalR5BZejb+iCT/k+Cis1Fsj6FySoJjlwrenWFK8mqoRK9nQZ D5RLKmoODkWURnoX81Nj5rV9svA6vLOXNYwunUklH0oWAJsR0qp3V78n6lURRC0a+hvlg EOeyfRf5jwRVHiDcU7dX4GRGwCD3iYBeELEN5gXoUaA5lKUEZAzcktO3MJPGHFnseQscu nM7KBm6cH15xRlEgBJJtGUtOvnGPVFjWlh3LuN5caSv3ddmHUSbnGeypxo/ypIB9Y2ZFT AWHJ383E6FuxEgP0Qs58F/vrG1v/ec8/mZAVOsM+/A65v3TkBlCALt5MXXGpe2NIT3Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796380811; 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=pFsr2gewHftXddNcSq4FZOdKvCgbjP1LOqNbUk1fOwc=; b=XOuQkwKE1hLs3AgBL+babGGOAx4ur3iBybTLY3Tb9DQhLZGXrz9uNjfqq/Xsnb+D1w3t 9Q836b75g/RgsmxlD9yXm2f18lQmTxyKvJTOkiYaiNnQOFKaAZZmgPWsDvh0LQBkVhfAa 66WIjOYN/ep0NlumdnnW1jMmZLYcrekryNXRxko0lQqPoeuD5g3MkY+Q1M+68cTVGu0rw VJ6zcJAzBT7YPHW6WcbpzDJnjS+4FweNdlbDSEcJZmlx7jgbfZdv9KCx7MEuCULIQSAG6 DF5jxNAB+y4apauNfKG0DADHL3zyApYcuM6X26QdI1g8ubfEYyhuXe++NwxfhtMnOiQ== 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=qEzD9+dq; 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 6DC54606A322; Fri, 4 Dec 2026 10:40:11 +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=qEzD9+dq Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8BA01F00936; Fri, 4 Dec 2026 10:40:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796380811; bh=pFsr2gewHftXddNcSq4FZOdKvCgbjP1LOqNbUk1fOwc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=qEzD9+dqJBv36gnv27zA8kIjCHbn5PY1ceDb/x+AKt3gZQpTBfEo7I9Cl8+0FoFQR yTeiKl/R2Cr0OrOebwHeen1KwmtLNwtk/VwzvpoWZet3CdEJFz2iltlbxMREm6aztV wNezwNUbTiB5Rfz2zUgigKaTDxfzB3tApEdVBS0k= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ard Biesheuvel , Nathan Chancellor , Eric Biggers , Catalin Marinas Subject: [PATCH 7.3 433/742] arm64: Drop stdint.h type overrides from asm/neon-intrinsics.h Date: Fri, 4 Dec 2026 19:04:57 +0900 Message-ID: <20261204100646.607844163@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: patches@lists.linux.dev 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 a041bdbe1f3a8efa8a527a89c84d3771232b4942 upstream. None of the users of NEON intrinsics include anymore, and so there is no longer a need to override __INT64_TYPE__ and __UINT64_TYPE__ in order to make the definitions of int64_t and uint64_t provided by the compiler's freestanding compatible with the kernel's. So drop the overrides. This also means that uint64_t now matches the type that Clang uses for 64-bit quantities in the prototypes of its NEON builtins, and so the -Wincompatible-pointer-types warnings that are currently being disabled for all NEON intrinsics code will no longer occur. So drop the pragma that disables them as well. Signed-off-by: Ard Biesheuvel Tested-by: Nathan Chancellor Reviewed-by: Eric Biggers Cc: Signed-off-by: Catalin Marinas Signed-off-by: Greg Kroah-Hartman --- arch/arm64/include/asm/neon-intrinsics.h | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) --- a/arch/arm64/include/asm/neon-intrinsics.h +++ b/arch/arm64/include/asm/neon-intrinsics.h @@ -6,23 +6,13 @@ #ifndef __ASM_NEON_INTRINSICS_H #define __ASM_NEON_INTRINSICS_H -#include - /* - * In the kernel, u64/s64 are [un]signed long long, not [un]signed long. - * So by redefining these macros to the former, we can force gcc-stdint.h - * to define uint64_t / in64_t in a compatible manner. + * includes , which defines some C99 types differently + * from , so the latter must not be included into code that uses + * NEON intrinsics. The kernel's u8/u16/u32/u64 types can be used alongside the + * C99 ones, so provide those instead. */ - -#ifdef __INT64_TYPE__ -#undef __INT64_TYPE__ -#define __INT64_TYPE__ long long -#endif - -#ifdef __UINT64_TYPE__ -#undef __UINT64_TYPE__ -#define __UINT64_TYPE__ unsigned long long -#endif +#include /* * genksyms chokes on the ARM NEON instrinsics system header, but we @@ -33,8 +23,4 @@ #include #endif -#ifdef CONFIG_CC_IS_CLANG -#pragma clang diagnostic ignored "-Wincompatible-pointer-types" -#endif - #endif /* __ASM_NEON_INTRINSICS_H */