Centos-kernel-stream-9/mm/damon
Nico Pache 1d282d0a0a mm/damon/vaddr-test: split a test function having >1024 bytes frame size
commit 044cd9750fe010170f5dc812e4824d98f5ea928c
Author: SeongJae Park <sj@kernel.org>
Date:   Fri Dec 10 14:46:40 2021 -0800

    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/202111182146.OV3C4uGr-lkp@intel.com/

    Link: https://lkml.kernel.org/r/20211201150440.1088-6-sj@kernel.org
    Fixes: 17ccae8bb5c9 ("mm/damon: add kunit tests")
    Signed-off-by: SeongJae Park <sj@kernel.org>
    Reported-by: kernel test robot <lkp@intel.com>
    Cc: Brendan Higgins <brendanhiggins@google.com>
    Cc: Shuah Khan <shuah@kernel.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2048326
Signed-off-by: Nico Pache <npache@redhat.com>
2022-02-02 18:47:40 -05:00
..
Kconfig mm/damon: add kunit tests 2021-11-29 11:43:28 -05:00
Makefile mm/damon: implement a debugfs-based user space interface 2021-11-29 11:43:25 -05:00
core-test.h mm/damon/core-test: fix wrong expectations for 'damon_split_regions_of()' 2021-11-29 11:44:18 -05:00
core.c mm/damon: add kunit tests 2021-11-29 11:43:28 -05:00
dbgfs-test.h mm/damon: don't use strnlen() with known-bogus source length 2021-11-29 11:43:53 -05:00
dbgfs.c mm/damon: add kunit tests 2021-11-29 11:43:28 -05:00
vaddr-test.h mm/damon/vaddr-test: split a test function having >1024 bytes frame size 2022-02-02 18:47:40 -05:00
vaddr.c mm/damon: add kunit tests 2021-11-29 11:43:28 -05:00