summary refs log tree commit diff
path: root/lib/test_bitmap.c
diff options
context:
space:
mode:
authorTimur Tabi <timur@kernel.org>2021-02-14 10:13:46 -0600
committerPetr Mladek <pmladek@suse.com>2021-02-15 11:01:42 +0100
commit4e89a78779647ca7ee2967551c599633fe9d3647 (patch)
treec676aab8387e1fca00f5c5980f84de7420f2c8c2 /lib/test_bitmap.c
parent61bb17da44a0b6d079e68872e3569bb3eda17656 (diff)
downloadlinux-4e89a78779647ca7ee2967551c599633fe9d3647.tar.gz
lib: use KSTM_MODULE_GLOBALS macro in kselftest drivers
Instead of defining the total/failed test counters manually,
test drivers that are clients of kselftest should use the
macro created for this purpose.

Signed-off-by: Timur Tabi <timur@kernel.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Marco Elver <elver@google.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20210214161348.369023-2-timur@kernel.org
Diffstat (limited to 'lib/test_bitmap.c')
-rw-r--r--lib/test_bitmap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/test_bitmap.c b/lib/test_bitmap.c
index 4425a1dd4ef1..0ea0e8258f14 100644
--- a/lib/test_bitmap.c
+++ b/lib/test_bitmap.c
@@ -16,8 +16,7 @@
 
 #include "../tools/testing/selftests/kselftest_module.h"
 
-static unsigned total_tests __initdata;
-static unsigned failed_tests __initdata;
+KSTM_MODULE_GLOBALS();
 
 static char pbl_buffer[PAGE_SIZE] __initdata;