diff options
author | Daniel Latypov <dlatypov@google.com> | 2022-07-09 06:19:58 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2022-07-12 02:13:15 +0300 |
commit | e5857d396f35e59e6fe96cf1178b0357cc3a1ea4 (patch) | |
tree | 2481ba00637536dc357697bc2a4ef5153f32e415 /drivers/thunderbolt/Kconfig | |
parent | 3d6e44623841c8b82c2157f2f749019803fb238a (diff) | |
download | linux-e5857d396f35e59e6fe96cf1178b0357cc3a1ea4.tar.xz |
kunit: flatten kunit_suite*** to kunit_suite** in .kunit_test_suites
We currently store kunit suites in the .kunit_test_suites ELF section as
a `struct kunit_suite***` (modulo some `const`s).
For every test file, we store a struct kunit_suite** NULL-terminated array.
This adds quite a bit of complexity to the test filtering code in the
executor.
Instead, let's just make the .kunit_test_suites section contain a single
giant array of struct kunit_suite pointers, which can then be directly
manipulated. This array is not NULL-terminated, and so none of the test
filtering code needs to NULL-terminate anything.
Tested-by: MaĆra Canal <maira.canal@usp.br>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Co-developed-by: David Gow <davidgow@google.com>
Signed-off-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'drivers/thunderbolt/Kconfig')
0 files changed, 0 insertions, 0 deletions