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

Input: tests - modular KUnit tests should not depend on KUNIT=y

While KUnit tests that cannot be built as a loadable module must depend
on "KUNIT=y", this is not true for modular tests, where it adds an
unnecessary limitation.

Fix this by relaxing the dependency to "KUNIT".

Fixes: fdefcbdd6f361841 ("Input: Add KUnit tests for some of the input core helper functions")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/483c4f520e4acc6357ebba3e605977b4c56374df.1683022164.git.geert+renesas@glider.be
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Geert Uytterhoeven and committed by
Dmitry Torokhov
e0f41f83 fd75f369

+1 -1
+1 -1
drivers/input/Kconfig
··· 168 168 169 169 config INPUT_KUNIT_TEST 170 170 tristate "KUnit tests for Input" if !KUNIT_ALL_TESTS 171 - depends on INPUT && KUNIT=y 171 + depends on INPUT && KUNIT 172 172 default KUNIT_ALL_TESTS 173 173 help 174 174 Say Y here if you want to build the KUnit tests for the input