]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cgroup/dmem: Select PAGE_COUNTER
authorMaxime Ripard <mripard@kernel.org>
Mon, 13 Jan 2025 09:26:05 +0000 (10:26 +0100)
committerMaxime Ripard <mripard@kernel.org>
Wed, 15 Jan 2025 08:45:20 +0000 (09:45 +0100)
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 <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202501111330.3VuUx8vf-lkp@intel.com/
Acked-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Simona Vetter <simona.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20250113092608.1349287-1-mripard@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
init/Kconfig

index 61f50cafa8151ed2949da769fe00d9cd5e22f909..5e5328506138179e5db0948888ab20b89ad7e708 100644 (file)
@@ -1139,6 +1139,7 @@ config CGROUP_RDMA
 
 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.