[PATCH] arm64: avoid BUILD_BUG_ON() in alternative-macros
Catalin Marinas
catalin.marinas at arm.com
Wed Sep 21 05:04:08 PDT 2022
On Tue, 20 Sep 2022 15:00:44 +0100, Mark Rutland wrote:
> Nathan reports that the build fails when using clang and LTO:
>
> | In file included from kernel/bounds.c:10:
> | In file included from ./include/linux/page-flags.h:10:
> | In file included from ./include/linux/bug.h:5:
> | In file included from ./arch/arm64/include/asm/bug.h:26:
> | In file included from ./include/asm-generic/bug.h:5:
> | In file included from ./include/linux/compiler.h:248:
> | In file included from ./arch/arm64/include/asm/rwonce.h:11:
> | ./arch/arm64/include/asm/alternative-macros.h:224:2: error: call to undeclared function 'BUILD_BUG_ON'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> | BUILD_BUG_ON(feature >= ARM64_NCAPS);
> | ^
> | ./arch/arm64/include/asm/alternative-macros.h:241:2: error: call to undeclared function 'BUILD_BUG_ON'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> | BUILD_BUG_ON(feature >= ARM64_NCAPS);
> | ^
> | 2 errors generated.
>
> [...]
Applied to arm64 (for-next/alternatives), thanks!
[1/1] arm64: avoid BUILD_BUG_ON() in alternative-macros
https://git.kernel.org/arm64/c/0072dc1b53c3
--
Catalin
More information about the linux-arm-kernel
mailing list