]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm-verity: allow REED_SOLOMON to be 'm' if DM_VERITY is 'm'
authorEric Biggers <ebiggers@kernel.org>
Fri, 19 Dec 2025 19:29:09 +0000 (11:29 -0800)
committerMikulas Patocka <mpatocka@redhat.com>
Sun, 4 Jan 2026 19:35:32 +0000 (20:35 +0100)
commit8fbb8fe75d4cf92eaa7b21828ec39c1bf79a262f
treeb3c18b16e29c1272c19e0a56736372d47cdab1e5
parent119f4f04186fa4f33ee6bd39af145cdaff1ff17f
dm-verity: allow REED_SOLOMON to be 'm' if DM_VERITY is 'm'

The dm-verity kconfig options make the common mistake of selecting a
dependency from a bool "sub-option" rather than the main tristate
option.  This unnecessarily forces the dependency to built-in ('y').

Fix this by moving the selections of REED_SOLOMON and REED_SOLOMON_DEC8
into DM_VERITY, conditional on DM_VERITY_FEC.

This allows REED_SOLOMON to be 'm' if DM_VERITY is 'm'.

Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/Kconfig