From f6acdedf61a6ed65d81f9dec88e1b48ce1900bef Mon Sep 17 00:00:00 2001 From: Robin Peng Date: Wed, 6 Jul 2022 17:06:32 +0800 Subject: [PATCH] ANDROID: GKI: forward declare struct tcpci_data in vendor hooks The inclusion of the internal drivers/usb/typec/tcpm/tcpci.h header broke some androidci builds. Bug: 233047575 Fixes: f677cbf07662 ("ANDROID: GKI: include more type definitions in vendor hooks") Signed-off-by: Robin Peng Change-Id: I59f2f19889d2646fc5169506df1fba8cfeda305e --- include/trace/hooks/typec.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/trace/hooks/typec.h b/include/trace/hooks/typec.h index 8c31b8eff7c3..e386f487eeba 100644 --- a/include/trace/hooks/typec.h +++ b/include/trace/hooks/typec.h @@ -10,12 +10,8 @@ * Following tracepoints are not exported in tracefs and provide a * mechanism for vendor modules to hook and extend functionality */ -#ifdef __GENKSYMS__ +/* Including ../drivers/usb/typec/tcpm/tcpci.h breaks builds. */ struct tcpci_data; -#else -/* struct tcpci_data */ -#include <../drivers/usb/typec/tcpm/tcpci.h> -#endif /* __GENKSYMS__ */ struct tcpci; struct tcpm_port;