diff options
author | SeongJae Park <[email protected]> | 2021-12-10 14:46:40 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2021-12-10 17:10:56 -0800 |
commit | 044cd9750fe010170f5dc812e4824d98f5ea928c (patch) | |
tree | b9e06932c29f8c7589ba776f07898f6104a2670c /net/unix | |
parent | 09e12289cc044afa484e70c0b379d579d52caf9a (diff) |
mm/damon/vaddr-test: split a test function having >1024 bytes frame size
On some configuration[1], 'damon_test_split_evenly()' kunit test
function has >1024 bytes frame size, so below build warning is
triggered:
CC mm/damon/vaddr.o
In file included from mm/damon/vaddr.c:672:
mm/damon/vaddr-test.h: In function 'damon_test_split_evenly':
mm/damon/vaddr-test.h:309:1: warning: the frame size of 1064 bytes is larger than 1024 bytes [-Wframe-larger-than=]
309 | }
| ^
This commit fixes the warning by separating the common logic in the
function.
[1] https://lore.kernel.org/linux-mm/[email protected]/
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 17ccae8bb5c9 ("mm/damon: add kunit tests")
Signed-off-by: SeongJae Park <[email protected]>
Reported-by: kernel test robot <[email protected]>
Cc: Brendan Higgins <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix')
0 files changed, 0 insertions, 0 deletions