mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3fca1c763e
commit
7a1de298de
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user