aboutsummaryrefslogtreecommitdiff
path: root/lib/raid6/recov_ssse3.c
AgeCommit message (Collapse)AuthorFilesLines
2020-04-09x86: remove always-defined CONFIG_AS_SSSE3Masahiro Yamada1-6/+0
CONFIG_AS_SSSE3 was introduced by commit 75aaf4c3e6a4 ("x86/raid6: correctly check for assembler capabilities"). We raise the minimal supported binutils version from time to time. The last bump was commit 1fb12b35e5ff ("kbuild: Raise the minimum required binutils version to 2.21"). I confirmed the code in $(call as-instr,...) can be assembled by the binutils 2.21 assembler and also by LLVM integrated assembler. Remove CONFIG_AS_SSSE3, which is always defined. I added ifdef CONFIG_X86 to lib/raid6/algos.c to avoid link errors on non-x86 architectures. lib/raid6/algos.c is built not only for the kernel but also for testing the library code from userspace. I added -DCONFIG_X86 to lib/raid6/test/Makefile to cator to this usecase. Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Jason A. Donenfeld <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Acked-by: Ingo Molnar <[email protected]>
2019-06-05treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 441Thomas Gleixner1-5/+1
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation version 2 of the license extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 315 file(s). Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Allison Randal <[email protected]> Reviewed-by: Armijn Hemel <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
2015-02-04x86/raid6: correctly check for assembler capabilitiesJan Beulich1-0/+6
Just like for AVX2 (which simply needs an #if -> #ifdef conversion), SSSE3 assembler support should be checked for before using it. Signed-off-by: Jan Beulich <[email protected]> Cc: Jim Kukunas <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Signed-off-by: NeilBrown <[email protected]>
2012-12-13lib/raid6: build proper files on corresponding archYuanhan Liu1-4/+0
sse and avx2 stuff only exist on x86 arch, and we don't need to build altivec on x86. And we can do that at lib/raid6/Makefile. Proposed-by: H. Peter Anvin <[email protected]> Signed-off-by: Yuanhan Liu <[email protected]> Reviewed-by: H. Peter Anvin <[email protected]> Signed-off-by: Jim Kukunas <[email protected]> Signed-off-by: NeilBrown <[email protected]>
2012-05-28lib/raid6: fix sparse warnings in recovery functionsJim Kukunas1-3/+4
Make the recovery functions static to fix the following sparse warnings: lib/raid6/recov.c:25:6: warning: symbol 'raid6_2data_recov_intx1' was not declared. Should it be static? lib/raid6/recov.c:69:6: warning: symbol 'raid6_datap_recov_intx1' was not declared. Should it be static? lib/raid6/recov_ssse3.c:22:6: warning: symbol 'raid6_2data_recov_ssse3' was not declared. Should it be static? lib/raid6/recov_ssse3.c:197:6: warning: symbol 'raid6_datap_recov_ssse3' was not declared. Should it be static? Reported-by: Fengguang Wu <[email protected]> Signed-off-by: Jim Kukunas <[email protected]> Signed-off-by: NeilBrown <[email protected]>
2012-05-22lib/raid6: Add SSSE3 optimized recovery functionsJim Kukunas1-0/+335
Add SSSE3 optimized recovery functions, as well as a system for selecting the most appropriate recovery functions to use. Originally-by: H. Peter Anvin <[email protected]> Signed-off-by: Jim Kukunas <[email protected]> Signed-off-by: NeilBrown <[email protected]>