diff options
| author | Arnd Bergmann <[email protected]> | 2025-06-20 11:19:04 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-06-23 23:57:43 +0000 |
| commit | 7df6c0245595871500758c4cfa6052081e6687c9 (patch) | |
| tree | 6e28cacd10e9f6233c4a2807e698725a38103b8a /net/unix/diag.c | |
| parent | net/sched: replace strncpy with strscpy (diff) | |
| download | kernel-7df6c0245595871500758c4cfa6052081e6687c9.tar.gz kernel-7df6c0245595871500758c4cfa6052081e6687c9.zip | |
lib: test_objagg: split test_hints_case() into two functions
With sanitizers enabled, this function uses a lot of stack, causing
a harmless warning:
lib/test_objagg.c: In function 'test_hints_case.constprop':
lib/test_objagg.c:994:1: error: the frame size of 1440 bytes is larger than 1408 bytes [-Werror=frame-larger-than=]
Most of this is from the two 'struct world' structures. Since most of
the work in this function is duplicated for the two, split it up into
separate functions that each use one of them.
The combined stack usage is still the same here, but there is no warning
any more, and the code is still safe because of the known call chain.
Signed-off-by: Arnd Bergmann <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/diag.c')
0 files changed, 0 insertions, 0 deletions
