From 037c2b81acb0d79fa98b009d842c778595d93f59 Mon Sep 17 00:00:00 2001 From: Suren Baghdasaryan Date: Fri, 1 Jul 2022 11:40:22 -0700 Subject: [PATCH] ANDROID: Fix warning for undeclared struct acr_info The following warning is generated with CONFIG_CONTIG_ALLOC=n build: include/trace/hooks/mm.h:54:25: warning: 'struct acr_info' declared inside parameter list will not be visible outside of this definition or declaration Fix this by adding struct acr_info forward declaration. Fixes: 45cb58e13408 ("ANDROID: vendor_hooks: add vendor hoook to report acr_info in cma_alloc()") Signed-off-by: Suren Baghdasaryan Change-Id: I88f3f41e65f7239a8ab199bed27f33418566387d --- 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 c6a017a0ea4d..b45a6bdd4e52 100644 --- a/include/trace/hooks/mm.h +++ b/include/trace/hooks/mm.h @@ -33,6 +33,7 @@ struct mem_cgroup; #include #endif /* __GENKSYMS__ */ struct cma; +struct acr_info; DECLARE_RESTRICTED_HOOK(android_rvh_set_skip_swapcache_flags, TP_PROTO(gfp_t *flags),