diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2021-04-07 21:13:37 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-04-08 10:27:01 +0300 |
commit | 7a1de298de04c2db2c32c862618ddc9ba749deae (patch) | |
tree | f5608dc4dc882636b927d3620ff703ff83974f94 /drivers/staging/comedi | |
parent | 3fca1c763ed186bd84bc65c43bfcf9fea0eb91d0 (diff) | |
download | linux-7a1de298de04c2db2c32c862618ddc9ba749deae.tar.xz |
staging: comedi: tests: ni_routes_test: Reduce stack usage
Declare the `unit_tests` array in `ni_routes_unittest()` `static` to
reduce stack usage.
Cc: Spencer E. Olson <olsonse@umich.edu>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://lore.kernel.org/r/20210407181342.1117754-2-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/ni_routes_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/tests/ni_routes_test.c b/drivers/staging/comedi/drivers/tests/ni_routes_test.c index 777d9b5d96d4..cdfbb054d537 100644 --- a/drivers/staging/comedi/drivers/tests/ni_routes_test.c +++ b/drivers/staging/comedi/drivers/tests/ni_routes_test.c @@ -577,7 +577,7 @@ void test_ni_get_reg_value(void) /* **** BEGIN simple module entry/exit functions **** */ static int __init ni_routes_unittest(void) { - const unittest_fptr unit_tests[] = { + static const unittest_fptr unit_tests[] = { test_ni_assign_device_routes, test_ni_sort_device_routes, test_ni_find_route_set, |