From: Emil Velikov Date: Sat, 18 Jul 2026 12:53:50 +0000 (+0100) Subject: testsuite: tweak __{start,stop}_kmod_tests declaration X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1aca1d8d32032e33b187fa529a7dbe6dcbb4042b;p=thirdparty%2Fkmod.git testsuite: tweak __{start,stop}_kmod_tests declaration Const annotate the struct (we don't/cannot modify them) and drop the no longer needed hidden attribute. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/450 Signed-off-by: Lucas De Marchi --- diff --git a/testsuite/testsuite.h b/testsuite/testsuite.h index 827415c..304b0b6 100644 --- a/testsuite/testsuite.h +++ b/testsuite/testsuite.h @@ -136,8 +136,8 @@ int test_run(const struct test *t); #define DEFINE_TEST(_name, ...) DEFINE_TEST_WITH_FUNC(_name, _name, __VA_ARGS__) #define TESTSUITE_MAIN() \ - extern struct test __start_kmod_tests[] __attribute__((visibility("hidden"))); \ - extern struct test __stop_kmod_tests[] __attribute__((visibility("hidden"))); \ + extern const struct test __start_kmod_tests[]; \ + extern const struct test __stop_kmod_tests[]; \ int main(int argc, char *argv[]) \ { \ const struct test *t; \