summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2021-04-07 19:13:39 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-08 09:27:01 +0200
commit30c1b1a22cc389b0bddfc2ae3e39260333fc4085 (patch)
treed5618350a2a35fbd4997daaee24a520db1ca56ff
parent31f218546e54b38fee185d871639f823a5f7856c (diff)
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 <olsonse@umich.edu> Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Link: https://lore.kernel.org/r/20210407181342.1117754-4-abbotti@mev.co.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/comedi/drivers/tests/example_test.c2
1 files changed, 1 insertions, 1 deletions
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,
};