mm/damon/tests/vaddr-kunit.h: reduce stack consumption
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 10 Dec 2024 02:20:01 +0000 (18:20 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 14 Jan 2025 06:40:50 +0000 (22:40 -0800)
commit79dc2bff4d8d36f04d7683916eb6d4eb9ea04da4
tree353808bddeff081ed6cfb2c9124ef10ef08acac4
parent6f030e32e4499942a223677169d006085d8c57ce
mm/damon/tests/vaddr-kunit.h: reduce stack consumption

After "mm: move per-vma lock into vm_area_struct" we're hitting

mm/damon/tests/vaddr-kunit.h: In function 'damon_test_three_regions_in_vmas':
mm/damon/tests/vaddr-kunit.h:92:1: error: the frame size of 3280 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]

Fix by moving all those vmas off the stack.

[akpm@linux-foundation.org: fix build]
Closes: https://lkml.kernel.org/r/20241209170829.11311e70@canb.auug.org.au
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/tests/vaddr-kunit.h