Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpufreq: pasemi: Include header file for {check,restore}_astate prototypes

If function callers and providers do not share the same prototypes the
compiler complains of missing prototypes. Fix this by including the
correct platforms header file.

Fixes the following W=1 kernel build warning(s):

drivers/cpufreq/pasemi-cpufreq.c:109:5: warning: no previous prototype for ‘check_astate’ [-Wmissing-prototypes]
109 | int check_astate(void)
| ^~~~~~~~~~~~
drivers/cpufreq/pasemi-cpufreq.c:114:6: warning: no previous prototype for ‘restore_astate’ [-Wmissing-prototypes]
114 | void restore_astate(int cpu)
| ^~~~~~~~~~~~~~

Suggested-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Lee Jones and committed by
Rafael J. Wysocki
4a27aa9c dd2e65f2

+2
+2
drivers/cpufreq/pasemi-cpufreq.c
··· 22 22 #include <asm/time.h> 23 23 #include <asm/smp.h> 24 24 25 + #include <platforms/pasemi/pasemi.h> 26 + 25 27 #define SDCASR_REG 0x0100 26 28 #define SDCASR_REG_STRIDE 0x1000 27 29 #define SDCPWR_CFGA0_REG 0x0100