]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: intel_pstate: fix intel_pstate_exit_perf_limits() prototype
authorArnd Bergmann <arnd@arndb.de>
Fri, 25 Nov 2016 16:50:20 +0000 (17:50 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 28 Nov 2016 13:24:21 +0000 (14:24 +0100)
commitb8f8bcd3d749060d907d53e2dc335f258d571988
tree06f389328ab4954b786fddb1af1096a360e78d06
parent11448cf258c671503b049f1392a8f521b10cf492
cpufreq: intel_pstate: fix intel_pstate_exit_perf_limits() prototype

The addition of the generic governor support marked the
intel_pstate_exit_perf_limits as inline(), which fixed a warning,
but it introduced another warning:

drivers/cpufreq/intel_pstate.c: In function ‘intel_pstate_exit_perf_limits’:
drivers/cpufreq/intel_pstate.c:483:1: error: no return statement in function returning non-void [-Werror=return-type]

This changes it back to a 'void' return type, and changes the
corresponding intel_pstate_init_acpi_perf_limits() function to
be inline as well for consistency.

Fixes: 318159d6f3e7 (cpufreq: intel_pstate: Generic governors support)
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c