[LTP] [PATCH 09/17] tests: madvise11: Switch from needs_drivers to needs_kconfigs

Cyril Hrubis chrubis@suse.cz
Thu Apr 2 14:13:48 CEST 2026


Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 testcases/kernel/syscalls/madvise/madvise11.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/testcases/kernel/syscalls/madvise/madvise11.c b/testcases/kernel/syscalls/madvise/madvise11.c
index 73d2d4294..97d2b851e 100644
--- a/testcases/kernel/syscalls/madvise/madvise11.c
+++ b/testcases/kernel/syscalls/madvise/madvise11.c
@@ -417,10 +417,6 @@ static void cleanup(void)
 
 static struct tst_test test = {
 	.needs_root = 1,
-	.needs_drivers = (const char *const []) {
-		HW_MODULE,
-		NULL
-	},
 	.needs_cmds = (struct tst_cmd[]) {
 		{.cmd = "modprobe"},
 		{.cmd = "rmmod"},
@@ -428,6 +424,7 @@ static struct tst_test test = {
 	},
 	.needs_kconfigs = (const char *[]) {
 		"CONFIG_MEMORY_FAILURE=y",
+		"CONFIG_HWPOISON_INJECT",
 		NULL
 	},
 	.runtime = 30,
-- 
2.52.0



More information about the ltp mailing list