[PATCH 2/5] memcg: export stat change function
Dave Airlie
airlied at gmail.com
Wed Apr 23 21:37:04 UTC 2025
From: Dave Airlie <airlied at redhat.com>
In order for modular GPU memory mgmt TTM to adjust the GPU
statistic we need to export the stat change functionality.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
mm/memcontrol.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 25471a0fd0be..68b23a03d2a6 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -709,6 +709,7 @@ void __mod_memcg_state(struct mem_cgroup *memcg, enum memcg_stat_item idx,
memcg_rstat_updated(memcg, val);
trace_mod_memcg_state(memcg, idx, val);
}
+EXPORT_SYMBOL_GPL(__mod_memcg_state);
#ifdef CONFIG_MEMCG_V1
/* idx can be of type enum memcg_stat_item or node_stat_item. */
--
2.49.0
More information about the dri-devel
mailing list