diff options
author | Arnd Bergmann <[email protected]> | 2022-03-16 19:38:18 +0100 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2022-03-18 13:48:28 +0000 |
commit | 7f34b43e07cb512b28543fdcb9f35d1fbfda9ebc (patch) | |
tree | 1e27ceb083294438b13d50cf0ce0a73232a484f6 /net/lapb/lapb_iface.c | |
parent | 09688c0166e76ce2fb85e86b9d99be8b0084cdf9 (diff) |
arm64: fix clang warning about TRAMP_VALIAS
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;
Change the addition to something clang does not complain about.
Fixes: bd09128d16fa ("arm64: Add percpu vectors for EL1")
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: James Morse <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions