Skip to content

Commit aa811e3

Browse files
alan-maguirerafaeljw
authored andcommitted
software node: introduce CONFIG_KUNIT_DRIVER_PE_TEST
Currently the property entry kunit tests are built if CONFIG_KUNIT=y. This will cause warnings when merged with the kunit tree that now supports tristate CONFIG_KUNIT. While the tests appear to compile as a module, we get a warning about missing module license. It's better to have a per-test suite CONFIG variable so that we can do selective building of kunit-based suites, and can also avoid merge issues like this. Fixes: c032ace ("software node: add basic tests for property entries") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Reported-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Alan Maguire <alan.maguire@oracle.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 5eb5afb commit aa811e3

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/base/test/Kconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ config TEST_ASYNC_DRIVER_PROBE
88
The module name will be test_async_driver_probe.ko
99

1010
If unsure say N.
11+
config KUNIT_DRIVER_PE_TEST
12+
bool "KUnit Tests for property entry API"
13+
depends on KUNIT=y

‎drivers/base/test/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
22
obj-$(CONFIG_TEST_ASYNC_DRIVER_PROBE) += test_async_driver_probe.o
33

4-
obj-$(CONFIG_KUNIT) += property-entry-test.o
4+
obj-$(CONFIG_KUNIT_DRIVER_PE_TEST) += property-entry-test.o

0 commit comments

Comments
 (0)