From 39fedc3a58f46a8aa8b35e451db9cea67126858a Mon Sep 17 00:00:00 2001 From: "Isaac J. Manjarres" Date: Fri, 5 Mar 2021 11:17:49 -0800 Subject: [PATCH] ANDROID: Fix compilation error when CPU_FREQ is disabled The following compilation error can be observed when CONFIG_CPU_FREQ is disabled, while CONFIG_ANDROID_VENDOR_HOOKS is enabled: include/trace/hooks/cpufreq.h:14:18: warning: declaration of 'struct cpufreq_policy' will not be visible outside of this function [-Wvisibility] error, forbidden warning: cpufreq.h:14. Include the cpufreq header in the cpufreq trace hooks header to fix the compilation error. Bug: 181956431 Change-Id: I33ef6d91cfde856891d8cf7f345710f6b8c2c7ac Signed-off-by: Isaac J. Manjarres --- include/trace/hooks/cpufreq.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/trace/hooks/cpufreq.h b/include/trace/hooks/cpufreq.h index 819b06ee138b..e8fe16b7eebd 100644 --- a/include/trace/hooks/cpufreq.h +++ b/include/trace/hooks/cpufreq.h @@ -7,6 +7,7 @@ #if !defined(_TRACE_HOOK_CPUFREQ_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_HOOK_CPUFREQ_H +#include #include #include