From 93ad3e593cca4f87e3b81aebb77b04fceb09ebe0 Mon Sep 17 00:00:00 2001 From: HONG Yifan Date: Thu, 24 Oct 2024 15:06:23 -0700 Subject: [PATCH] ANDROID: Forward declare struct cma in vendor hook This fixes microdroid build. Fixes: fbcda4a31385 ("ANDROID: vendor_hooks: add vendor hook in cma_alloc()") Bug: 375458897 Test: build microdroid Change-Id: Id9e32796a4e607700a39afbfab4fe5612fa3e66d Signed-off-by: HONG Yifan --- include/trace/hooks/mm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/trace/hooks/mm.h b/include/trace/hooks/mm.h index ffaee4763fa7..010c75e695d3 100644 --- a/include/trace/hooks/mm.h +++ b/include/trace/hooks/mm.h @@ -28,6 +28,7 @@ DECLARE_HOOK(android_vh_mem_cgroup_free, TP_PROTO(struct mem_cgroup *memcg), TP_ARGS(memcg)); +struct cma; DECLARE_HOOK(android_vh_cma_alloc_bypass, TP_PROTO(struct cma *cma, unsigned long count, unsigned int align, gfp_t gfp_mask, struct page **page, bool *bypass),