mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 22:03:17 +01:00
Add a test case for the XOR routines loosely based on the CRC kunit test. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Eric Biggers <[email protected]> Tested-by: Eric Biggers <[email protected]> Cc: Albert Ou <[email protected]> Cc: Alexander Gordeev <[email protected]> Cc: Alexandre Ghiti <[email protected]> Cc: Andreas Larsson <[email protected]> Cc: Anton Ivanov <[email protected]> Cc: Ard Biesheuvel <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: "Borislav Petkov (AMD)" <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Chris Mason <[email protected]> Cc: Christian Borntraeger <[email protected]> Cc: Dan Williams <[email protected]> Cc: David S. Miller <[email protected]> Cc: David Sterba <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Herbert Xu <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Huacai Chen <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jason A. Donenfeld <[email protected]> Cc: Johannes Berg <[email protected]> Cc: Li Nan <[email protected]> Cc: Madhavan Srinivasan <[email protected]> Cc: Magnus Lindholm <[email protected]> Cc: Matt Turner <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Nicholas Piggin <[email protected]> Cc: Palmer Dabbelt <[email protected]> Cc: Richard Henderson <[email protected]> Cc: Richard Weinberger <[email protected]> Cc: Russell King <[email protected]> Cc: Song Liu <[email protected]> Cc: Sven Schnelle <[email protected]> Cc: Ted Ts'o <[email protected]> Cc: Vasily Gorbik <[email protected]> Cc: WANG Xuerui <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
31 lines
732 B
Plaintext
31 lines
732 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
config XOR_BLOCKS
|
|
tristate
|
|
|
|
# selected by architectures that provide an optimized XOR implementation
|
|
config XOR_BLOCKS_ARCH
|
|
depends on XOR_BLOCKS
|
|
default y if ALPHA
|
|
default y if ARM
|
|
default y if ARM64
|
|
default y if CPU_HAS_LSX # loongarch
|
|
default y if ALTIVEC # powerpc
|
|
default y if RISCV_ISA_V
|
|
default y if SPARC
|
|
default y if S390
|
|
default y if X86_32
|
|
default y if X86_64
|
|
bool
|
|
|
|
config XOR_KUNIT_TEST
|
|
tristate "KUnit tests for xor_gen" if !KUNIT_ALL_TESTS
|
|
depends on KUNIT
|
|
depends on XOR_BLOCKS
|
|
default KUNIT_ALL_TESTS
|
|
help
|
|
Unit tests for the XOR library functions.
|
|
|
|
This is intended to help people writing architecture-specific
|
|
optimized versions. If unsure, say N.
|