[LTP] [PATCH 16/17] lib: tst_test: Remove now unused needs_drivers

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


Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 include/tst_test.h | 5 -----
 lib/tst_test.c     | 9 ---------
 2 files changed, 14 deletions(-)

diff --git a/include/tst_test.h b/include/tst_test.h
index ddfe9d4d6..752688c45 100644
--- a/include/tst_test.h
+++ b/include/tst_test.h
@@ -498,10 +498,6 @@ struct tst_fs {
  *                  to the test temporary directory from the LTP datafiles
  *                  directory.
  *
- * @needs_drivers: A NULL terminated array of kernel modules required to run
- *                 the test. The module has to be build in or present in order
- *                 for the test to run.
- *
  * @save_restore: A {} terminated array of /proc or /sys files that should
  *                saved at the start of the test and restored at the end. See
  *                tst_sys_conf_save() and :ref:`struct tst_path_val` for details.
@@ -605,7 +601,6 @@ struct tst_fs {
 	int (*sample)(int clk_id, long long usec);
 
 	const char *const *resource_files;
-	const char * const *needs_drivers;
 
 	const struct tst_path_val *save_restore;
 
diff --git a/lib/tst_test.c b/lib/tst_test.c
index 2d62ab164..26f6510a0 100644
--- a/lib/tst_test.c
+++ b/lib/tst_test.c
@@ -1487,15 +1487,6 @@ static void do_setup(int argc, char *argv[])
 		}
 	}
 
-	if (tst_test->needs_drivers) {
-		const char *name;
-		int i;
-
-		for (i = 0; (name = tst_test->needs_drivers[i]); ++i)
-			if (tst_check_driver(name))
-				tst_brk(TCONF, "%s driver not available", name);
-	}
-
 	if (tst_test->mount_device)
 		tst_test->format_device = 1;
 
-- 
2.52.0



More information about the ltp mailing list