]> www.infradead.org Git - users/jedix/linux-maple.git/commit
firmware: cs_dsp: FW_CS_DSP_KUNIT_TEST should not select REGMAP
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sat, 25 Jan 2025 19:32:15 +0000 (20:32 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Jan 2025 13:35:34 +0000 (13:35 +0000)
commiteb5c79828cfa72e8dbdf2db842a781ad6806cdaf
tree70760a419be1a95badfc1dfc60c55f3683f716d9
parent2e3c688ddaf2bb8e3696a773b5278711a90ea080
firmware: cs_dsp: FW_CS_DSP_KUNIT_TEST should not select REGMAP

Enabling a (modular) test should not silently enable additional kernel
functionality, as that may increase the attack vector of a product.

Fix this by making FW_CS_DSP_KUNIT_TEST (and FW_CS_DSP_KUNIT_TEST_UTILS)
depend on REGMAP instead of selecting it.

After this, one can safely enable CONFIG_KUNIT_ALL_TESTS=m to build
modules for all appropriate tests for ones system, without pulling in
extra unwanted functionality, while still allowing a tester to manually
enable REGMAP_BUILD and this test suite on a system where REGMAP is not
enabled by default.

Fixes: dd0b6b1f29b92202 ("firmware: cs_dsp: Add KUnit testing of bin file download")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://patch.msgid.link/73c81ac85e21f1c5a75b7628d90cbb0e1b4ed0fa.1737833376.git.geert@linux-m68k.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/firmware/cirrus/Kconfig