diff options
author | Timur Tabi <timur@kernel.org> | 2021-02-14 17:13:46 +0100 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2021-02-15 11:01:42 +0100 |
commit | 4e89a78779647ca7ee2967551c599633fe9d3647 (patch) | |
tree | c676aab8387e1fca00f5c5980f84de7420f2c8c2 /lib/test_printf.c | |
parent | Merge branch 'printk-rework' into for-linus (diff) | |
download | linux-4e89a78779647ca7ee2967551c599633fe9d3647.tar.xz linux-4e89a78779647ca7ee2967551c599633fe9d3647.zip |
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_printf.c')
-rw-r--r-- | lib/test_printf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/test_printf.c b/lib/test_printf.c index 7ac87f18a10f..ad2bcfa8caa1 100644 --- a/lib/test_printf.c +++ b/lib/test_printf.c @@ -30,8 +30,8 @@ #define PAD_SIZE 16 #define FILL_CHAR '$' -static unsigned total_tests __initdata; -static unsigned failed_tests __initdata; +KSTM_MODULE_GLOBALS(); + static char *test_buffer __initdata; static char *alloced_buffer __initdata; |