Skip to contentSkip to conversation

selftests: memory-hotplug: add required configs

PATCH In review Lei Yang 2 participants 2 messages Sep 5, 2018

Subsystems (2)
lore
Share & tools
lore

Lei Yang

author
#0 lore raw

PATCH 1/1 selftests: memory-hotplug: add required configs

add CONFIG_MEMORY_HOTREMOVE=y in config
without this config, /sys/devices/system/memory/memory*/removable always return 0, I endup getting an early skip during test

---
 tools/testing/selftests/memory-hotplug/config | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/memory-hotplug/config +1 -0
index 2fde301..a7e8cd5 100644
@@ -2,3 +2,4 @@ CONFIG_MEMORY_HOTPLUG=y
 CONFIG_MEMORY_HOTPLUG_SPARSE=y
 CONFIG_NOTIFIER_ERROR_INJECTION=y
 CONFIG_MEMORY_NOTIFIER_ERROR_INJECT=m
+CONFIG_MEMORY_HOTREMOVE=y
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 15 lines · Lei Yang

add CONFIG_MEMORY_HOTREMOVE=y in config
without this config, /sys/devices/system/memory/memory*/removable always return 0, I endup getting an early skip during test

Signed-off-by Lei Yang <Lei.Yang at windriver.com>
---
 tools/testing/selftests/memory-hotplug/config | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/memory-hotplug/config +0 -0
index 2fde301..a7e8cd5 100644

tools/testing/selftests/memory-hotplug/config CONFIG_MEMORY_HOTPLUG=y · line 5

Quoted 4 lines
tools/testing/selftests/memory-hotplug/config +1 -0
@@ -2,3 +2,4 @@ CONFIG_MEMORY_HOTPLUG=y
 CONFIG_MEMORY_HOTPLUG_SPARSE=y
 CONFIG_NOTIFIER_ERROR_INJECTION=y
 CONFIG_MEMORY_NOTIFIER_ERROR_INJECT=m
+CONFIG_MEMORY_HOTREMOVE=y

Thanks. Applied to linux-kselftest next

-- Shuah