]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/damon/dbgfs-test: skip dbgfs_set_init_regions() test if PADDR is not registered
authorSeongJae Park <sj@kernel.org>
Tue, 27 Aug 2024 03:03:34 +0000 (20:03 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 4 Sep 2024 04:15:58 +0000 (21:15 -0700)
commit61879eed1f180ff92c2324b24d06eeddcc9256bd
treed4cdda4f4ff86ad01a5d730066460ecfac364b4f
parent8e34bac5a268b2fb3a88231a9b94cada8adcc8c0
mm/damon/dbgfs-test: skip dbgfs_set_init_regions() test if PADDR is not registered

The test depends on registration of DAMON_OPS_PADDR.  It would be
registered only when CONFIG_DAMON_PADDR is set.  DAMON core kunit tests do
fake ops registration for such case.  However, the functions for such fake
ops registration is not available to DAMON debugfs interface.  Just skip
the test in the case.

Link: https://lkml.kernel.org/r/20240827030336.7930-8-sj@kernel.org
Fixes: 999b9467974f ("mm/damon/dbgfs-test: fix is_target_id() change")
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Brendan Higgins <brendanhiggins@google.com>
Cc: David Gow <davidgow@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/dbgfs-test.h