[PATCH] arm64: fix clang warning about TRAMP_VALIAS
Catalin Marinas
catalin.marinas at arm.com
Fri Mar 18 11:10:28 PDT 2022
On Wed, 16 Mar 2022 19:38:18 +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd at arndb.de>
>
> The newly introduced TRAMP_VALIAS definition causes a build warning
> with clang-14:
>
> arch/arm64/include/asm/vectors.h:66:31: error: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Werror,-Wnull-pointer-arithmetic]
> return (char *)TRAMP_VALIAS + SZ_2K * slot;
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: fix clang warning about TRAMP_VALIAS
https://git.kernel.org/arm64/c/7f34b43e07cb
--
Catalin
More information about the linux-arm-kernel
mailing list