mm/damon/tests/core-kunit: avoid damos_test_commit stack warning

The newly added damos_test_commit() constructs multiple large structures
on the stack, which exceeds the warning limit in some cases:

In file included from mm/damon/core.c:2941:
mm/damon/tests/core-kunit.h: In function 'damos_test_commit':
mm/damon/tests/core-kunit.h:965:1: error: the frame size of 1520 bytes is larger than 1280 bytes [-Werror=frame-larger-than=]

Split this function up into two separate ones that are called
sequentially, so they can occupy the same stack slots.

Link: https://lkml.kernel.org/r/20251204100403.1034980-1-arnd@kernel.org
Fixes: 299a88f6ec13 ("mm/damon/tests/core-kunit: add damos_commit() test")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: Quanmin Yan <yanquanmin1@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by Arnd Bergmann and committed by Andrew Morton dafdba09 49d921b4

+7 -2
+7 -2
mm/damon/tests/core-kunit.h
··· 924 924 } 925 925 } 926 926 927 - static void damos_test_commit(struct kunit *test) 927 + static void damos_test_commit_pageout(struct kunit *test) 928 928 { 929 929 damos_test_commit_for(test, 930 930 &(struct damos){ ··· 945 945 DAMOS_WMARK_FREE_MEM_RATE, 946 946 800, 50, 30}, 947 947 }); 948 + } 949 + 950 + static void damos_test_commit_migrate_hot(struct kunit *test) 951 + { 948 952 damos_test_commit_for(test, 949 953 &(struct damos){ 950 954 .pattern = (struct damos_access_pattern){ ··· 1234 1230 KUNIT_CASE(damos_test_commit_quota), 1235 1231 KUNIT_CASE(damos_test_commit_dests), 1236 1232 KUNIT_CASE(damos_test_commit_filter), 1237 - KUNIT_CASE(damos_test_commit), 1233 + KUNIT_CASE(damos_test_commit_pageout), 1234 + KUNIT_CASE(damos_test_commit_migrate_hot), 1238 1235 KUNIT_CASE(damon_test_commit_target_regions), 1239 1236 KUNIT_CASE(damos_test_filter_out), 1240 1237 KUNIT_CASE(damon_test_feed_loop_next_input),