Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Eric Biggers and committed by
Mikulas Patocka
8fbb8fe7 119f4f04

+2 -2
+2 -2
drivers/md/Kconfig
··· 549 549 select CRYPTO_HASH 550 550 select CRYPTO_LIB_SHA256 551 551 select DM_BUFIO 552 + select REED_SOLOMON if DM_VERITY_FEC 553 + select REED_SOLOMON_DEC8 if DM_VERITY_FEC 552 554 help 553 555 This device-mapper target creates a read-only device that 554 556 transparently validates the data on one underlying device against ··· 600 598 config DM_VERITY_FEC 601 599 bool "Verity forward error correction support" 602 600 depends on DM_VERITY 603 - select REED_SOLOMON 604 - select REED_SOLOMON_DEC8 605 601 help 606 602 Add forward error correction support to dm-verity. This option 607 603 makes it possible to use pre-generated error correction data to