From 185f60f2bbabcda5dc7e10a241016cba20b6e949 Mon Sep 17 00:00:00 2001 From: Robin Peng Date: Thu, 15 Sep 2022 09:20:23 +0800 Subject: [PATCH] ANDROID: add forward declaration vm_unmapped_area_info aosp/2215503 remove inclusions from hook definition headers and build breakage detected on pixel device. include/trace/hooks/mm.h:80:40: error: declaration of 'struct vm_unmapped_area_info' will not be visible outside of this function Fix this by adding struct vm_unmapped_area_info forward declaration. Fixes: 7108d9d0e5f2 ("ANDROID: remove inclusions from hook definition headers") Bug: 233047575 Signed-off-by: Robin Peng Change-Id: I8989ba78977a26e13c79f9efb156bf8317c1010e --- 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 c3113e14e847..263b867d453c 100644 --- a/include/trace/hooks/mm.h +++ b/include/trace/hooks/mm.h @@ -24,6 +24,7 @@ struct cgroup_subsys_state; struct mem_cgroup; struct cma; struct acr_info; +struct vm_unmapped_area_info; DECLARE_RESTRICTED_HOOK(android_rvh_set_skip_swapcache_flags, TP_PROTO(gfp_t *flags),