[PATCH v2 6/8] lib: Give XOR_BLOCKS, RAID6_PQ config opts names

Kent Overstreet
2025-10-12T21:24:30Z

Give these config options names so that they show up under the "Library
routines" kernel configuration menu, and can be enabled by
distributions.

These libraries are needed for bcachefs to be built out of tree.

Per Neal - "the proposed change seems appropriate in that it makes our
code more available and hence more useful. It has no apparent cost and
I can (now) see no better way to achieve a comparable outcome."

These libraries are both for RAID5/6.

Reviewed-By: NeilBrown <neil@brown.name>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
---
crypto/Kconfig | 2 +-
lib/Kconfig | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/crypto/Kconfig b/crypto/Kconfig
index 23bd98981ae8..da4f072abae0 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -3,7 +3,7 @@
# Generic algorithms support
#
config XOR_BLOCKS
- tristate
+ tristate "Accelerated block xor algorithm"

#
# async_tx api: hardware offloaded memory transfer/transform support
diff --git a/lib/Kconfig b/lib/Kconfig
index badcb5ca9efd..e831f4462453 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -9,7 +9,9 @@ config BINARY_PRINTF
menu "Library routines"

config RAID6_PQ
- tristate
+ tristate "Reed-solomon RAID5/6 algorithms"
+ help
+ Provides routines for block level reed-solomon, for RAID5/6

config RAID6_PQ_BENCHMARK
bool "Automatically choose fastest RAID6 PQ functions"
--
2.51.0