Skip to contentSkip to conversation

selftests: livepatch: add missing fragments to config

PATCH In review Anders Roxell 2 participants 2 messages Aug 14, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests: livepatch: add missing fragments to config

When generating config with 'make defconfig kselftest-merge' fragment CONFIG_TEST_LIVEPATCH=m isn't set.

Rework to enable CONFIG_LIVEPATCH and CONFIG_DYNAMIC_DEBUG as well.

---
 tools/testing/selftests/livepatch/config | 2 ++
 1 file changed, 2 insertions(+)
tools/testing/selftests/livepatch/config +2 -0
index 0dd7700464a8..ad23100cb27c 100644
@@ -1 +1,3 @@
+CONFIG_LIVEPATCH=y
+CONFIG_DYNAMIC_DEBUG=y
 CONFIG_TEST_LIVEPATCH=m
Signature · 1 line
2.20.1
maintainer
#1 lore raw
Quoted 16 lines · Anders Roxell

When generating config with 'make defconfig kselftest-merge' fragment CONFIG_TEST_LIVEPATCH=m isn't set.

Rework to enable CONFIG_LIVEPATCH and CONFIG_DYNAMIC_DEBUG as well.

---
  tools/testing/selftests/livepatch/config | 2 ++
  1 file changed, 2 insertions(+)
tools/testing/selftests/livepatch/config +0 -0
index 0dd7700464a8..ad23100cb27c 100644

tools/testing/selftests/livepatch/config line 3

Quoted 3 lines
tools/testing/selftests/livepatch/config +2 -0
@@ -1 +1,3 @@
+CONFIG_LIVEPATCH=y
+CONFIG_DYNAMIC_DEBUG=y
  CONFIG_TEST_LIVEPATCH=m

Cool, I didn't know about that make target when doing commit bae054372aba ("selftests/livepatch: add DYNAMIC_DEBUG config dependency")

How does kselftest-merge verify dependencies?

CONFIG_LIVEPATCH has its own list of configuration dependencies (see kernel/livepatch/Kconfig) but we don't list all of those in this config file. Just curious.

Thanks,

-- Joe