diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2021-04-07 21:13:39 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-04-08 10:27:01 +0300 |
commit | 30c1b1a22cc389b0bddfc2ae3e39260333fc4085 (patch) | |
tree | d5618350a2a35fbd4997daaee24a520db1ca56ff /drivers/staging/comedi | |
parent | 31f218546e54b38fee185d871639f823a5f7856c (diff) | |
download | linux-30c1b1a22cc389b0bddfc2ae3e39260333fc4085.tar.xz |
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>
Diffstat (limited to 'drivers/staging/comedi')
-rw-r--r-- | drivers/staging/comedi/drivers/tests/example_test.c | 2 |
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, }; |