From 2f33651bdfae027a15fb03617c467185e282b66e Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sun, 25 Oct 2020 15:14:13 +0100 Subject: [PATCH] ANDROID: GKI: fix up arguments for trace_android_vh_arch_set_freq_scale() The 'cpus' parameter is now a constant pointer, so fix up the parameter definition so that the build no longer breaks. This was caused by upstream commit a20b7053b5c4 ("cpufreq,arm,arm64: restructure definitions of arch_set_freq_scale()") Bug: 167126223 Fixes: 07f80e7c1e5f ("ANDROID: sched: add cpumask parameter to cpu capacity vendor hook") Cc: Yun Hsiang Signed-off-by: Greg Kroah-Hartman Change-Id: Ic96ff16028980fd8609c5d295454b9080c66fbe2 --- include/trace/hooks/topology.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/trace/hooks/topology.h b/include/trace/hooks/topology.h index 32b44c7e5130..d67d8491eb17 100644 --- a/include/trace/hooks/topology.h +++ b/include/trace/hooks/topology.h @@ -14,8 +14,8 @@ #if defined(CONFIG_TRACEPOINTS) && defined(CONFIG_ANDROID_VENDOR_HOOKS) DECLARE_HOOK(android_vh_arch_set_freq_scale, - TP_PROTO(struct cpumask *cpus, unsigned long freq, unsigned long max, - unsigned long *scale), + TP_PROTO(const struct cpumask *cpus, unsigned long freq, + unsigned long max, unsigned long *scale), TP_ARGS(cpus, freq, max, scale)); #else