diff options
author | Arnd Bergmann <arnd@arndb.de> | 2024-02-27 17:15:39 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2024-03-07 13:32:54 -0500 |
commit | d60c53694c6ff560963590971720d632bb3d481e (patch) | |
tree | 0622f651911cd9493fe3805311ce473939f0e633 /net/unix/sysctl_net_unix.c | |
parent | 07be778c70149321f785611a9c50125b904b0508 (diff) |
ext4: kunit: use dynamic inode allocation
Storing an inode structure on the stack pushes some functions over the warning
limit for stack frame size:
In file included from fs/ext4/mballoc.c:7039:
fs/ext4/mballoc-test.c:506:13: error: stack frame size (1032) exceeds limit (1024) in 'test_mark_diskspace_used' [-Werror,-Wframe-larger-than]
506 | static void test_mark_diskspace_used(struct kunit *test)
| ^
Use kunit_kzalloc() for all inodes. There may be a better way to do it by
preallocating the inode, which would result in a larger rework.
Fixes: 2b81493f8eb6 ("ext4: Add unit test for ext4_mb_mark_diskspace_used")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Kemeng Shi <shikemeng@huaweicloud.com>
Link: https://lore.kernel.org/r/20240227161548.2929881-1-arnd@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions