linux-stable/lib/raid6
ndesaulniers@google.com 5efb8f94df lib/raid6: use vdupq_n_u8 to avoid endianness warnings
commit 1ad3935b39 upstream.

Clang warns: vector initializers are not compatible with NEON intrinsics
in big endian mode [-Wnonportable-vector-initialization]

While this is usually the case, it's not an issue for this case since
we're initializing the uint8x16_t (16x uint8_t's) with the same value.

Instead, use vdupq_n_u8 which both compilers lower into a single movi
instruction: https://godbolt.org/z/vBrgzt

This avoids the static storage for a constant value.

Link: https://github.com/ClangBuiltLinux/linux/issues/214
Suggested-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-24 08:01:01 +02:00
..
test
.gitignore
algos.c
altivec.uc
avx2.c
avx512.c
int.uc
Makefile ARM: 8833/1: Ensure that NEON code always compiles with Clang 2019-04-05 22:31:34 +02:00
mktables.c
mmx.c
neon.c
neon.uc lib/raid6: use vdupq_n_u8 to avoid endianness warnings 2020-04-24 08:01:01 +02:00
recov.c
recov_avx2.c
recov_avx512.c
recov_neon.c
recov_neon_inner.c lib/raid6: use vdupq_n_u8 to avoid endianness warnings 2020-04-24 08:01:01 +02:00
recov_s390xc.c
recov_ssse3.c
s390vx.uc
sse1.c
sse2.c
tilegx.uc
unroll.awk lib: raid6: fix awk build warnings 2019-12-17 20:39:21 +01:00
x86.h