The dmem cgroup the page counting API implemented behing the
PAGE_COUNTER kconfig option. However, it doesn't select it, resulting in
potential build breakages. Select PAGE_COUNTER.

Fixes: b168ed458dde ("kernel/cgroup: Add "dmem" memory accounting cgroup")
Reported-by: kernel test robot <l...@intel.com>
Closes: 
https://lore.kernel.org/oe-kbuild-all/202501111330.3vuux8vf-...@intel.com/
Signed-off-by: Maxime Ripard <mrip...@kernel.org>
---
 init/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/init/Kconfig b/init/Kconfig
index 61f50cafa815..5e5328506138 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1137,10 +1137,11 @@ config CGROUP_RDMA
          Attaching processes with active RDMA resources to the cgroup
          hierarchy is allowed even if can cross the hierarchy's limit.
 
 config CGROUP_DMEM
        bool "Device memory controller (DMEM)"
+       select PAGE_COUNTER
        help
          The DMEM controller allows compatible devices to restrict device
          memory usage based on the cgroup hierarchy.
 
          As an example, it allows you to restrict VRAM usage for applications
-- 
2.47.1

Reply via email to