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 <lkp@intel.com>
Fixes: b3efd2ad71 ("ANDROID: remove inclusions from hook definition headers")
Signed-off-by: Todd Kjos <tkjos@google.com>
Change-Id: I27d178f5056ab417b24eb14ca8dcb95f0d20cac7
51 lines
1.4 KiB
C
51 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM thermal
|
|
|
|
#define TRACE_INCLUDE_PATH trace/hooks
|
|
|
|
#if !defined(_TRACE_HOOK_THERMAL_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _TRACE_HOOK_THERMAL_H
|
|
|
|
#include <trace/hooks/vendor_hooks.h>
|
|
|
|
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),
|
|
TP_ARGS(policy, request_freq));
|
|
|
|
DECLARE_HOOK(android_vh_modify_thermal_target_freq,
|
|
TP_PROTO(struct cpufreq_policy *policy, unsigned int *target_freq),
|
|
TP_ARGS(policy, target_freq));
|
|
|
|
DECLARE_HOOK(android_vh_thermal_register,
|
|
TP_PROTO(struct cpufreq_policy *policy),
|
|
TP_ARGS(policy));
|
|
|
|
DECLARE_HOOK(android_vh_thermal_unregister,
|
|
TP_PROTO(struct cpufreq_policy *policy),
|
|
TP_ARGS(policy));
|
|
|
|
DECLARE_HOOK(android_vh_enable_thermal_power_throttle,
|
|
TP_PROTO(bool *enable, bool *override),
|
|
TP_ARGS(enable, override));
|
|
|
|
DECLARE_HOOK(android_vh_thermal_power_cap,
|
|
TP_PROTO(u32 *power_range),
|
|
TP_ARGS(power_range));
|
|
|
|
DECLARE_HOOK(android_vh_get_thermal_zone_device,
|
|
TP_PROTO(struct thermal_zone_device *tz),
|
|
TP_ARGS(tz));
|
|
|
|
DECLARE_HOOK(android_vh_disable_thermal_cooling_stats,
|
|
TP_PROTO(struct thermal_cooling_device *cdev, int *disable_stats),
|
|
TP_ARGS(cdev, disable_stats));
|
|
|
|
#endif /* _TRACE_HOOK_THERMAL_H */
|
|
/* This part must be outside protection */
|
|
#include <trace/define_trace.h>
|