aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Ripard <[email protected]>2025-01-13 09:26:05 +0000
committerMaxime Ripard <[email protected]>2025-01-15 08:45:20 +0000
commite33b51499a0a6bcaf44824f5b6e6bc65bb75b79d (patch)
treec9f5ccac12d6f6523a852a4d6d49ef0fa9c78645
parentkernel/cgroup: Remove the unused variable climit (diff)
downloadkernel-e33b51499a0a6bcaf44824f5b6e6bc65bb75b79d.tar.gz
kernel-e33b51499a0a6bcaf44824f5b6e6bc65bb75b79d.zip
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 <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Acked-by: Tejun Heo <[email protected]> Reviewed-by: Simona Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Maxime Ripard <[email protected]>
-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.