summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2026-02-02 12:48:53 +0300
committerShuah Khan <skhan@linuxfoundation.org>2026-03-02 20:11:06 +0300
commitb11b9b6751b2cd74960dccd91667c5117fce743c (patch)
tree2570f2aa6ecd431d749671948e60fd44fa40180f /include/linux/debugobjects.h
parent40804c4974b8df2adab72f6475d343eaff72b7f6 (diff)
downloadlinux-b11b9b6751b2cd74960dccd91667c5117fce743c.tar.xz
kunit: reduce stack usage in kunit_run_tests()
Some of the recent changes to the kunit framework caused the stack usage for kunit_run_tests() to grow higher than most other kernel functions, which triggers a warning when CONFIG_FRAME_WARN is set to a relatively low value: lib/kunit/test.c: In function 'kunit_run_tests': lib/kunit/test.c:801:1: error: the frame size of 1312 bytes is larger than 1280 bytes [-Werror=frame-larger-than=] Split out the inner loop into a separate function to ensure that each function remains under the limit, and pass the kunit_result_stats structures by reference to avoid excessive copies. Fixed checkpatch warnings at commit time: Shuah Khan <skhan@linuxfoundation.org> Cc: Carlos Llamas <cmllamas@google.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions