linux/drivers/base/test
Geert Uytterhoeven bb3a94a682 drivers: base: test: DRIVER_PE_KUNIT_TEST should not select OF
Enabling a (modular) test should not silently enable additional kernel
functionality, as that may increase the attack vector for a product.

Fix this by skipping the new test when OF support is disabled instead of
selecting OF support.

Note that when OF support is disabled, the compiler optimizes away the
then unused reference to of_fwnode_ops in of_node_init(), so linking
succeeds.

Fixes: 0e6f8ccd46 ("device property: add test cases for fwnode_for_each_child_node()")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://patch.msgid.link/8dfb4afaf70b59cd33af9296464395470405187e.1787239268.git.geert@linux-m68k.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2026-09-01 16:59:48 +02:00
..
.kunitconfig drivers: base: Add basic devm tests for root devices 2023-08-12 13:06:15 +02:00
Kconfig drivers: base: test: DRIVER_PE_KUNIT_TEST should not select OF 2026-09-01 16:59:48 +02:00
Makefile software node: add kunit tests for fw_devlink support 2026-07-15 17:47:16 +02:00
platform-device-test.c driver core: platform: tests: add test cases for correct swnode removal 2026-07-20 00:49:16 +02:00
property-entry-test.c drivers: base: test: DRIVER_PE_KUNIT_TEST should not select OF 2026-09-01 16:59:48 +02:00
root-device-test.c drivers: base: test: Add missing MODULE_* macros to root device tests 2023-08-16 19:01:29 +02:00
swnode-devlink-test.c software node: add kunit tests for fw_devlink support 2026-07-15 17:47:16 +02:00
test_async_driver_probe.c driver core: test_async: fix an error code 2023-08-05 08:31:41 +02:00