From: Ian Abbott Date: Wed, 7 Apr 2021 18:13:39 +0000 (+0100) Subject: staging: comedi: tests: example_test: Reduce stack usage X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=30c1b1a22cc389b0bddfc2ae3e39260333fc4085;p=linux.git staging: comedi: tests: example_test: Reduce stack usage Declare the `unit_tests` array in `unittest_enter()` `static` to reduce stack usage a bit. Cc: Spencer E. Olson Signed-off-by: Ian Abbott Link: https://lore.kernel.org/r/20210407181342.1117754-4-abbotti@mev.co.uk Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/tests/example_test.c b/drivers/staging/comedi/drivers/tests/example_test.c index 4d1ab130339d1..550784fdac2f3 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, };