lib: use KSTM_MODULE_GLOBALS macro in kselftest drivers
authorTimur Tabi <timur@kernel.org>
Sun, 14 Feb 2021 16:13:46 +0000 (10:13 -0600)
committerPetr Mladek <pmladek@suse.com>
Mon, 15 Feb 2021 10:01:42 +0000 (11:01 +0100)
commit4e89a78779647ca7ee2967551c599633fe9d3647
treec676aab8387e1fca00f5c5980f84de7420f2c8c2
parent61bb17da44a0b6d079e68872e3569bb3eda17656
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
lib/test_bitmap.c
lib/test_printf.c