diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-03-25 17:34:00 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-03-26 14:36:03 +0100 |
| commit | 94505767bd32f8a240cf3590776b16a12d75d98e (patch) | |
| tree | 3d9cc28d26371e80f93a40882d75b5daeea75a84 /include/uapi/linux | |
| parent | 4bbf3f58e00f8671eb384c7df6983d803058b204 (diff) | |
fat: fix stack frame size warnings in KUnit tests
The kernel test robot reported that on hexagon with clang, several test
functions in fat_test.c exceed the 1280-byte stack frame limit.
The root cause is the compound literal assignment in
fat_test_set_time_offset():
*sbi = (struct msdos_sb_info){};
struct msdos_sb_info contains two hash tables of 256 hlist_head entries
(FAT_HASH_SIZE), making it several kilobytes. The compound literal
creates a temporary on the stack, and when clang inlines
fat_test_set_time_offset() into each test function, the large temporary
inflates every caller's stack frame beyond the limit.
Replace the compound literal with memset() which zeroes the struct
in-place without a stack temporary.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202603251755.4UYY1Rcd-lkp@intel.com/
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
