Re: [PATCH net-next V5] net/mlx5: Improve write-combining test reliability for ARM64 Grace CPUs
From: Nathan Chancellor
Date: Thu Sep 25 2025 - 16:31:18 EST
On Thu, Sep 25, 2025 at 03:05:52PM +0200, Arnd Bergmann wrote:
> On the other hand, I would in general strongly prefer
>
> if (IS_ENABLED(CONFIG_FOO)) {
> ...
> }
>
> over any of the preprocessor conditionals, both for readability
> and for improving compile-time coverage of the conditional code.
>
> Unfortunately that does not work here because kernel_neon_begin()
> etc are only defined on Arm.
Even if the neon macros/functions were to be dummy defined, I suspect
clang may complain about the vector register clobbers on architectures
other than arm64, since it will validate some inline assembly even in
dead code.