summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorMaxime Ripard <mripard@kernel.org>2025-01-13 10:26:05 +0100
committerMaxime Ripard <mripard@kernel.org>2025-01-15 09:45:20 +0100
commite33b51499a0a6bcaf44824f5b6e6bc65bb75b79d (patch)
treec9f5ccac12d6f6523a852a4d6d49ef0fa9c78645 /init
parent8f52fd7a7de6097089f73bd7dad7c558ea9a8a3f (diff)
cgroup/dmem: Select PAGE_COUNTER
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>
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 61f50cafa815..5e5328506138 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -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.