From: Dave Airlie <airl...@redhat.com> amdgpu wants to use the objcg api and not have to enable ifdef around it, so just add a dummy function for the config off path.
Signed-off-by: Dave Airlie <airl...@redhat.com> --- include/linux/memcontrol.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 21328f207d38..55f7ab318eef 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -1756,6 +1756,11 @@ static inline void __memcg_kmem_uncharge_page(struct page *page, int order) { } +static inline struct obj_cgroup *get_obj_cgroup_from_current(void) +{ + return NULL; +} + static inline struct obj_cgroup *get_obj_cgroup_from_folio(struct folio *folio) { return NULL; -- 2.49.0