From: Dave Airlie <airl...@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 <airl...@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

Reply via email to