History

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.

Timur Tabi committed 5 years ago

Commit 4e89a781 parent 61bb17d2 files · +3 −4Browse files

Showing the changes to lib/test_bitmap.c (1 of 2 files). Show all

Unified · Split

lib/test_bitmap.c+1−2
@@ -16,8 +16,7 @@ · 15 unmodified lines
16 16
17#include "../tools/testing/selftests/kselftest_module.h"17#include "../tools/testing/selftests/kselftest_module.h"
18 18
19static unsigned total_tests __initdata;19KSTM_MODULE_GLOBALS();
20static unsigned failed_tests __initdata;
21 20
22static char pbl_buffer[PAGE_SIZE] __initdata;21static char pbl_buffer[PAGE_SIZE] __initdata;
23 22