Declare the `unit_tests` array in `unittest_enter()` `static` to reduce stack usage a bit. Cc: Spencer E. Olson <olsonse@xxxxxxxxx> Signed-off-by: Ian Abbott <abbotti@xxxxxxxxx> --- v2: Fix email address in Cc: line --- drivers/staging/comedi/drivers/tests/example_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/tests/example_test.c b/drivers/staging/comedi/drivers/tests/example_test.c index 4d1ab130339d..550784fdac2f 100644 --- a/drivers/staging/comedi/drivers/tests/example_test.c +++ b/drivers/staging/comedi/drivers/tests/example_test.c @@ -52,7 +52,7 @@ void test0(void) /* **** BEGIN simple module entry/exit functions **** */ static int __init unittest_enter(void) { - const unittest_fptr unit_tests[] = { + static const unittest_fptr unit_tests[] = { test0, NULL, }; -- 2.31.0