]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: tests: ni_routes_test: Reduce stack usage
authorIan Abbott <abbotti@mev.co.uk>
Wed, 7 Apr 2021 18:13:37 +0000 (19:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Apr 2021 07:27:01 +0000 (09:27 +0200)
commitef5a8e2a492e882e43f51f43a616b5497a3b60cb
treef5608dc4dc882636b927d3620ff703ff83974f94
parentefc29d383ef8118710fc23fdb055c6d2a9ff2be0
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>
drivers/staging/comedi/drivers/tests/ni_routes_test.c