]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: pasemi: Include header file for {check,restore}_astate prototypes
authorLee Jones <lee.jones@linaro.org>
Wed, 15 Jul 2020 08:26:26 +0000 (09:26 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 15 Jul 2020 13:17:06 +0000 (15:17 +0200)
commit86477313805002d1c110a5b6322299365ee9584d
tree684088faa4293f71ff3e862f18edfc18eb52593d
parent1953d28201c981a40d208f06936d9e89b7732257
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>
drivers/cpufreq/pasemi-cpufreq.c