From ed8d3d91b92791842ebc0d9f4d7ac07f481fa230 Mon Sep 17 00:00:00 2001 From: Todd Kjos Date: Thu, 15 Sep 2022 20:32:47 +0000 Subject: [PATCH] ANDROID: fix build warning found by 0-day The 0-day test-bot found this warning: include/trace/hooks/thermal.h:16:25: warning: 'struct cpufreq_policy' declared inside parameter list will not be visible outside of this definition or declaration Fixed by this patch. Reported-by: kernel test robot Fixes: b3efd2ad7175 ("ANDROID: remove inclusions from hook definition headers") Signed-off-by: Todd Kjos Change-Id: I27d178f5056ab417b24eb14ca8dcb95f0d20cac7 --- include/trace/hooks/thermal.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/trace/hooks/thermal.h b/include/trace/hooks/thermal.h index 199ca4ce914b..c8ba5168fb06 100644 --- a/include/trace/hooks/thermal.h +++ b/include/trace/hooks/thermal.h @@ -11,6 +11,7 @@ struct thermal_cooling_device; struct thermal_zone_device; +struct cpufreq_policy; DECLARE_HOOK(android_vh_modify_thermal_request_freq, TP_PROTO(struct cpufreq_policy *policy, unsigned long *request_freq),